![]() |
miasm
Reverse engineering framework
|
Variables | |
| parser = ArgumentParser("LLVM export example") | |
| help | |
| args = parser.parse_args() | |
| loc_db = LocationDB() | |
| cont = Container.from_stream(open(args.target, 'rb'), loc_db) | |
| machine = Machine(args.architecture if args.architecture else cont.arch) | |
| ir = machine.ir(loc_db) | |
| dis = machine.dis_engine(cont.bin_stream, loc_db=loc_db) | |
| asmcfg = dis.dis_multiblock(int(args.addr, 0)) | |
| ircfg = ir.new_ircfg_from_asmcfg(asmcfg) | |
| context = LLVMContext_IRCompilation() | |
| ir_arch | |
| func = LLVMFunction_IRCompilation(context, name="test") | |
| ret_type | |
| all_regs = set() | |
| elem = src.union(set([dst])) | |
| dictionary | reg2glob = {} |
| data = context.mod.globals.get(str(var), None) | |
| initializer | |
| value = func.builder.load(data) | |
| name | |
| append_ret | |
| export_llvm.all_regs = set() |
| export_llvm.append_ret |
| export_llvm.args = parser.parse_args() |
| export_llvm.asmcfg = dis.dis_multiblock(int(args.addr, 0)) |
| export_llvm.cont = Container.from_stream(open(args.target, 'rb'), loc_db) |
| export_llvm.context = LLVMContext_IRCompilation() |
| export_llvm.data = context.mod.globals.get(str(var), None) |
| export_llvm.elem = src.union(set([dst])) |
| export_llvm.func = LLVMFunction_IRCompilation(context, name="test") |
| export_llvm.help |
| export_llvm.initializer |
| export_llvm.ir = machine.ir(loc_db) |
| export_llvm.ir_arch |
| export_llvm.ircfg = ir.new_ircfg_from_asmcfg(asmcfg) |
| export_llvm.loc_db = LocationDB() |
| export_llvm.machine = Machine(args.architecture if args.architecture else cont.arch) |
| export_llvm.name |
| export_llvm.parser = ArgumentParser("LLVM export example") |
| dictionary export_llvm.reg2glob = {} |
| export_llvm.ret_type |
| export_llvm.value = func.builder.load(data) |