Jump to content

How to Decompile an .exe?

So there's this game that has only an .exe file and no other files. For a school project, I need to make a flash game and I need one of the background image files to use for my project. I don't know how to decompile the .exe to retrieve it. Does anyone know what software I could use? I tried UniExtractor, WinRAR, and 7-Zip. Thanks :)

Link to comment
Share on other sites

Link to post
Share on other sites

You cannot decompile a .exe file.

So there's no way to view the files inside?

Link to comment
Share on other sites

Link to post
Share on other sites

Take a screenshot, try searching for it on Google images with that screenshot?

Link to comment
Share on other sites

Link to post
Share on other sites

IDK if you can extract a executable but for the (de)compiling of the SWF (flash), SoThink has a decompiler.

Mein Führer... I CAN WALK !!

Link to comment
Share on other sites

Link to post
Share on other sites

If you compile an .exe with a compiler like Visual Studio, can't you do the opposite?

"If it has tits or tires, at some point you will have problems with it." -@vinyldash303

this is probably the only place i'll hang out anymore: http://linustechtips.com/main/topic/274320-the-long-awaited-car-thread/

 

Current Rig: Intel Core 2 Quad Q6600, Abit IN9-32MAX nForce 680i board, Galaxy GT610 1GB DDR3 gpu, Cooler Master Mystique 632S Full ATX case, 1 2TB Seagate Barracuda SATA and 1x200gb Maxtor SATA drives, 1 LG SATA DVD drive, Windows 10. All currently runs like shit :D 

Link to comment
Share on other sites

Link to post
Share on other sites

I think your best bet would be to take a screen shot. It will be a hell of a lot easier.

 

If you compile an .exe with a compiler like Visual Studio, can't you do the opposite?

 

I don't think you can just decompile an exe file like that. I would be fairly sure you need the source code to be released.

Rig: i7 2600K @ 4.2GHz, Larkooler Watercooling System, MSI Z68a-gd80-G3, 8GB G.Skill Sniper 1600MHz CL9, Gigabyte GTX 670 Windforce 3x 2GB OC, Samsung 840 250GB, 1TB WD Caviar Blue, Auzentech X-FI Forte 7.1, XFX PRO650W, Silverstone RV02 Monitors: Asus PB278Q, LG W2243S-PF (Gaming / overclocked to 74Hz) Peripherals: Logitech G9x Laser, QPad MK-50, AudioTechnica ATH AD700

Link to comment
Share on other sites

Link to post
Share on other sites

Make a screenshot! Its the easiest way.

 

Maybe the image is included via the PE resource part of the executable. In that case there are tools to extract it. But it may also just be inside a binary blob part of the file that gets interpreted by the program part.

Except stuff like java or script languages, PC programs are direct x86 machine code. You can dissemble it to get a better readable version of the machine code. And you also can make C code from it. But most of the informations of the original source coda are lost. And because of the complexity of most programs this makes a big difference.

Its like un-bake a cake to get the ingredients.

 

[edit]I hate forum software that removes my line breaks becasue I dont use javascript -_-

Link to comment
Share on other sites

Link to post
Share on other sites

What language is the exe, do you know?

If the background is generated, or encrypted, or compressed in some fashion, you can't extract it.

If it is set a resources, you may MAYBE extract the image.

You CAN decompile an exe, they are tools, however you are required in depth knowledge on the topic.

However, if the exe is a package exe, then your life is much more complicated, and if its a Flash swf or exe (made with Adobe Flash, and not a swf to exe tools like SWF Studio) file or a jar file you can decompile it easily, they are tool on the web for that. But, if it and 'actual binary', then you are in for a world of hurt in trying to to extract it, if it is not a project resource file.

Link to comment
Share on other sites

Link to post
Share on other sites

I remember reading quite a while ago, that you can decompile an .exe file but it comes out as assembly code. No idea how you do it though.

3700x, Asus B450i, 16GB Corsair Vengeance RGB, Gigabyte GTX 970 ITXDan A4-SFX, SX600-G, 120mm AIO.

Link to comment
Share on other sites

Link to post
Share on other sites

Decompilation is possible, but it's more of an art form than a precise

"click and done" process. For any non-trivial software package it's

rather tricky stuff and requires quite some skill and know-how AFAIK.

EDIT: Or, put differently, if you've never done it so far, you're not

likely to get the desired result within a reasonable timeframe for this

project.

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
Share on other sites

Link to post
Share on other sites

So there's no way to view the files inside?

You can, not on every language and it's not that simple. But getting the original source code 100%, won't happen.

Link to comment
Share on other sites

Link to post
Share on other sites

If it was that easy to just get the source code from an .exe, there wouldn't be a point to open-source software.

CPU: AMD RYZEN 7 3700x CPU Cooler: AMD Wraith Prism Motherboard: MSI MPG X570 Gaming Plus Memory: Corsair Vengeance RGB Pro 16GB (2x8GB) SSD: Samsung 970 Plus 250GB NVME, WD Blue 2TB m.2, Crucial M500 240GB GPU: EVGA GTX 1080 FTW PSU: Seasonic G-Series 550W CASE: Corsair 220T RGB

Link to comment
Share on other sites

Link to post
Share on other sites

389-Impossibru.jpg

You can try reverse engineering it though... GL with that

Link to comment
Share on other sites

Link to post
Share on other sites

If it was that easy to just get the source code from an .exe, there wouldn't be a point to open-source software.

Very true. :)

 

 

389-Impossibru.jpg

You can try reverse engineering it though... GL with that

It is actually possible, there is some special software for decompilation. I came across

a suite for that purpose a while ago, it was used by a guy on another forum who

works in cybersecurity, he said he uses it in his job for help in analysing malware

and things like that. It's very expensive though, and as said, it's not just

"click and done", much more of an art form, because decompilation is not unambiguous

(often, at least). I don't recall what the software was called though unfortunately,

and it certainly wouldn't be suitable for OP's purposes.

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×