This is tricky; the guys before me answered well and I'd like to add that you could be lucky if and only if the code compiled under c or c++ for instance was compiled with debugging generation options; in that case, you would be able to open the executable file with your favorite debugger such as borland debugger, gdb, microsoft debugger ...etc. and see the source code; else, struggle with assembly language! and trust me .. it's a headache tracing machine codes for long lines that would indicate a simple increment!!
2007-06-04 00:09:46
·
answer #1
·
answered by Coosa 2
·
0⤊
0⤋
You can do it, but it will be very difficult. You'll have to be an expert at assembly language as well. You can use a program like Ida Pro to try to go from the machine code to assembler and then try to reconstruct it from there. If the executable is small it will probably only take you a few weeks if you're an expert. Otherwise, you're out of luck.
2007-06-04 06:28:07
·
answer #2
·
answered by Mohammed 1
·
0⤊
0⤋
You need to put the .exe code through a dissassembler to see the assembler mneumonics.
This is usually not very helpful though as there are no useful labels or comments and trying to understand assembler from a dissassembly of unkown code is very time consuming.
A debugger is much more useful as you can trace the assembly code as it is running.
2007-06-04 06:22:12
·
answer #3
·
answered by Tempest 3
·
0⤊
0⤋
You use a disassembler/debugger program. The IDEs for Borland's & Microsoft's Windows C++ compilers have a built-in dissasembler for debugging purposes. There are also free debuggers on the Internet which you can use to disassemble an .exe file and debug it.
2007-06-04 11:16:59
·
answer #4
·
answered by Balk 6
·
0⤊
0⤋
You cant, the source code are complied , you can use a disassembler, but the output is not easy to understand unless you are fluent with assemblers.
2007-06-04 06:23:24
·
answer #5
·
answered by Cupcake 7
·
0⤊
0⤋
I will just add that if the application is developed using java or .NET then java decomilers (like cavaj) or .net decompilers will be able to generate most of the code out of the exe.
2007-06-04 09:28:15
·
answer #6
·
answered by Anonymous
·
0⤊
0⤋