Currently I have a 2000+Line function to reverse engineer with many redundancies and appears to be obfuscated. It their a way to pass to pass this binary to gcc or clang to reassemble it and optimize it ?
-
Have you tried passing it to Hex-Rays to see the decompiled results?– Jason GeffnerMay 21, 2016 at 14:57
-
assuming that I dont have access to hexray or any other paid software ( I really dont)– u185619May 21, 2016 at 16:25
-
"reassembling" is just a tough concept, perhaps you might want to look for a decompiler or maybe you just want to upload your DLL for someone to show you the decompiled code of the function.– user9000May 21, 2016 at 17:42
-
You can try to use retdec.com as a decompiler.– w sMay 22, 2016 at 14:14
-
I appreciate this but what I really want to know how to achieve it to disassemble then re assemble a bin file and pass it to gcc -o3– u185619May 22, 2016 at 14:33