miasm
Reverse engineering framework
|
Functions | |
def | replace_expr (e) |
Variables | |
a = ExprId('a', 32) | |
b = ExprId('b', 32) | |
c = ExprId('c', 32) | |
d = ExprId('d', 32) | |
e = ExprId('e', 32) | |
m = ExprMem(a, 32) | |
s = a[:8] | |
i1 = ExprInt(0x1, 32) | |
i2 = ExprInt(0x2, 32) | |
cc = ExprCond(a, b, c) | |
o = ExprCompose(a[8:16], a[:8]) | |
o2 = ExprCompose(a[8:16], a[:8]) | |
list | l = [a[:8], b[:8], c[:8], m[:8], s, i1[:8], i2[:8], o[:8]] |
list | l2 = l[::-1] |
x = ExprMem(a + b + ExprInt(0x42, 32), 32) | |
y = x.visit(replace_expr) | |
z = ExprCompose(a[5:5 + 8], b[:16], x[:8]) | |
u = z.copy() | |
def simplification_tools.replace_expr | ( | e | ) |
simplification_tools.a = ExprId('a', 32) |
simplification_tools.b = ExprId('b', 32) |
simplification_tools.c = ExprId('c', 32) |
simplification_tools.d = ExprId('d', 32) |
simplification_tools.e = ExprId('e', 32) |
simplification_tools.i1 = ExprInt(0x1, 32) |
simplification_tools.i2 = ExprInt(0x2, 32) |
list simplification_tools.l2 = l[::-1] |
simplification_tools.o = ExprCompose(a[8:16], a[:8]) |
simplification_tools.o2 = ExprCompose(a[8:16], a[:8]) |
simplification_tools.s = a[:8] |
simplification_tools.u = z.copy() |
simplification_tools.y = x.visit(replace_expr) |
simplification_tools.z = ExprCompose(a[5:5 + 8], b[:16], x[:8]) |