Open greenozon opened 1 year ago
If you change the order of the Stages
https://github.com/SychicBoy/NETReactorSlayer/blob/0d0a631124e8871f1e69c68be342db6fa45cf37d/NETReactorSlayer.Core/Options.cs#L218-L220
to this order (move the MethodInliner
before the ControlFlowDeobfuscator
):
new MethodInliner(),
new ControlFlowDeobfuscator(),
new AntiManipulationPatcher(),
It is not throwing that error, and dnSpy is not throwing an exception. Also, there are 11824 methods inlined instead of 10596 before and more obfuscator types removed. But I don't know if it breaks other functions. In this particular case, it seems to work.
Output:
[INFO] 6047 Methods decrypted.
[WARN] Couldn't find any equation to resolve.
[WARN] Couldn't find anti tamper method.
[WARN] Couldn't find anti debugger method.
[WARN] Couldn't find any proxied call.
[INFO] 2621 Strings decrypted.
[WARN] Couldn't find any encrypted resource.
[INFO] 35 Metadata tokens deobfuscated.
[INFO] 184 Booleans decrypted.
[INFO] 774 Calls to obfuscator types removed.
[INFO] 11824 Methods inlined.
As another try, using the original order of Stages, I also tried to comment out these 2 lines: https://github.com/SychicBoy/NETReactorSlayer/blob/0d0a631124e8871f1e69c68be342db6fa45cf37d/NETReactorSlayer.Core/Stages/ControlFlowDeobfuscator.cs#L38 https://github.com/SychicBoy/NETReactorSlayer/blob/0d0a631124e8871f1e69c68be342db6fa45cf37d/NETReactorSlayer.Core/Stages/ControlFlowDeobfuscator.cs#L40 Seems that these deobfuscations corrupt the IL code if they are run before the MethodInliner Stage.
Describe the bug errors during work output exe is not clean, some methods can't be even decompiled, decompiler throws exception on these...
Target obfuscated file
input.zip
Screenshots
OS Version: W10
Additional context
example of broken methods:
![Uploading image.png…]()