Author Topic: Decompile .exe  (Read 5764 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Decompile .exe
« on: November 27, 2012, 07:53:54 pm »
First, i hope this is the right section to post :P
Ok, so, I want to decompile a exe patch for a game, or look into all the files stored in it or something like that.
The game is trackmania :P
And i wanne do that because i wanne patch it in a very similar way that existing patch already does.
The exe talked about can be downloaded here (to big to attach): http://www.focus-files.com/patchs/tmuf/TmUnitedForever_StarEdition_Update.exe
Can somebody please help me?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: Decompile .exe
« Reply #1 on: November 27, 2012, 09:59:18 pm »
Its not really possible in most cases (do you know what it was written in?). What you could do is compare the original file with the patched file to see what bytes the patch changes?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Decompile .exe
« Reply #2 on: November 27, 2012, 10:10:12 pm »
it is a hole game, so it is a hole folder, and i am not able to get to a unpatched version of the game
and i think it is written in c++

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Decompile .exe
« Reply #3 on: November 28, 2012, 08:46:37 am »
You cannot decompile to source code afaik. Only to ASM.
I'm not a nerd but I pretend:

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Decompile .exe
« Reply #4 on: November 28, 2012, 03:18:58 pm »
You can sometimes decompile exe's, but only if you know what it's written in. Also, keep in mind that some exe's also contain data, which can make the output of the decompiler incorrect.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Decompile .exe
« Reply #5 on: November 28, 2012, 04:23:43 pm »
What exactly do you want to do, do you want to see how the patch was done? Is this an official game or a homebrew/fan made game?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Decompile .exe
« Reply #6 on: November 28, 2012, 06:57:46 pm »
it is a official game (http://www.trackmaniaforever.com) and the patch is also official, and what i wanne do, i wanne patch the game in a similar way the patch already does, adding another camaign to it.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Decompile .exe
« Reply #7 on: November 28, 2012, 07:43:22 pm »
Adding other tracks/themes can be done without hacking, if that's what you want.
Hacking is necessary to create blockmixing (maps with hexedited blocks properties - I'm proud of a program I made back in the days, that does that :P)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Decompile .exe
« Reply #8 on: November 28, 2012, 07:59:16 pm »
and i mean a real campaign, in-game with unlocking maps etc.
and your gbx master, what kind of gbx's can it read?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Decompile .exe
« Reply #9 on: November 28, 2012, 08:04:50 pm »
You might want to check and see if there is a community dedicated to hacking it. It'd probably be a lot easier than trying to disassemble a patch and see what is what. It sounds like more of an add-on than a patch to me anyways.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Decompile .exe
« Reply #10 on: November 28, 2012, 08:06:00 pm »
They published it as a patch :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Decompile .exe
« Reply #11 on: March 09, 2013, 10:52:34 pm »
I'm a bit late, but can't you just rename an .exe to .zip then open it to view its content? I know the source won't be there, but I wonder if this can help?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Decompile .exe
« Reply #12 on: March 10, 2013, 12:26:55 am »
I'm a bit late, but can't you just rename an .exe to .zip then open it to view its content? I know the source won't be there, but I wonder if this can help?

No, ZIPs have a special file format not present in PE binaries. You're thinking of Java .jar files, which are functionally renamed .zip files with some metadata thrown in there.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Decompile .exe
« Reply #13 on: March 10, 2013, 12:49:05 am »
I'm a bit late, but can't you just rename an .exe to .zip then open it to view its content? I know the source won't be there, but I wonder if this can help?
To bad that it won't work, but it is never to late ;)
Would it be somehow possible then under windows to monitor every changes in a certain folder and all its sub-folders during a period of time?
That way I could also get to know what files are in the .exe

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Decompile .exe
« Reply #14 on: March 10, 2013, 01:20:06 am »
I'm sure there are directory compare tools. If not you could easily write one.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y