Created
May 10, 2019 14:35
-
-
Save romainthomas/cd69fda9e4df1a2eddf940371819a118 to your computer and use it in GitHub Desktop.
Arybo_mba.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arybo.lib.mba_exprs as EX | |
import sys | |
def f(x): | |
v0 = ((x & 343337308) ^ 0xFFFFFFFF) & (x | 343337308) | |
return v0 | |
mba32 = MBA(32) | |
X = mba32.var('X') | |
res = f(X) | |
VD = res.vectorial_decomp([X]) | |
print("Cst = " + hex(VD.cst().get_int_be())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment