# 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.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation>
- Primary source: <https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation/blob/bd7642e4defc540c2e93ec48c8e2f1af4088e958/README.md>
- Catalog page: <https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/>
- Record JSON: <https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/harry-potter-half-blood-prince-decomp-case/index.md)

## 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.

## Primary sources

1. <https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation/blob/bd7642e4defc540c2e93ec48c8e2f1af4088e958/README.md>

## More in Games

- [Harry Potter and the Sorcerer's Stone: a GBC disassembly](https://awesomerea.org/resources/hpss-disassembly-case/index.md) · Case study
- [Harvest Moon 64 Decomp: matching decompilation of Harvest Moon 64](https://awesomerea.org/resources/hm64-decomp-case/index.md) · Case study
- [Harvest Moon GB Disassembly: reconstructing the Japanese Game Boy ROM](https://awesomerea.org/resources/harvest-moon-gb-disassembly-case/index.md) · Case study
- [Harvest Moon: Back to Nature: a byte-matching PlayStation decompilation](https://awesomerea.org/resources/harvest-moon-back-to-nature-decomp-case/index.md) · Case study
- [Harvest Moon: Back to Nature: matching PS1 executable reconstruction](https://awesomerea.org/resources/backtonature-decompiled-case/index.md) · Case study
- [HarvestMoonSnesDecomp: matching Harvest Moon SNES source in C](https://awesomerea.org/resources/harvest-moon-snes-c/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
