is thier a way to decompile a C/C++ program ??
Printable View
is thier a way to decompile a C/C++ program ??
No.
The reason -
MS actually listened when programmers complained that any clown could decompile and .EXE back into something like the original code. Code the programmers spent hours creating.
If you have legacy code in .EXE form and you lost the source and now you neeed to change it, there are specialty houses that will turn it back into object files or assembler and help you modify the code. Or give you a logic flow diagram and DFD. Costs lots of money.
Ya i Found one it was free works i just dont know what ASM is lol looks like im screwed!
So it didn't work then. It just converted it back into mnemonics :)
Assembler is just a representation of cpu op-codes with strings, merging several op-codes into the same asm operation with different operands. Because of this relationship you can always convert machine code to asm, but not any further without debug symbols. All variable/function names are lost. It is possible to write a decompiler that assigns arbritary names, but it is a huge undertaking and won't always produce the results you want. The decompiler had to guess which type of variable is used, which alone is hard enough.
squirrel at some stage should be able to decompile exe's into sq and further into any language, after all machine instructions are instructions and there's a flow of information..
But you can't recreate the original names. Neither can you get the exact original code.
names are meaningless, two pieces of code that produces the same executable are isomorphic
if its a small program i could convert it back to c++, becuase i program assembly. however dont ask me to a large one.
Yeah, but you'd do that by looking at it from knowing what the assembler does, and by spotting certain idioms (like a vfptr lookup).