(self, new_address, symbol_name, stubs_on_sync)
Move the hook for a symbol to a specific address
        :param new_address: the new address that will trigger the SimProc execution
        :param symbol_name: the name of the symbol (f.i. strcmp )
        :return: None
Move the hook for a symbol to a specific address
        :param new_address: the new address that will trigger the SimProc execution
        :param symbol_name: the name of the symbol (f.i. strcmp )
        :return: None
Move the hook for a symbol to a specific address : param new_address : the new address that will trigger the SimProc execution : param symbol_name : the name of the symbol ( f . i . strcmp ) : return : None
def rehook_symbol(self, new_address, symbol_name, stubs_on_sync):
        """
        Move the hook for a symbol to a specific address
        :param new_address: the new address that will trigger the SimProc execution
        :param symbol_name: the name of the symbol (f.i. strcmp )
        :return: None
        """
        new_sim_procedures = {}
        for key_address, simproc_obj in self._sim_procedures.items():

            # if we don't want stubs during the sync let's skip those, we will execute the real function.
            if not stubs_on_sync and simproc_obj.is_stub:
                continue

            if simproc_obj.display_name == symbol_name:
                new_sim_procedures[new_address] = simproc_obj
            else:
                new_sim_procedures[key_address] = simproc_obj

        self._sim_procedures = new_sim_procedures
def rehook_symbol ( self , new_address , symbol_name , stubs_on_sync ) : new_sim_procedures = { } for key_address , simproc_obj in self . _sim_procedures . items ( ) : # if we don't want stubs during the sync let's skip those, we will execute the real function. if not stubs_on_sync and simproc_obj . is_stub : continue if simproc_obj . display_name == symbol_name : new_sim_procedures [ new_address ] = simproc_obj else : new_sim_procedures [ key_address ] = simproc_obj self . _sim_procedures = new_sim_procedures