I need to know how to extract C code from just and .EXE
Email [email protected]
I need to know how to extract C code from just and .EXE
Email [email protected]
>I need to know how to extract C code from just and .EXE
Yea, it's about time for another one of these questions. The answer is STFW. You can find all the info you want about disassembly and decompiling.
-Prelude
My best code is written with the delete key.
>> I need to know how to extract C code from just and .EXE
>
> Yea, it's about time for another one of these questions. The
> answer is STFW.
Haha. That's funny. Took me a second to figure out the acronym. I usually just say STFU...
Quzah.
Hope is the first step on the road to disappointment.
Well, the C code is not in the EXE like you think it is. It's all pure asm from the OBJs.
by the way, if you got code that was compiled with debugging info it might help you understand the structure of the program better...
and... what does it stand for?!?! i can't figure it out!!!
hasafraggin shizigishin oppashigger...
STFW: Search The... er, Fine Web.Originally posted by doubleanti
and... what does it stand for?!?! i can't figure it out!!!
Jason Deckard
Search The Fine Web, (thanks Jason!)
>>>
if you got code that was compiled with debugging info it might help you understand the structure of the program better...
<<<
True, it may be a little better, but unless you know what compiler was used originally, how can the decompiler know which high level language constructs were used to produce the resulting assembler? Several different tracts of code could compile down to the same assembler, espeacially true with a good optimising compiler.
Of course one could argue that any version that compiled down to the same assembler would be helpful, however, without knowledge of what libraries, (for example), were used, the resulting output is only valid in the simplest of cases and rarely more than useless.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
>which high level language constructs were used to produce the resulting assembler?
pray to the programming gods and forego determinism for intuition...
and yes, just a little better... but the day i discuss the finer points of op codes with Bubba is the day i've ported AKTIF to windows... in fact, it'll be before the day i port... and the day after i graduate from uni... heeh...
hasafraggin shizigishin oppashigger...
Hi all,
dont u think it is possible for us to construct a (new) program from an ASM program. Maybe not the original code that produced the exe, but u can construct something similar(atleast in the logic).
One problem that I agree is that it would test ur nerve to first go through the entire ASM code before u write the first line of the C code. But if u are ready to sit for hours with the asm code (with concentration) then u can understand it and write ur own code.
Regards,
Sriharsha.
Help everyone you can
Don't exactly get what you mean. There is an exe, a decompiler or debugger can show the ASM instructions. From there, it could be possible to create a C code. The program should be able to locate variables, recognize functions etc.
If we were meant to what the source code was then it would be OPEN SOURCE and released under the GPL or others similar.
kwigibo
The only problem with decompiling a program is that theres no such thing as a name and even if there was a magical program to convert asm to c, you wouldnt be able to read it very we'll. Write a program that is say a couple of hundred lines, and dont use any names except for say single letters and give it to someone to read, odds are they cant. If ya need to modify the exe then you'll need to learn asm.