Final Fantasy Hacktics

Modding => PSX FFT Hacking => Topic started by: nitwit on March 02, 2018, 05:18:54 pm

Title: RetDec, a retargetable decompiler
Post by: nitwit on March 02, 2018, 05:18:54 pm
https://github.com/avast-tl/retdec
QuoteRetDec is a retargetable machine-code decompiler based on LLVM.

The decompiler is not limited to any particular target architecture, operating system, or executable file format:

* Supported file formats: ELF, PE, Mach-O, COFF, AR (archive), Intel HEX, and raw machine code.
* Supported architectures (32b only): Intel x86, ARM, MIPS, PIC32, and PowerPC.

Features:

* Static analysis of executable files with detailed information.
* Compiler and packer detection.
* Loading and instruction decoding.
* Signature-based removal of statically linked library code.
* Extraction and utilization of debugging information (DWARF, PDB).
* Reconstruction of instruction idioms.
* Detection and reconstruction of C++ class hierarchies (RTTI, vtables).
* Demangling of symbols from C++ binaries (GCC, MSVC, Borland).
* Reconstruction of functions, types, and high-level constructs.
* Integrated disassembler.
* Output in two high-level languages: C and a Python-like language.
* Generation of call graphs, control-flow graphs, and various statistics.

You can try all of these features by using our online decompilation service (https://retdec.com/decompilation/).


It can only handle files smaller than 10 megabytes, but I wonder what it would output from BATTLE.BIN or the SCUS?
Title: Re: RetDec, a retargetable decompiler
Post by: Xifanie on March 02, 2018, 06:45:03 pm
...why didn't you try it, then?
Title: Re: RetDec, a retargetable decompiler
Post by: nitwit on March 03, 2018, 04:23:59 pm
It doesn't seem wise to use it on a public forum.