Home

Awesome

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

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

image-1