[ASM] Decompiling to VC++ code source

Experienced Elementalist
Joined
Mar 9, 2007
Messages
210
Reaction score
2
OK guys, im back with another problem...as you know, i've been working on this thing for a while now and I do have a program that anything I click within the game will be shown with it's encryption and converted into asm! now here's the problem

I have to convert 1.877 million lines of asm into C++/C now of course, that's not possible to do by hand, Oh right, and it may also be encrypted with protection, but is there an actaul program Private or not, that can do such a thing? any ideas:scratch:? it would be of great help thanks
:punch:
 
Re: Converting Asm To Microsoft C++ visual code source

you cant bring assembly back to the 1:1 official source code

however people can develop a script to parse the opcodes / source code and translate them to a more readable script

i must say i know asm pretty well but even i wont be able to translate full games and functions to C++

im not aware of any program that can do this
 
Re: Converting Asm To Microsoft C++ visual code source

Disassemblers can't bring back the source code (in C++ or any other language) of the PE file...

It might be able to divide it into loose functions so you can overlook it easier etc
Files can hold resources, for example BMP's, MP3's or whatever
Those are easy to take out or "disassemble"

During compilation of a native PE file the code gets translated to binary and uses optimized routines
Some languages that dont compile like native C++ are stored differently and parts may be recovered...

bleh its way too late for me atm might explain myself a bit clearer tomorrow
hope i helped u a bit so far...
 
Re: Converting Asm To Microsoft C++ visual code source

I think your right stealthy, until then I'll look for a solution, otherwise I'd have to spend 2,00$'s on a program that converts to C...anyways thanks for the help
 
Re: Converting Asm To Microsoft C++ visual code source

google as much as you want
1:1 compiling/decompiling is impossible with optimized native PE files

because the actual source code gets optimized and replaced with faster routines etc during compilation

that for the code will always be different

second, even if you want to spend a life time on learning all x86 and 86_64 opcodes and params and manage to translate functions back to C++ or whatever language you cant bring it back to how it officially was

but all you need is basic ASM... for example if you want to do keygenning
you look for the function.. look how the correct output is calculated by reading what the function does and how it handles it then use ur brain and try re-generate it in C++ or whatever language

like i myself, i work alot with the RYL1 / RYL2 server files
they use a korean encryption technique called SEED on their tcp packs (comparable to blowfish kinda)
i wrote a "proxy" for it which real time decrypts and logs the packets in readable format :)

the decrypting functions where huge because of crappy coding and it's optimization.. took me quite some time to figure everything out
 
Re: Converting Asm To Microsoft C++ visual code source

Yes I realize all of that ^_^

There is a program that I do want called Relogix, the problem is that I can't find a trial and I don't want to pay for the actual thing, is there anyway I can get a keygen or someone here can take away the "key validation" for this program? I don't want to do anything completely illegal, I just need the program for a day or two nothing special and yes, this is related to the topic, I'm going to translate Asm to C, then program from there, hell I might even try doing things from just the ASM original though taking from C will be much easier
 
Re: Converting Asm To Microsoft C++ visual code source

sure it can be cracked
but i dont think im allowed to discuss this on rz
 
Re: Converting Asm To Microsoft C++ visual code source

Why would you want to do that:
- Because for the humans its easier to read in simple words then riddles
C/C++ is way easier then ASM (to program with.. reading is cake once u understand the opcodes)

About those 1.877 lines...
I think it's called sarcasm... Or something
 
Interesting topic, though one that has come around a few months ago as well. I've modified your title to confirm to the section rules and am inclined to leave this open since more people have been asking about decompiling, but be sure that the first to deviate from the topic will get his ass infracted :wink:
 
I googled "infracted ass"

didn't know quite what you mean but it returned this:
cloakedmapl - [ASM] Decompiling to VC++ code source - RaGEZONE Forums


I WAN KTHX!
The pink panties.. DOH! x.x
 
yea, exactly....it's turning into a big mess of work, but using a bunch of resources my team and I may be getting somewhere! still some of the problems exist were trying to work them out

Oh and Lol @stealthy for deviating from the topic AND posting oh nvm LOlz stay on topic guys, please ;) I will need the help, well actaully there is about that many lines on the asm....that wasn't sarcasm, the game is huge and high demanding therefore making tons and tons of coding (yes we realize this will take along long time and we know what were up against) oh and stealthy if you said it could be cracked would you want to add me to msn? that program would be of GREAT help

and @fragfrog yes, I put something like this long ago but 1. I did not know wth I was talking about
and 2. it wasn't relevant to the same thing =) it was just a bunch of crap code as I like to call it
Sorry for not making my title correct with tags =( oh well I can deal with infractions heh..... thanks for leaving the topic open so I don't have to re-create ^^
 
This is the one that originally Decompiled the program into ASM, and it is around 1.87 million lines, the files itself is 44 mb i believe of asm. Stealthy as cloakedmaple said before a program that can convert asm to C like prelogix would be very important. I used the best programs available and Many different ones until i had what i believed to be the fullest possible decomplied code. There are programs out there that will decompile the exe into C (boomerang) but most crash or give poor results.
 
You miss my point.
The ORIGINAL code cannot be returned.

The code changes during compiling (using optimizing routines).
Like i said, sure the opcodes / values can be parsed and functions can be ported.
Thats exactly what crackers / keygenners etc do.

Though it's not the original code and i don't think it works flawlessly...
Your "great programs" might come in handy when you need to port over small functions but to disassemble and port a complete game... NOPE.

Anyway... Thanks for the infraction... U boons dont know what humor is.

Oh and uh cloakedmapl what is your MSN?
 
As been said, it won't be 1:1 if you translate to C++ but if you have game developing experience and are very knowledgeable in ASM and C++ you could essentially translate the entire thing to C++ (best to get a team together ^^). It might take you a while and some things may not function as it does in the official game but it'd be pretty close if done properly.
 
yes, I do have a very very good team, I do not work alone and do not attempt things alone, again I realize this. We are going to try to go from ASM to C and if we really need to, to allow more complicated functions port some of it into C++. The main objection here is to get it so we can do this thing easily.

Now as I said before, one of the main problems is that we need a program (Aiming for the program I stated before hand and a crack to it which apparently is illegal to talk about on rage zone so I needa talk about that online on msn.)

In any case, I am still taking all of these suggestions into consideration hopefully to come toa solution soon
 
Back