jchristman / PyDA

Python binary DisAssembler
http://suntzuii.github.io/PyDA/
Other
26 stars 10 forks source link

Identify Variables #17

Open direwolf314 opened 10 years ago

direwolf314 commented 10 years ago

Create a way to identify variables within assembly. This will depend on architecture and calling convention: As a rough example on x86:

  1. Local - $rsp relative
  2. Arguments - $rbp relative
  3. Global - .bss

Subtasking: A. Provide a calling convention field for functions i. Automatically detect based on function start/ending ii. Give user the ability to change manually and re-calculate any identified vars B. Provide a way to track $sp and do basic maths to identify vars after a push/pop C. Have CommonFunctionFormat keep track of its own local variables and list them (with renamability) under its label.