Example #1
0
def disasm_at_addr(in_str, ad_to_dis, symbol_pool):
    kargs = {}
    all_bloc = asmbloc.dis_bloc_all(arm_arch.arm_mn, in_str, ad_to_dis, set(),
                                    symbol_pool=symbol_pool,
                                    dontdis_retcall=False,
                                    follow_call=False,
                                    **kargs)
    for i in all_bloc:
        bytecode._PrintDefault("%s\n" % i.label)
        for j in i.lines:
            bytecode._PrintDefault("\t %s\n" % j)
        bytecode._PrintDefault("\n")
Example #2
0
def disasm_at_addr(in_str, ad_to_dis, symbol_pool):
    kargs = {}
    all_bloc = asmbloc.dis_bloc_all(arm_arch.arm_mn, in_str, ad_to_dis, set(),
                                        symbol_pool=symbol_pool,
                                        dontdis_retcall = False,
                                        follow_call = False,
                                        **kargs)
    for i in all_bloc:
        bytecode._PrintDefault("%s\n" % i.label)
        for j in i.lines:
            bytecode._PrintDefault("\t %s\n" % j)
        bytecode._PrintDefault("\n")
Example #3
0
    def show(self):
        bytecode._PrintSubBanner("Function")
        bytecode._PrintDefault("name=%s addr=0x%x\n" %
                               (self.name, self.info.value))

        self.cm.disasm_at_addr(self.info.value)
Example #4
0
    def show(self):
        bytecode._PrintSubBanner("Function")
        bytecode._PrintDefault("name=%s addr=0x%x\n" % (self.name, self.info.value))

        self.cm.disasm_at_addr( self.info.value )