Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
IDApython script used to rename addresses with strings of function names
#Author: Mark Lim
#Version: 0.2 (01 May 2018)
#Use while debugging target using IDAPro
#locate list of function pointers
#Make names of function pointers using strings of function names
#FuncName without DLL prefix result in IDA recognizing the API functions and populate the parameter arguments. [Credits to @nullandnull]
ea = SelStart()
end = SelEnd()
while ea < end:
addr = idc.Dword(ea)
FuncName_dll = idc.get_name(addr)
FuncName = FuncName_dll.split('_')[1]
except IndexError:
FuncName = "NIL"
print hex(ea),FuncName
idc.MakeNameEx(ea, FuncName, idc.SN_NOWARN)
ea += 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment