Exemplo n.º 1
0
def disassemble(dex, offset, size):
    d = dvm.auto(dex)
    if d != None:
        nb = 0
        idx = offset
        for i in d.disassemble(offset, size):
            print("%-8d(%08x)" % (nb, idx), end=' ')
            i.show(idx)
            print()

            idx += i.get_length()
            nb += 1
Exemplo n.º 2
0
def disassemble(dex, offset, size):
    d = dvm.auto(dex)
    if d != None:
        nb = 0
        idx = offset
        for i in d.disassemble(offset, size):
            print("%-8d(%08x)" % (nb, idx), end=' ')
            i.show(idx)
            print()

            idx += i.get_length()
            nb += 1