Monday, July 27, 2009

Converting .exe to .cpp or .c?

Is impossible.


///

Converting .exe to .cpp or .c?
Not impossible, just not practical. You have to know what language it was written in to begin with and preferably what compiler was used. Even then it's still not practical to do, when the amount of knowledge required to do so, is more than if you just wanted to learn how to write your own software.





If your looking for a point and click way to decompile any random exe, it's not going to happen. User interaction is required and even then, the original source is still not completely visible. It would be like taking the pages out of several larges books, mixing them up and then sorting them out, with no reference to the page number or even the book they came out of, or what language they are written in. And for starters, it might look like English, but it's not.





Not all exe files are written in C++ or C, and if the ones you have are, there are dozens of compilers out there, that all assemble the exe a different way. The source files are even written differently.





The source files in some programs are even written to span several different files, instead of just one cpp file. Most programmers even write their own header files, use their own variables and equations, and several other things outside just using the basic libraries, that make decompiling a fantasy.





Of course, if you could read machine code, it would not matter. But, that's a whole other world all together.
Reply:Generally not possible, but if you can provide more specific information, I may be able to give more specific answers.


No comments:

Post a Comment