mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 01:42:29 +00:00
🍌bananary analysis 🍌
| 3.3.5a | ||
| .gitignore | ||
| README.md | ||
binana
This repository hosts some work related to studying the original game binaries.
You can use the information here to get a headstart when working on the Whoa project.
Header files
To make reverse engineering easier, C header files matching the original memory layout are provided.
Importing headers
To use these headers in Ghidra,
- go to
File>Parse C Source.... - Select
clib.prfas your parse configuration, and clear all source files and input paths. - Add the header
<game version>/include/main.hto theSource files to parsecombo box. - press
Parse to Program.
TODO: equivalent guide for IDA Pro.
Maintaining headers
Headers should be restricted at all times to the C programming language only. C++ syntax will break type analysis.
To convert C++ namespaces, use double-underscores. For instance:
void Name::Space::Thing();
should become:
void Name__Space__Thing();
Symbol files
Symbol files are text files that map function names and data labels to addresses.