Post
by secrettoo » Thu Jul 22, 2004 9:29 am
You cannot RELIABLY reverse engineer compiled C / C++ back to its source language, but you can disassemble it to assembler and translate that, if you can find out where the appropriate functions are, back to C, but you will need to know assembler. If the code is compiled with the Optimize flag, then forget it, it fucks with the addresses and even a debugger such as WinDbg wouldnt be able to work it out. Ie, with optimized code, addresses are one way, you cannot go backwards.
Look into 'Reverse Engineering C' on google and have fun reading about it. There are tools out there to assist you in reverse engineering back to source code, but that source will not be identical to its original, and if its close count yourself lucky. Its more of an aid to help you understand what a program is doing rather than saying 'here is the reverse engineered code and its what the author wrote'.