miasm
Reverse engineering framework
|
Variables | |
parser = ArgumentParser("Multi-arch (32 bits) assembler") | |
help | |
action | |
nargs | |
args = parser.parse_args() | |
machine = Machine(args.architecture) | |
attrib = machine.dis_engine.attrib | |
size = int(attrib) | |
reg_and_id = dict(machine.mn.regs.all_regs_ids_byname) | |
base_expr = machine.base_expr | |
dst_interval = None | |
pe = pe_init.PE(wsize=size) | |
s_text = pe.SHList.add_section(name="text", addr=0x1000, rawsize=0x1000) | |
s_iat = pe.SHList.add_section(name="iat", rawsize=0x100) | |
list | new_dll |
s_myimp = pe.SHList.add_section(name="myimp", rawsize=len(pe.DirImport)) | |
AddressOfEntryPoint | |
addr_main = pe.rva2virt(s_text.addr) | |
virt = pe.virt | |
output = pe | |
st = StrPatchwork() | |
source = fstream.read() | |
loc_db = LocationDB() | |
asmcfg = parse_asm.parse_txt(machine.mn, attrib, source, loc_db) | |
patches | |
loc_start = loc_db.get_or_create_name_location(args.encrypt[0]) | |
loc_stop = loc_db.get_or_create_name_location(args.encrypt[1]) | |
ad_start = loc_db.get_location_offset(loc_start) | |
ad_stop = loc_db.get_location_offset(loc_stop) | |
shellcode.action |
shellcode.ad_start = loc_db.get_location_offset(loc_start) |
shellcode.ad_stop = loc_db.get_location_offset(loc_stop) |
int shellcode.addr_main = pe.rva2virt(s_text.addr) |
shellcode.AddressOfEntryPoint |
shellcode.args = parser.parse_args() |
shellcode.attrib = machine.dis_engine.attrib |
shellcode.base_expr = machine.base_expr |
shellcode.dst_interval = None |
shellcode.help |
shellcode.loc_db = LocationDB() |
shellcode.loc_start = loc_db.get_or_create_name_location(args.encrypt[0]) |
shellcode.loc_stop = loc_db.get_or_create_name_location(args.encrypt[1]) |
shellcode.machine = Machine(args.architecture) |
shellcode.nargs |
list shellcode.new_dll |
shellcode.output = pe |
shellcode.parser = ArgumentParser("Multi-arch (32 bits) assembler") |
shellcode.patches |
shellcode.pe = pe_init.PE(wsize=size) |
shellcode.reg_and_id = dict(machine.mn.regs.all_regs_ids_byname) |
shellcode.s_iat = pe.SHList.add_section(name="iat", rawsize=0x100) |
shellcode.s_myimp = pe.SHList.add_section(name="myimp", rawsize=len(pe.DirImport)) |
shellcode.s_text = pe.SHList.add_section(name="text", addr=0x1000, rawsize=0x1000) |
int shellcode.size = int(attrib) |
shellcode.source = fstream.read() |
shellcode.st = StrPatchwork() |
shellcode.virt = pe.virt |