Joined: 25 Jan 2006 Posts: 8579 Location: 127.0.0.1
Posted: Wed May 05, 2021 12:37 pm Post subject:
Tools like ILSpy, dnSpy, Reflector and so on are actual IL editors/debuggers/etc. and can help with this better than IDA will. While you can edit the byte code directly in IDA, it does not account for other important things such as properly cleaning up the branching if you fully remove it and other things.
With one of the other tools, you can just remove the IL code for pretty much everything and only leave the registered branch's 3 lines instead and the ending ret. (You do need to cleanup the calls branch info then and in other instances if it had exception handlers you'd need to fix/clean those up too etc.) _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum