miasm
Reverse engineering framework
mn_seh.Test_SEH_simple Class Reference
Inheritance diagram for mn_seh.Test_SEH_simple:
Collaboration diagram for mn_seh.Test_SEH_simple:

Public Member Functions

def check (self)
 
- Public Member Functions inherited from mn_seh.Test_SEH
def init_machine (self)
 
- Public Member Functions inherited from asm_test.Asm_Test
def __init__ (self, jitter)
 
def __call__ (self)
 
def asm (self)
 
def run (self)
 
def __init__ (self, jitter)
 
def __call__ (self)
 
def asm (self)
 
def run (self)
 
def __init__ (self, jitter_engine)
 
def test_init (self)
 
def prepare (self)
 
def __call__ (self)
 
def run (self)
 
def asm (self)
 

Static Public Attributes

string TXT
 
- Static Public Attributes inherited from asm_test.Asm_Test_32
string arch_name = "x86_32"
 
int arch_attrib = 32
 
int ret_addr = 0x1337beef
 
- Static Public Attributes inherited from asm_test.Asm_Test
int run_addr = 0x0
 

Additional Inherited Members

- Static Public Member Functions inherited from mn_seh.Test_SEH
def deal_exception_priv (jitter)
 
- Public Attributes inherited from asm_test.Asm_Test
 loc_db
 
 myjit
 
 assembly
 

Member Function Documentation

◆ check()

def mn_seh.Test_SEH_simple.check (   self)

Reimplemented from asm_test.Asm_Test.

Member Data Documentation

◆ TXT

string mn_seh.Test_SEH_simple.TXT
static
Initial value:
= '''
main:
XOR EAX, EAX
XOR EDX, EDX
PUSH handler
PUSH DWORD PTR FS:[EDX]
MOV DWORD PTR FS:[EDX], ESP
STI
MOV EBX, DWORD PTR [ESP]
MOV DWORD PTR FS:[EDX], EBX
ADD ESP, 0x8
RET
handler:
MOV ECX, DWORD PTR [ESP+0xC]
INC DWORD PTR [ECX+0x%08x]
MOV DWORD PTR [ECX+0x%08x], 0xcafebabe
XOR EAX, EAX
RET
''' % (ContextException.get_offset("eip"),
ContextException.get_offset("eax"))

The documentation for this class was generated from the following file: