# Harry Potter and the Half-Blood Prince：Windows 版逐函数反编译

> Harry Potter and the Half-Blood Prince — Decompilation 从 Windows 版 hp6.exe 重建 C 和可读 MASM 函数，并将重新编译的机器码与原程序比较。基于 Capstone 的工具可把 x86 控制流转换为 C 候选代码；作者报告在 10,992 个已编目函数中有 4,689 个精确匹配。

- 类型：案例
- 目标：游戏
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-06
- 收录于：2026-11-09
- 原始资源：<https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation>
- 一手来源：<https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation/blob/bd7642e4defc540c2e93ec48c8e2f1af4088e958/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/harry-potter-half-blood-prince-decomp-case/>
- 记录 JSON：<https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/index.md)

## 使用条件与局限

- **前提条件：**需要与 README 指纹一致的本地 hp6.exe 1.0.0.1。
- **前提条件：**需要 Python 和 x86 MSVC 编译器；重现现有匹配结果需兼容的 VC8 SP1 编译器。
- **局限：**作者报告 10,992 个已编目函数中有 4,689 个精确匹配；其余包括函数片段等难处理情况。
- **许可：**仓库中没有许可证文件。

## 一手来源

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

## 同分区更多条目：游戏

- [Harry Potter and the Sorcerer's Stone：GBC 游戏反汇编](https://awesomerea.org/zh/resources/hpss-disassembly-case/index.md) · 案例
- [Harvest Moon 64 Decomp：牧场物语 64 的匹配反编译](https://awesomerea.org/zh/resources/hm64-decomp-case/index.md) · 案例
- [Harvest Moon GB Disassembly：重建日版 Game Boy ROM](https://awesomerea.org/zh/resources/harvest-moon-gb-disassembly-case/index.md) · 案例
- [Harvest Moon: Back to Nature：PlayStation 版本逐字节匹配反编译](https://awesomerea.org/zh/resources/harvest-moon-back-to-nature-decomp-case/index.md) · 案例
- [Harvest Moon: Back to Nature：PS1 可执行文件的精确重建](https://awesomerea.org/zh/resources/backtonature-decompiled-case/index.md) · 案例
- [HarvestMoonSnesDecomp：《牧场物语》SNES 版的匹配 C 源码](https://awesomerea.org/zh/resources/harvest-moon-snes-c/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
