Created
September 6, 2022 13:17
-
-
Save OlivierLaflamme/909a47764243d240ba3ff33114588add to your computer and use it in GitHub Desktop.
IDA function resolving piece of fucking shit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from idaapi import * | |
from idc import * baseaddr = 0x10000 start = 0x301E64 + baseaddr end = 0x3293b4 + baseaddr | |
ea = start | |
while ea <= end: | |
create_strlit(Dword(ea), BADADDR) | |
func_name = get_strlit_contents(Dword(ea)) | |
if func_name: | |
func_name = str (func_name) | |
func_addr = Dword(ea+ 4 ) | |
set_Name(func_addr, func_name) | |
create_insn(func_addr) | |
add_func(func_addr, BADADDR) ea = ea + 0x10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment