MCPcopy Create free account
hub / github.com/qilingframework/qiling / disasm

Function disasm

examples/windows_trace.py:74–82  ·  view source on GitHub ↗
(count, ql: Qiling, address: int, size: int)

Source from the content-addressed store, hash-verified

72
73
74def disasm(count, ql: Qiling, address: int, size: int):
75 buf = ql.mem.read(address, size)
76 try:
77 for i in md.disasm(buf, address):
78 return "{:08X}\t{:08X}: {:24s} {:10s} {:16s}".format(count[0], i.address, spaced_hex(buf), i.mnemonic,
79 i.op_str)
80 except:
81 import traceback
82 print(traceback.format_exc())
83
84
85def trace(ql: Qiling):

Callers 1

trace_cbFunction · 0.70

Calls 4

disasmMethod · 0.80
formatMethod · 0.80
spaced_hexFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected