miasm
Reverse engineering framework
|
Classes | |
class | Arch |
class | IRATest |
class | Regs |
Functions | |
def | gen_irblock (label, exprs_list) |
def | cmp_ir_graph (g1, g2) |
Variables | |
loc_db = LocationDB() | |
A = ExprId("a", 32) | |
B = ExprId("b", 32) | |
C = ExprId("c", 32) | |
D = ExprId("d", 32) | |
R = ExprId("r", 32) | |
A_INIT = ExprId("a_init", 32) | |
B_INIT = ExprId("b_init", 32) | |
C_INIT = ExprId("c_init", 32) | |
D_INIT = ExprId("d_init", 32) | |
IRDst = ExprId("IRDst", 32) | |
PC = ExprId("pc", 32) | |
SP = ExprId("sp", 32) | |
CST0 = ExprInt(0x0, 32) | |
CST1 = ExprInt(0x1, 32) | |
CST2 = ExprInt(0x2, 32) | |
CST3 = ExprInt(0x3, 32) | |
CST22 = ExprInt(0x22, 32) | |
CST23 = ExprInt(0x23, 32) | |
CST24 = ExprInt(0x24, 32) | |
CST33 = ExprInt(0x33, 32) | |
CST35 = ExprInt(0x35, 32) | |
CST37 = ExprInt(0x37, 32) | |
LBL0 = loc_db.add_location("lbl0", 0) | |
LBL1 = loc_db.add_location("lbl1", 1) | |
LBL2 = loc_db.add_location("lbl2", 2) | |
LBL3 = loc_db.add_location("lbl3", 3) | |
LBL4 = loc_db.add_location("lbl4", 4) | |
LBL5 = loc_db.add_location("lbl5", 5) | |
LBL6 = loc_db.add_location("lbl6", 6) | |
IRA = IRATest(loc_db) | |
Tests #############. More... | |
G1 = IRA.new_ircfg() | |
G1 ########## Input. More... | |
def | G1_IRB0 |
def | G1_IRB1 |
def | G1_IRB2 |
G1_RES = IRA.new_ircfg() | |
def | G1_RES_IRB0 |
G2 = IRA.new_ircfg() | |
G2 ########## Input. More... | |
def | G2_IRB0 |
def | G2_IRB1 |
G2_RES = IRA.new_ircfg() | |
def | G2_RES_IRB0 |
G3 = IRA.new_ircfg() | |
G3 ########## Input. More... | |
def | G3_IRB0 |
def | G3_IRB1 |
def | G3_IRB2 |
G3_RES = IRA.new_ircfg() | |
def | G3_RES_IRB0 |
G4 = IRA.new_ircfg() | |
G4 ########## Input. More... | |
def | G4_IRB0 |
def | G4_IRB1 |
def | G4_IRB2 |
G4_RES = IRA.new_ircfg() | |
def | G4_RES_IRB0 |
def | G4_RES_IRB1 |
G5 = IRA.new_ircfg() | |
G5 ########## Input. More... | |
def | G5_IRB0 |
def | G5_IRB1 |
def | G5_IRB2 |
def | G5_IRB3 |
G5_RES = IRA.new_ircfg() | |
def | G5_RES_IRB0 |
def | G5_RES_IRB1 |
def | G5_RES_IRB3 |
G6 = IRA.new_ircfg() | |
G6 ########## Input. More... | |
def | G6_IRB0 |
def | G6_IRB1 |
def | G6_IRB2 |
def | G6_IRB3 |
G6_RES = IRA.new_ircfg() | |
def | G6_RES_IRB0 |
def | G6_RES_IRB2 |
def | G6_RES_IRB3 |
G7 = IRA.new_ircfg() | |
G7 ########## Input. More... | |
def | G7_IRB0 |
def | G7_IRB1 |
G7_RES = IRA.new_ircfg() | |
def | G7_RES_IRB0 |
def | G7_RES_IRB1 |
G8 = IRA.new_ircfg() | |
G8 ########## Input. More... | |
def | G8_IRB0 |
def | G8_IRB1 |
G8_RES = IRA.new_ircfg() | |
def | G8_RES_IRB0 |
def | G8_RES_IRB1 |
heads = g_test.heads() | |
Tests. More... | |
Regression test module for DependencyGraph
def reduce_graph.cmp_ir_graph | ( | g1, | |
g2 | |||
) |
def reduce_graph.gen_irblock | ( | label, | |
exprs_list | |||
) |
Returns an IRBlock. Used only for tests purpose
reduce_graph.A = ExprId("a", 32) |
reduce_graph.A_INIT = ExprId("a_init", 32) |
reduce_graph.B = ExprId("b", 32) |
reduce_graph.B_INIT = ExprId("b_init", 32) |
reduce_graph.C = ExprId("c", 32) |
reduce_graph.C_INIT = ExprId("c_init", 32) |
reduce_graph.CST0 = ExprInt(0x0, 32) |
reduce_graph.CST1 = ExprInt(0x1, 32) |
reduce_graph.CST2 = ExprInt(0x2, 32) |
reduce_graph.CST22 = ExprInt(0x22, 32) |
reduce_graph.CST23 = ExprInt(0x23, 32) |
reduce_graph.CST24 = ExprInt(0x24, 32) |
reduce_graph.CST3 = ExprInt(0x3, 32) |
reduce_graph.CST33 = ExprInt(0x33, 32) |
reduce_graph.CST35 = ExprInt(0x35, 32) |
reduce_graph.CST37 = ExprInt(0x37, 32) |
reduce_graph.D = ExprId("d", 32) |
reduce_graph.D_INIT = ExprId("d_init", 32) |
reduce_graph.G1 = IRA.new_ircfg() |
G1 ########## Input.
def reduce_graph.G1_IRB0 |
def reduce_graph.G1_IRB1 |
def reduce_graph.G1_IRB2 |
reduce_graph.G1_RES = IRA.new_ircfg() |
def reduce_graph.G1_RES_IRB0 |
reduce_graph.G2 = IRA.new_ircfg() |
G2 ########## Input.
def reduce_graph.G2_IRB0 |
def reduce_graph.G2_IRB1 |
reduce_graph.G2_RES = IRA.new_ircfg() |
def reduce_graph.G2_RES_IRB0 |
reduce_graph.G3 = IRA.new_ircfg() |
G3 ########## Input.
def reduce_graph.G3_IRB0 |
def reduce_graph.G3_IRB1 |
def reduce_graph.G3_IRB2 |
reduce_graph.G3_RES = IRA.new_ircfg() |
def reduce_graph.G3_RES_IRB0 |
reduce_graph.G4 = IRA.new_ircfg() |
G4 ########## Input.
def reduce_graph.G4_IRB0 |
def reduce_graph.G4_IRB1 |
def reduce_graph.G4_IRB2 |
reduce_graph.G4_RES = IRA.new_ircfg() |
def reduce_graph.G4_RES_IRB0 |
def reduce_graph.G4_RES_IRB1 |
reduce_graph.G5 = IRA.new_ircfg() |
G5 ########## Input.
def reduce_graph.G5_IRB0 |
def reduce_graph.G5_IRB1 |
def reduce_graph.G5_IRB2 |
def reduce_graph.G5_IRB3 |
reduce_graph.G5_RES = IRA.new_ircfg() |
def reduce_graph.G5_RES_IRB0 |
def reduce_graph.G5_RES_IRB1 |
def reduce_graph.G5_RES_IRB3 |
reduce_graph.G6 = IRA.new_ircfg() |
G6 ########## Input.
def reduce_graph.G6_IRB0 |
def reduce_graph.G6_IRB1 |
def reduce_graph.G6_IRB2 |
def reduce_graph.G6_IRB3 |
reduce_graph.G6_RES = IRA.new_ircfg() |
def reduce_graph.G6_RES_IRB0 |
def reduce_graph.G6_RES_IRB2 |
def reduce_graph.G6_RES_IRB3 |
reduce_graph.G7 = IRA.new_ircfg() |
G7 ########## Input.
def reduce_graph.G7_IRB0 |
def reduce_graph.G7_IRB1 |
reduce_graph.G7_RES = IRA.new_ircfg() |
def reduce_graph.G7_RES_IRB0 |
def reduce_graph.G7_RES_IRB1 |
reduce_graph.G8 = IRA.new_ircfg() |
G8 ########## Input.
def reduce_graph.G8_IRB0 |
def reduce_graph.G8_IRB1 |
reduce_graph.G8_RES = IRA.new_ircfg() |
def reduce_graph.G8_RES_IRB0 |
def reduce_graph.G8_RES_IRB1 |
reduce_graph.heads = g_test.heads() |
Tests.
reduce_graph.IRDst = ExprId("IRDst", 32) |
reduce_graph.LBL0 = loc_db.add_location("lbl0", 0) |
reduce_graph.LBL1 = loc_db.add_location("lbl1", 1) |
reduce_graph.LBL2 = loc_db.add_location("lbl2", 2) |
reduce_graph.LBL3 = loc_db.add_location("lbl3", 3) |
reduce_graph.LBL4 = loc_db.add_location("lbl4", 4) |
reduce_graph.LBL5 = loc_db.add_location("lbl5", 5) |
reduce_graph.LBL6 = loc_db.add_location("lbl6", 6) |
reduce_graph.loc_db = LocationDB() |
reduce_graph.PC = ExprId("pc", 32) |
reduce_graph.R = ExprId("r", 32) |
reduce_graph.SP = ExprId("sp", 32) |