Case study
ht2-rev: reconstructing Hard Truck 2's king.exe in C++
ht2-rev reconstructs Hard Truck 2: King of the Road's king.exe as C++ source for a 32-bit Windows build. The work grew from a byte-matching disassembly and translates the helicopter step and trailer hitch solver from x87 instructions, with tests against the original machine code. It extracts resources from the user's executable at build time and runs with an installed game.
- Targets
- Binary · Game
- Category
- Independent reconstruction cases
- Relationship
- Independent reconstruction project
- Sources reviewed
- Stars
- 5
- Last commit
- 2026-11-06
- Language
- C++
GitHub data as of 2026-11-09
Requirements & limits
- Prerequisites: Building requires the user's original king.exe for resources; running requires an installed game.
- Prerequisites: Building requires VS 2022 Build Tools with the v142 x86 toolset, Windows 10 SDK, DirectX 7 SDK libraries, and Python with pefile.
- Limits: About 2,300 calls still use original labels and untyped call helpers.
- License: No licence file in the repository.
Cite
BibTeX
@misc{hard-truck-2-king-exe-case,
title = {{ht2-rev: reconstructing Hard Truck 2's king.exe in C++}},
howpublished = {\url{https://github.com/KudryavtsevDmitry/ht2-rev}},
url = {https://github.com/KudryavtsevDmitry/ht2-rev},
urldate = {2026-11-06},
note = {Awesome REA entry: \url{https://awesomerea.org/resources/hard-truck-2-king-exe-case/}}
}Plain text
ht2-rev: reconstructing Hard Truck 2's king.exe in C++. https://github.com/KudryavtsevDmitry/ht2-rev (accessed 2026-11-06). Awesome REA entry: https://awesomerea.org/resources/hard-truck-2-king-exe-case/
Useful? Star Awesome REA on GitHub2.4k
About this entry
The description was reviewed against primary sources.
Primary sources
- README.md GitHub · KudryavtsevDmitry/ht2-rev · Revision 53627ed
- CONVERSION_LOG.md GitHub · KudryavtsevDmitry/ht2-rev · Revision 53627ed
More in Games
- Hunchback: an in-progress ZX Spectrum disassembly · Case study
- Hungry Horace: a SkoolKit ZX Spectrum disassembly · Case study
- IEStrikers: decompiling Inazuma Eleven Strikers · Case study
- IGI-RE: functional decompilation of Project I.G.I. · Case study
- Ikachan3: decompiling the Nintendo 3DS release · Case study
- Indy 500: a first-pass labeled Atari 2600 disassembly · Case study