|
-
Oct 9th, 2002, 11:41 AM
#1
Thread Starter
Hyperactive Member
Decompile
is thier a way to decompile a C/C++ program ??
-
Oct 9th, 2002, 11:45 AM
#2
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 9th, 2002, 02:40 PM
#3
Frenzied Member
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.
-
Oct 9th, 2002, 04:30 PM
#4
Thread Starter
Hyperactive Member
Ya i Found one it was free works i just dont know what ASM is lol looks like im screwed!
-
Oct 9th, 2002, 04:57 PM
#5
Monday Morning Lunatic
So it didn't work then. It just converted it back into mnemonics
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 11th, 2002, 07:28 AM
#6
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 11th, 2002, 09:43 AM
#7
transcendental analytic
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..
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 11th, 2002, 10:11 AM
#8
But you can't recreate the original names. Neither can you get the exact original code.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 11th, 2002, 11:18 AM
#9
transcendental analytic
names are meaningless, two pieces of code that produces the same executable are isomorphic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 12th, 2002, 06:20 PM
#10
Hyperactive Member
if its a small program i could convert it back to c++, becuase i program assembly. however dont ask me to a large one.
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Oct 13th, 2002, 06:19 AM
#11
Monday Morning Lunatic
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).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|