The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Where Can I find a Decompiler?
 

Post Reply  Post Oekaki 
 

Posted By Message

Retired Kliker Lazarus

The Ed Wood JR of TDC

Registered
  18/07/2003
Points
  7363
24th April, 2004 at 13:53:28 -

Hey guys! I've been searching for a C++ decompiler for awhile. I know there out there some where...Anyone know where I could get it? Thanks-
Lazarus

 
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
24th April, 2004 at 14:18:46 -

Hahahaha.... Decompiler is a tool that turns an exe into c++ code? Well, this means you are not very acquainted with programming - that's possible to turn a program from a high level language like c++ to a low level lang like asm, but NEVER vice versa. If it was possible, all programs would have been already hacked.

 
I need painters, musicians and animators!

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
24th April, 2004 at 14:26:26 -

It is possible - the output C code would nothing like the original though.

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Kramy



Registered
  08/06/2002
Points
  1888
24th April, 2004 at 17:39:07 -

Yes, like it's quite easy to get into the MMF runtime exe.

Good luck sifting through thousands of lines of gibberish, though.

BTW, if you make a loop to assign say.....15000 variables(perhaps for a level map or something) then a decompiler will list all of those tiles individually. (unless your decompiler is smart(is there a smart decompiler?))

 
Kramy

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
24th April, 2004 at 19:36:32 -

Well it's not actually written into memory individually, like normal languages ASM (as a frontend for binary) also has loops, which is how it would be written into the EXE, provided your using a good compiler

There are decompilers out there that convert software into ASM (you can open an EXE in Visual C++ and it displays the assembly code), and I'm sure there would be decompilers out there for C++, though I highly doubt there's any one that could decompile any program.

Something you'd need to keep in mind is most people use pre-compiled class files for their code (i.e. iostream, string, etc). A decompiler for C++ (or indeed any language at that level or higher) wouldn't know every single library written and thus would have to convert into pretty nasty code anyway, which calls DLL's and so on, instead of simply including a library to make it easier.

So yeah, pretty impossible in most cases, so if you want to be able to read someone elses code you'll need to learn assembler, which isnt that hard, it's just about 100x longer

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Imp of Hazard Games



Registered
  27/08/2003
Points
  781
25th April, 2004 at 03:31:36 -

Yeah, guys, you are right. Sorry. But I still think that decompilers are now just like automatic translation engines a few years ago - their work leaves really much to desire.

 
I need painters, musicians and animators!

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
25th April, 2004 at 07:50:33 -

MSVC++ has a disassembler, which can disassemble compiled EXEs back in to assembly, but still you lose information like meaningful names for labels.

 
- Tigerworks

Mr Icekirby



Registered
  18/12/2003
Points
  846
25th April, 2004 at 09:39:32 -

what are you trying to do anyway? get source code from mmf? or something else illegal?

 
Mr Icekirby says so!
OBEY ME!

Retired Kliker Lazarus

The Ed Wood JR of TDC

Registered
  18/07/2003
Points
  7363
27th April, 2004 at 11:44:19 -

Well first off, Imp- I've been using C++ for a year and a half. Before that I did Vbasic.

IceKirby1- I'm not trying to break into MMF to get a serial code. I could get caught. I'm trying to decompile a game and see how its done. Programming wise, I can only make crappy little 3D games. I want to improve.



 
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
27th April, 2004 at 11:53:40 -

You will not be able to learn anything about the game author's programming techniques from decompiling it. You would either get assembly or very shoddy C code.

 
- Tigerworks

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
28th April, 2004 at 04:12:30 -

There are these things called "practice" and "patience"...dunno if you've heard about´em ?

 
n/a

Retired Kliker Lazarus

The Ed Wood JR of TDC

Registered
  18/07/2003
Points
  7363
29th April, 2004 at 15:05:27 -

Who is this "practice" and "patients"? Actually, I am not very patient, but I do practice.

 
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.

DEC Stuff



Registered
  07/07/2003
Points
  1348
5th May, 2004 at 22:55:41 -

Decompile Windows XP!

That should be fun!

I think its somewhere in the number of 7 million lines of code...

 
http://www.decstuff.net

Galaxy613



Registered
  29/01/2003
Points
  1765
6th May, 2004 at 13:38:41 -

plus decompileing XP would take a heck of alot of time..

 
Image
My forum: http://subsoap.com/ck/forums/index.php

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
12th July, 2004 at 21:22:28 -

Read the thread. You can't.

 
- Tigerworks
   

Post Reply



 



Advertisement

Worth A Click