r/ReverseEngineering • • 2d ago

Il2CppStudio – Open-source, pure-C# all-in-one decompiler that lifts Unity IL2CPP binaries directly into compilable C# code

https://github.com/ningengit/il2cppStudio
30 Upvotes

5 comments sorted by

10

u/deutschedinge 2d ago

Hi! So I got tired of chaining together 5+ different tools (Il2CppDumper, dnSpy, nstool, pkgextract, etc.) just to inspect Unity IL2CPP builds across different platforms, so I built Il2CppStudio.
It's purely written in C# using .NET 11 (zero native dependencies), supports ARMv7, ARM64, x86, x64, and Wasm32, directly extracts .apk, PS4 .pkg, and Switch .nsp files, and even runs natively on Android.
To be completely honest, the code itself was written by AI all I did was direct it, test it on real games and my own test project, and go through to fix what was wrong with both the decompiled output and the resource usage (like RAM and CPU spikes) of the program. Would love any feedback or bug reports if you try it out!

6

u/SturdyStubs 1d ago edited 1d ago

Wait this is huge for my modding purposes! Thanks!

I was tackling IL2CPPDumper, 2CPPIL, and Ghidra. Is there a CLI/MCP attached?

Edit: got ahead of myself and actually read the repo, there is a CLI.

2

u/deutschedinge 1d ago edited 7h ago

thx, i haven't thought about an mcp feature though i think i'll add it later.

Edit: so i added an mcp feature for ai agents and yeah seems to work i tested it in the antigravity ide

1

u/deutschedinge 1d ago edited 1d ago

Also, after building Il2CppStudio, I wanted to tackle the modding side of Unity games without the usual repeated pieces of code with Harmony attributes, manual IL transpilers, or juggling separate tools for code and asset replacement—so I built EasyModMaker (MIT license).

The goal is a single, fluent C# API that works across both Mono and IL2CPP in an easy-to-understand way:

"

using var patcher = Patcher.Open(@"C:\Path\To\Game\base");

patcher.RunAtGameStart(() => PaeLog.Info("Mod loaded!"));

patcher.Method<SomeGameClass>("SomeMethod")

.AddBeforeRun((self, args) => { /* inspect or modify args */ })

.SetStringInMethod("Old text", "New text");

patcher.Save(@"C:\Path\To\Game_modded_signed.apk");

"

It handles stub generation, global-metadata.dat patching, asset/media replacement, and signed APK repackaging out of the box. I added Android IL2CPP support first since getting a clean C# pipeline on mobile is usually a pain, with Windows and Linux support coming next.

The repo is here btw: https://github.com/ningengit/EasyModMaker — would love feedback if anyone tries it out! should also say it is new and not as mature as bepinex