Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

How to decompile a game .exe file?

Featured Replies

  • Author
  • Localization

prohackernoob, posted Wed Sep 07, 2016 2:47 am (17292)


Hey, I am trying to get a usable code by decompiling Battles-Win.exe . The steam version of the game Bloons TD Battles. Every decompilier I have tried so far does not work and I am wondering if you guys know of any?
  • Author
  • Localization

aluigi, posted Wed Sep 07, 2016 7:01 am (17297)


It depends by what you exactly need because "decompiling" may have different meaning depending by the person, and usually it's the wrong meaning because users want to do something for which they have no knowledge and experience.

Often some people want to extract resources from an executable, and that's a job for a resource extractor like ResHacker, 7-Zip (that has a feature to parse PE files) or my parse_exe.bms script.

Other people refer to "disassembling" the executable for viewing the x86 assembly code, that's a job for IDA Pro (there is also a free version).

If you mean "debugging" for finding specific functions and understanding how data is read/write in real-time then you have choices like Ollydbg, ImmunityDbg and x64dbg (Windbg is not user-friendly for first-time users).

The correct meaning of decompiling is converting the low level assembly language of an executable in a higher language, usually C-like, in this case the free tools are RecStudio and Snowman for IDA Pro (Boomerang is a pain to compile, use and for the results, not suggested), otherwise IDA Pro has its own native decompiler but it's not free.

Please note that the Steam executables are encrypted and you need to decrypt them first, 2 ways:
- Steamless: viewtopic.php?f=17&t=1354
- get directly the no-cd executable :D

I'm sure that other users have something to add to this topic.
  • Author
  • Localization

prohackernoob, posted Thu Sep 08, 2016 3:16 am (17343)


Well the main thing I am looking to do is just modify the game entirely through the code. I already managed to change a ton of shit using the password for the data.jet file, but there is just so much stuff that is solely coded in the .exe. Like lets say I want to add a new map to the game entirely, it won't work and the game will crash when I try to play that map, buut if I change the textures and pathing of an existing map it works fine. Went a bit off topic there, but the main thing I am looking for is to be able to change the code of the game, and compile it back to the .exe. Will I be able to do all that with IDA Pro?
  • Author
  • Localization

aluigi, posted Thu Sep 08, 2016 4:45 am (17346)


IDA Pro is just a tool to do things, what you say requires personal skills, experience and effort... you need to know what you do.
Modifying a constant or a string or a very small part of a function are ok for most people with some skills, but being "able to change the code of" a closed-source generic game is a completely different story.
If you ask about these things here it means you don't have the necessary knowledge, sorry.
  • Author
  • Localization

bugmenot, posted Fri Nov 13, 2020 6:27 pm (60224)


EXE files are different. It is true that those written with low level languages like C can't be decompiled from machine code, but can only be disassembled. However there are also .exe files written with C# and they can easily be decompiled back to the source code.
  • Author
  • Localization

atom0s, posted Sun Nov 15, 2020 5:12 am (60281)


C and other lower-level languages can be decompiled, just not to guaranteed working/original code.
There are a handful of decompilers made that can take x86/x64 assembly and translate it back to a C-style pseudo format.

- IDA (HexRays plugin)
- Ghidra
- Snowman
- BinaryNinja (Their new decompiler.)
- Retdec
- Boomerang
- SmartDec
- etc.

Along with some new ones that are up and coming. A main one being 'rev.ng'.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.