Thanks for the info. Johnny Castaway screensaver is a classic Windows screensaver from the late 90s, delivered as a native Windows EXE. It was written in C/C++ and compiled as a standard Win32 executable, so:
- It is almost certainly NOT a .NET assembly.
- No official source is publicly available.
- It is a compiled native binary with custom graphics and probably some embedded resources or animation data.
What this means for decompiling on Linux
-
No easy C or C++ decompilation available
You won’t get neat source code. Instead, you’re looking at a mixture of assembly code, some GUI definitions embedded in resources, and proprietary animation data formats.
-
Reverse engineering is your only choice
Your tools will be to disassemble and analyze the binary, find interesting data (graphics, sound, animation sequences), then try to patch or modify behavior.
Step-by-step approach you can try on Linux
Step 1. Identify file type and get info
file JohnnyCastaway.exe
Expected output would be something like:
PE32 executable (GUI) Intel 80386, for MS Windows
No .NET indication, which confirms native compiled code.
Step 2. Extract resources
Johnny Castaway may have embedded bitmaps, icons, or other resources:
Install wrestool from the icoutils package:
sudo apt-get install icoutils
Extract all resources:
wrestool -x -t 14 JohnnyCastaway.exe -o resources/
Type 14 is resource type RT_GROUP_ICON (icons). Other resource types can be tried:
- 2 = Bitmap
- 3 = Cursor
- 4 = Icon
- 12, 14 etc.
You can combine:
wrestool -x JohnnyCastaway.exe -o resources/
Then check what you find in resources/.
You can also use Resource Hacker on Windows to get a GUI to extract resources easily.
Step 3. Analyze with Ghidra
Download and install Ghidra:
- Import the
JohnnyCastaway.exe file into Ghidra.
- Let it analyze the file.
- Open disassembly view, function lists, and try to identify structures.
- You may get partial decompilation into pseudo-C code.
This will be very technical and require experience with assembly and Windows API.
Step 4. Patch or modify
- You can try to patch the binary by modifying instructions or data using hex editors or Ghidra’s patching capability.
- Modifying graphic resources can change visuals but you need to understand resource formats.
- The animation data inside might be stored in custom formats, often compressed or encrypted.
Alternative: Emulation / Recreation Approach
Since Johnny Castaway is extremely old, some fans have recreated or extracted assets:
- See if there is an open-source clone or assets extracted from the original.
- Instead of reversing the EXE, you might prefer to recreate or hack an existing screensaver framework.
Summary
| Task | Linux Tool / Method |
|---|
| Identify EXE type | file JohnnyCastaway.exe |
| Extract resources (icons, etc) | wrestool -x JohnnyCastaway.exe |
| Static binary analysis & decompile | Ghidra |
| Patch / hex edit | hexedit, Ghidra |
| Understand WinAPI calls (UI) | Via Ghidra or similar disassembler |
Final notes:
- Full source-level decompilation is practically impossible without original sources.
- Reverse engineering demands advanced knowledge of assembly and Windows internals.
- Modifying screensavers is niche and complex; consider if patching 1-2 bytes or changing resources suffices.
- Consider running Windows reverse engineering tools under Wine for a better GUI experience (
Resource Hacker, dnSpy (if .NET), PE explorers).
If you want, I can help you with:
- How to extract resources step-by-step.
- Ghidra basics for this EXE.
- How to look for strings inside the EXE that might identify key components.
Just ask!