DIGIT-ARC read-only archive · snapshot: July 23, 2026

convert .exe files to .c files

18 posts · originally from https://geek.digit.in/community/threads/convert-exe-files-to-c-files.83497/

L
Lucky Rathod Original post #1
Mar 25, 2008 at 12:47 PM
Friends is it possible to convert .exe files to .c files as i have deleted my .c file accidentally
Pathik
Pathik #2
Mar 25, 2008 at 1:05 PM
You can't.. Maybe reverse engg wd help? Google.
MetalheadGautham
Mar 25, 2008 at 1:50 PM
If the program was your own, there is no reason why you can't rewrite it.
If it was downloaded, there is no reason why you can't download it again.

But exe to c is a next to impossible job.
M
Mar 25, 2008 at 2:30 PM
If the program was your own, there is no reason why you can't rewrite it.
If it was downloaded, there is no reason why you can't download it again.
And if you copied it from someone, you can copy it again.
DigitalDude
Mar 25, 2008 at 2:39 PM
try searching for a decompiler...



_
DigitalDude
Mar 25, 2008 at 2:43 PM
a decompiler needs to convert binary to c in this case. Its very hard to do even for a human, and won't generate the same code.
Most probably he would have written a simple C program :D Thats why I said :p



_
ray|raven
Mar 25, 2008 at 2:43 PM
Decompiler work for languages that write byte code and not binary.
I did use one once, when i acidentally deleted my java files instead of my class files, Yeah, Stupid me.
They dont give you the exact code , but its helpful instead of starting back from ground zero.
QwertyManiac
Mar 25, 2008 at 3:00 PM
Try a file recovering software will you? :p (Recover-My-Files is good)
ray|raven
ray|raven #10
Mar 25, 2008 at 3:03 PM
^Well, in my case , XFS has no undelete mechanism.
A
aritrap #11
Mar 25, 2008 at 4:00 PM
Whose program was it anyway? If it was yours, you could have rewritten it easily.

Have you forgotten the site from where u downloaded it? ? ?
QwertyManiac
Mar 25, 2008 at 4:02 PM
Err why do you guys thing rewriting code is easy? It could have been over 500~ lines, a piece of art put together day by day! It'd be downright frustrating to rewrite the entire process again.

And why is it a common thing with you guys to think that every other poster here in this section only downloads or asks for code and never codes himself? :\
redhat
redhat #13
Mar 25, 2008 at 6:31 PM
Dunno, think a decompiler should work...
I have tried Java decompilers for that matter, dunno about C
K
khattam_ #14
Mar 25, 2008 at 9:35 PM
java decompilers might work..coz it is an interpreted language. But getting .c from exe is IMPOSSIBLE....

all you can do now is try file recovery.. or rewrite the code..
L
lilovirus #15
Apr 1, 2008 at 9:08 PM
You can get assembly code out of your exe, and if you understand assembly then you can write C code by looking into it.

As while doing name mangling compiler puts different name for variables in exe so you can not get back original C file. but surely you can get your code back.
BSOD
BSOD #16
Apr 8, 2008 at 2:00 PM
Even if it is possible to actually get back the code manually, it would take days, if not months. Its better if you rewrite the whole thing or use a recovery software to find the deleted file.
Ishan
Ishan #17
Apr 30, 2008 at 8:03 AM
Digit guys are getting sick day by day!
JGuru
JGuru #18
Apr 30, 2008 at 11:05 AM
Use can try Reverse Engineering Compiler (REC 2.1) to convert EXE to a
C language file.

*www.backerstreet.com/rec/rec.htm

I don't know how good it is, since I haven't tested it.