Help decompile a exe

Programming related discussions related to game research
Parody
Posts: 12
Joined: Tue Feb 14, 2017 5:38 am

Help decompile a exe

Post by Parody »

So i got my hands on this one tool where you can compile scripts for a game and im trying to get the code in the executable. But when i try and get a decompiler and decompile the program it says not supported. Is there anyway i can get the source code? Btw the decompiler i used was JetBrains- dotpeak
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help decompile a exe

Post by aluigi »

You need for sure provide more information and what type of output you are expecting.
If your target is really having the original source code then you are 100% wrong :)
If you want some snippets of code (like some functions) then it's ok.

It's also important what's the language on which has been programmed the program, for example for .NET go with
http://ilspy.net/, for Flash https://www.free-decompiler.com/flash/, and so on.
For all the other executables:
- REC http://www.backerstreet.com/rec/rec.htm
- plugin for IDA: https://github.com/yegord/snowman
- Boomerang (not suggested): http://boomerang.sourceforge.net/
Obviously those are the free solutions.
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: Help decompile a exe

Post by atom0s »

Parody wrote:So i got my hands on this one tool where you can compile scripts for a game and im trying to get the code in the executable. But when i try and get a decompiler and decompile the program it says not supported. Is there anyway i can get the source code? Btw the decompiler i used was JetBrains- dotpeak


dotPeek is specific to .NET IL languages such as C#/Vb.NET and similar. If the program is coded in something else (C/C++/Delphi/ASM/etc.) then it will not work. You should first determine what language the program is coded in to determine the best route to take in terms of disassembling and getting some form of readable code back. If the program is not done in a higher level language such as a managed language like C# or similar, then you are not going to have any tools available to get the full source code back since none exist to fully decompile a lower level language such as C or C++.
Parody
Posts: 12
Joined: Tue Feb 14, 2017 5:38 am

Re: Help decompile a exe

Post by Parody »

The tool is a compiler for xsc/csc files for a game called gta 5. I got the source code (i think). So there is an option that lets you open a script and it opens a folder to select a file. The tool creates a folder called "www" and when you try and drag or copy to desktop it says folder not found. But i compressed into a zip and it worked. So idk if its the actual source. Now im just trying to figure out how to decompile any script with xsc or csc file. Xsc is for xbox and csc is for ps3. When I try and decompile a script it gives me an error with a missing opcode which idk what it means
Defiance
Posts: 1
Joined: Fri Dec 07, 2018 9:26 pm

Re: Help decompile a exe

Post by Defiance »

Is this for getting the code of gta 5? I’m sorta new to this and I don’t understand everything that’s said.