{
  "added_at": "2026-11-09",
  "category": "reconstruction-cases",
  "class": "game",
  "description_en": "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.",
  "description_zh": "Harry Potter and the Half-Blood Prince — Decompilation 从 Windows 版 hp6.exe 重建 C 和可读 MASM 函数，并将重新编译的机器码与原程序比较。基于 Capstone 的工具可把 x86 控制流转换为 C 候选代码；作者报告在 10,992 个已编目函数中有 4,689 个精确匹配。",
  "entry_url": "https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/harry-potter-half-blood-prince-decomp-case/",
  "evidence_url": "https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation/blob/bd7642e4defc540c2e93ec48c8e2f1af4088e958/README.md",
  "group": "cases",
  "id": "harry-potter-half-blood-prince-decomp-case",
  "json_url": "https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/harry-potter-half-blood-prince-decomp-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/harry-potter-half-blood-prince-decomp-case/index.md",
  "name": "Harry Potter and the Half-Blood Prince: function-level Windows decompilation",
  "name_zh": "Harry Potter and the Half-Blood Prince：Windows 版逐函数反编译",
  "reconstruction_method": "matching-decompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "prerequisites",
    "prerequisites",
    "limits",
    "license"
  ],
  "requirements": [
    "A local hp6.exe version 1.0.0.1 matching the README fingerprint is required.",
    "Python and an x86 MSVC compiler are required; reproducing current matches uses a compatible VC8 SP1 compiler.",
    "The author reports 4,689 of 10,992 inventoried functions matching exactly; remaining functions include fragments and other difficult cases.",
    "No licence file in the repository."
  ],
  "requirements_zh": [
    "需要与 README 指纹一致的本地 hp6.exe 1.0.0.1。",
    "需要 Python 和 x86 MSVC 编译器；重现现有匹配结果需兼容的 VC8 SP1 编译器。",
    "作者报告 10,992 个已编目函数中有 4,689 个精确匹配；其余包括函数片段等难处理情况。",
    "仓库中没有许可证文件。"
  ],
  "targets": [
    "game"
  ],
  "url": "https://github.com/MidacoYT/HarryPotterAndTheHalfBloodPrince-Decompilation",
  "verification": "source-reviewed",
  "verified_at": "2026-11-06"
}
