Extracting sprites from a compiled .exe file made with GameMaker can be challenging, especially depending on the version used to build the game (e.g., GameMaker: Studio 1.x, GameMaker Studio 2.x, or GameMaker Studio 2022+ / GMS2.3+). The process varies based on whether the game uses YYC, encryption, or other protections.
Here’s a general guide on how you might extract sprites from a GameMaker .exe, though keep in mind that this may violate the game's EULA or copyright laws — only do this with games you own or have permission to reverse-engineer.
🔍 Step-by-Step Overview
✅ 1. Determine the GameMaker Version
The first step is figuring out what version of GameMaker was used to create the game:
- GameMaker: Studio 1.x: Often easier to extract assets.
- GameMaker Studio 2.x and above: Assets are often packed into
data.win or game.droid, sometimes compressed or encrypted.
- GameMaker Studio 2.3+ / GMS2022+: Uses more advanced protections like YYC (YoYo Compiler) and asset encryption.
You can try checking the strings inside the .exe using tools like:
🧰 2. Tools You May Need
- Game Extractor – Works for some older GameMaker versions.
- XORSearch – Useful for scanning for image headers in binaries.
- 010 Editor – Hex editor with templates.
- decompiled.exe – Tool specifically for extracting resources from GM:S 1.x games.
- GMAssetCompiler – For compiling/decompiling
.yy files if you get access to them.
- GMS Sprite Dumper scripts – Custom Python scripts found in reverse engineering communities.
📦 3. Look for Asset Files Inside the EXE
Newer GameMaker games bundle all data into a file named:
data.win (Windows)
game.droid (Android)
- These are usually embedded within the
.exe.
Use a tool like:
Try opening the .exe with these tools to see if there are embedded ZIPs, files, or custom sections containing the data.win.
🖼️ 4. Extract Sprites from data.win
If you find a data.win file, it’s essentially a large resource archive. There are several ways to handle it:
A. Use Game Extractor (for older GM versions)
- Open
data.win with Game Extractor.
- Browse to "Textures" or "Sprites" section.
- Export images as PNGs.
B. Use XORSearch
- Sprites are often stored as PNGs internally.
- Run XORSearch on the
.exe or data.win to look for PNG signatures:
xorsearch -f yourgame.exe IHDR
- This will show offsets where PNGs start.
- Extract those sections manually using a hex editor.
C. Use Custom Scripts
There are Python scripts floating around forums like:
🔐 5. Dealing with Encryption / YYC
If the game uses YYC (YoYo Compiler) or asset encryption:
- Sprites may be compressed or encrypted inside
data.win.
- Reverse-engineering becomes significantly harder.
- You may need to:
- Use a debugger (like x64dbg) to dump textures at runtime.
- Hook rendering functions to capture texture memory (like with RenderDoc).
🎮 6. Runtime Texture Dumping (Advanced)
If static extraction fails, consider dumping textures during runtime:
Tools:
- RenderDoc – Capture frames and view textures used by the game.
- NVIDIA Nsight Graphics – Another frame capture tool.
- Texture Dumpers – Some community tools exist for GameMaker (search GitHub or forums).
- Memory Editors (Cheat Engine) – Scan for image patterns or known sprite sizes.
⚠️ Legal Note
Make sure you're not violating any End User License Agreement (EULA) or copyright laws. Only extract assets from games you own and for personal use (e.g., modding or preservation), unless explicitly permitted otherwise.
✅ Summary Table
| Method | Difficulty | Notes |
|---|
| Game Extractor | Easy | Works for old GM versions |
| XORSearch + Hex Editor | Medium | Finds raw PNGs |
| Runtime Texture Dumping | Hard | Best for YYC/encrypted games |
| Script-based Extraction | Medium | Requires finding right script |
| Debuggers (x64dbg) | Expert | Advanced reverse engineering |
💬 Community Resources
If you tell me the specific version of GameMaker used, I can give you a more tailored method.