Skip to content

Use openai to help you better translate function meanings and restore symbol tables from sub_xxxx functions

Notifications You must be signed in to change notification settings

H4lo/Away_From_Sub_Function_IN_IDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Away_From_Sub_Function_IN_IDA

Use openai to help you better translate function meanings and restore symbol tables from sub_xxxx functions in IDA Pro.

Usage

Download the .py script file and push it to plugins directory in your IDA Pro. If your work environment is MacOS, the location will be:

%Your_IDA_PATH%/ida.app/Contents/MacOS/plugins/

such as:

➜  plugins pwd
/Volumes/Work/IDAPro_7.5/ida.app/Contents/MacOS/plugins
➜  plugins ls
Away_From_Sub_Function_IN_IDA.py binexport11.dylib                defs.h                           hexmips.dylib                    mac_stub.dylib                   pin_user.dylib                   swift.dylib
helpp.py                binexport1164.dylib              dscu.dylib                       hexrays.dylib                    mac_stub64.dylib                 pin_user64.dylib                 swift64.dylib
_patch.dSYM                      bochs                            dscu64.dylib

And open IDA Pro, choose Edit->OpenAIVeryGOOD->Please help me Auto Recover Sub Function to automatic restore sub_xxx function's symbol and translate function meaning, there need to wait...(Depends on the number of your sub_xxx functions.)

image-1

The script translates pseudocode below 70 lines, and rename sub_xxx function to an easier to understand function name.

image-1

  • Modify MAX_LINE_TOKEN in .py file to translate more functions, but if pseudocode hava too many lines, openai may not to translate.

The final restored effect can be seen in the Functions Window on the left.

image-1

About

Use openai to help you better translate function meanings and restore symbol tables from sub_xxxx functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages