SychicBoy / NETReactorSlayer

An open source (GPLv3) deobfuscator and unpacker for Eziriz .NET Reactor
https://www.CodeStrikers.org
GNU General Public License v3.0
964 stars 226 forks source link

Unused Fields/Methods/ect Being Removed #65

Open ChrisKader opened 1 year ago

ChrisKader commented 1 year ago

Describe the bug I notice that some Fields and Methods that are not used within the program being decompiled end up being removed. This is an issue as the same program is linked against when making extensions for said program. It is also then used to compile said extensions. As a result, when a program is finished being decompiled and someone loads an extension that uses one of the deleted fields or methods, it fails to compile.

I believe the SymbolRenamer.cs stage may be what's doing this as it happens with only that stage selected in the application (or switch set in the CLI). Any hints as to where exactly that may be would provide some help with me trying to find a fix that I could PR.

ChrisKader commented 1 year ago

I tried debugging but I would get an error while trying to debug the CLI with Visual Studio due to the program thats being decompiled having debug protection.

ChrisKader commented 1 year ago

The names are failing here.

The valid names that are failing are ones that end in more than one capital letter such as