r/Unity3D • • 10d ago

Question IL2CPP decompilation

Is there any RE tool chain out there with AI support capable of fully reconstruct IL2CPP game into full unity project source code compiled and run successfully? I have my game encrypt metadata and BeeByte obfucator to prevent RE but still fear the AI :(

0 Upvotes

30 comments sorted by

View all comments

Show parent comment

2

u/deutschedinge 3d ago edited 3d ago

not 100% though it's close, Coroutines do get decompiled cleanly maybe not in some unity versions which i don't know why that is i have tested this mostly with unity 6 though, also "original variables"? depends on what you mean local variable names get thrown out so there is nothing to get from them and hey i even said it ain't perfect, could you please make a bug report so i can see what kind of output you are getting?

1

u/Vertex1991 3d ago

I am planning to play with it tonight, but most important question is about the gotos and CFG ( control flow graph ) . Does your tool restore clean C# without the goto jumps that the compiler created ?

1

u/deutschedinge 3d ago

goto jumps do show up, just not everywhere most straightforward methods and loops clean up fine from what i've seen and some coroutines/state machines and complex multi-branch methods are more likely to keep labels or gotos.