Case study
Harry Potter and the Half-Blood Prince: function-level Windows decompilation
Harry Potter and the Half-Blood Prince — Decompilation reconstructs functions from the Windows hp6.exe as C and readable MASM, then compares rebuilt machine code with the executable. A Capstone-based tool emits C candidates from x86 control flow; the author reports 4,689 exact function matches among 10,992 inventoried functions.
- Targets
- Game
- Category
- Independent reconstruction cases
- Relationship
- Independent reconstruction project
- Sources reviewed
- Stars
- 2
- Last commit
- 2026-10-14
- Language
- C
GitHub data as of 2026-11-09
Requirements & limits
- Prerequisites: A local hp6.exe version 1.0.0.1 matching the README fingerprint is required.
- Prerequisites: Python and an x86 MSVC compiler are required; reproducing current matches uses a compatible VC8 SP1 compiler.
- Limits: The author reports 4,689 of 10,992 inventoried functions matching exactly; remaining functions include fragments and other difficult cases.
- License: No licence file in the repository.
Cite
BibTeX
@misc{harry-potter-half-blood-prince-decomp-case,
title = {{Harry Potter and the Half-Blood Prince: function-level Windows decompilation}},
howpublished = {\url{https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation}},
url = {https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation},
urldate = {2026-11-06},
note = {Awesome REA entry: \url{https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/}}
}Plain text
Harry Potter and the Half-Blood Prince: function-level Windows decompilation. https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation (accessed 2026-11-06). Awesome REA entry: https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/
Useful? Star Awesome REA on GitHub2.4k
About this entry
The description was reviewed against primary sources.
Primary sources
- README.md GitHub · MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation · Revision bd7642e
More in Games
- Harry Potter and the Sorcerer's Stone: a GBC disassembly · Case study
- Harvest Moon 64 Decomp: matching decompilation of Harvest Moon 64 · Case study
- Harvest Moon GB Disassembly: reconstructing the Japanese Game Boy ROM · Case study
- Harvest Moon: Back to Nature: a byte-matching PlayStation decompilation · Case study
- Harvest Moon: Back to Nature: matching PS1 executable reconstruction · Case study
- HarvestMoonSnesDecomp: matching Harvest Moon SNES source in C · Case study