Skip to content

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

RosettaForge 1.4.0

A portable reverse-engineering suite: binary → disassembly → structured pseudo-C → 14 languages, with a paged hex editor, engine-container extraction, and a batch exporter.

What's new in 1.4.0

  • Multi-file import — File → Open Files… lets you select any number of binaries at once; every file shows up in the "Loaded files" list and stays open side-by-side.
  • Batch export to a folder — no double-clicking functions —
    • Export → All Functions to Folder… writes every decompiled function of the current file as its own source file, plus a combined _all.<ext> and an _index.txt with addresses.
    • Export → All Loaded Files to Folder… does the same for every imported file at once (one subfolder per binary).
  • File → Open now actually works (v1.3 regression fixed): dialog → load → format/engine detection → decompilation → UI refresh, with every failure reported in the Log tab instead of failing silently.
  • Right-side preview panel showing the selected function in Pseudo-C — or whatever language you pick under Export → Show Language in Panels.
  • Hex Dump no longer truncates: the hex view and rfcli hexdump are paged (FilePagedDataProvider, 4 KiB pages read on demand) and work on files of any size.
  • No more silent crashes: unhandled exceptions are written to %TEMP%\RosettaForge\crash-*.log and surfaced with a native message box on Windows (stderr elsewhere).

Components

Component What it does
RosettaForge.exe Main GUI (Avalonia 11, Fluent theme). Function list, code view, right-side preview, paged hex view, strings, entropy chart, analysis log.
HexStudio.exe Standalone hex editor — same paged engine, "go to offset" dialog, no size limit.
rfcli Scriptable CLI: analyze, functions, disasm, decompile, export, hexdump, strings, entropy, xrefs, engines, extract, langs.

Supported inputs

  • Formats: PE32 / PE32+ (with exports & imports), ELF32 / ELF64 (with symbol tables), Mach-O 32/64, raw files.
  • Architectures: x86, x64 (REX/VEX-era, mod/SIB, RIP-relative), ARM64 (AArch64 common integer set), and CIL (.NET managed assemblies via ECMA-335 metadata + IL lifter).
  • Game-engine containers: Godot PCK v1/v2 (extract), Unreal PAK v8–v11 index + uncompressed entry extraction, IL2CPP/Unity/Stride fingerprinting, packer heuristics (UPX-style sections, high-entropy, no-imports).

Output languages (14)

Pseudo-C, C#, C++, C, Python, Rust, JavaScript, Lua, Java, Ruby, Go, F#, Kotlin, Visual Basic — all rendered from one shared IR (structured via CFG region analysis: if/else, while, do-while, infinite loops with break; labels+goto only for irreducible regions).

CLI quickstart

rfcli analyze game.exe
rfcli decompile game.exe --lang pseudoc -o out.c
rfcli decompile SampleLib.dll --lang csharp --func Fibonacci -o -
rfcli export game.exe --lang rust --out-dir ./export      # one file per function
rfcli hexdump bigfile.bin -o dump.txt                      # ENTIRE file, paged
rfcli strings game.exe --min 6
rfcli extract game.pck --out-dir ./pck
rfcli extract Game.pak --out-dir ./pak
rfcli xrefs game.exe 0x140001000
rfcli langs

GUI quickstart

  1. File → Open Files… — select one or many binaries.
  2. Click a file in Loaded files, then a function in the list — the center shows the full listing in the active language; the right panel previews the selected function in Pseudo-C (or your chosen language).
  3. Export → Show Language in Panels → C# etc. to switch language.
  4. Export → All Functions to Folder… — pick a folder, get every function as name_addr.<ext> + _all.<ext> + _index.txt. No double-clicking required.
  5. View → Hex for the paged full-file hex view (Ctrl+E exports the folder).

Crash logs

If anything goes wrong: %TEMP%\RosettaForge\crash-<timestamp>.log (Windows) or the same path under /tmp (Linux). Please attach it when reporting.

Building from source

dotnet build RosettaForge.sln -c Release
dotnet publish src/RosettaForge.App    -c Release -r win-x64   --self-contained true -o dist/win/RosettaForge
dotnet publish src/RosettaForge.HexStudio -c Release -r win-x64 --self-contained true -o dist/win/HexStudio
dotnet publish src/RosettaForge.Cli    -c Release -r win-x64   --self-contained true -o dist/win/rfcli
dotnet publish ... (same with -r linux-x64 for the Linux package)

Known limitations: F# uses x :> T casts; Lua renders ternaries as inline functions; decompiled native code shows local_N/result names (no type recovery yet); compressed PAK entries are listed but not inflated.

Releases

Contributors

Languages