Provenance check: embedded CMS passes but full Authenticode digest fails in 12 signed package DLLs #52

Open
opened 2026-11-21 13:58:53 +00:00 by Joacoorandom · 12 comments
Joacoorandom commented 2026-11-21 13:58:53 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Joacoorandom on 2026-11-21T13:58:53Z.


Reproducible provenance/integrity observation (local-only)

I am examining a separately obtained copy of the alleged GTA6.Xbox.v1.0.2.1-CYBERLEEK package. This is a static, read-only check; I did not run any shipped code, and am not uploading or linking game files.

Result

Among the 16 bundled PE x64 DLLs, 12 contain an embedded Authenticode/CMS signature. For all 12:

  • pe.signatures[0].check() => VERIFICATION_FLAGS.OK (embedded CMS structure/signer check)
  • pe.verify_signature() => VERIFICATION_FLAGS.BAD_DIGEST|BAD_SIGNATURE (signed content digest differs from the current PE's Authentihash).

The other four DLLs (Bink2Scarlett.dll, XboxBvhBuilder.dll, amd_fidelityfx_loader_xbox.dll, amd_fidelityfx_upscaler_xbox.dll) contain no embedded Authenticode signature.

This does not establish that the build is fake or that any file contains malware. A package transformation, different signing/console process, repacking, or modification after signing may explain the discrepancy. Trust-chain verification was not performed.

Concrete reproducibility fingerprints

DLL Whole-file SHA-256 Computed Authentihash SHA-256 Full-file check
XCurl.dll d11ba4e4a07f42f8d80c48553c5c2588ab4114ecdbe023305f5f8fa8262131f8 5cc6db0e8b8f7ce0597f5ba06f41bc6fe64f03d77531ba059c4ee9aae84ce3a3 BAD_DIGEST
msvcp140.dll 6036fdb3ee3a5813ef0b17462219ebcee5f06b46ef738bacde07aa797e6d2b75 50ac244686a3458fa8a550352a0b18fa9527cd3a6d04c25f37cf994495e9e182 BAD_DIGEST
libHttpClient.GDK.dll 14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a 97585868ef6b9b98a036d950808a061516473580cb10001a30be49838a5901ce BAD_DIGEST

Reproduction

Using Python LIEF (local environment reports lief.__version__ = 1.0.0-d05b3499b):

from pathlib import Path
import hashlib
import lief

for path in sorted(Path("game-files").glob("*.dll")):
    pe = lief.PE.parse(str(path))
    if not pe or not pe.signatures:
        print(path.name, "unsigned")
        continue
    print(
        path.name,
        hashlib.sha256(path.read_bytes()).hexdigest(),
        pe.signatures[0].check(),
        pe.verify_signature(),
        pe.authentihash_sha256.hex(),
    )

The earlier independent Authenticode hash calculation reproduced the LIEF-computed hash for the examples above. This check compares embedded signature content digests; not certificate trust, publisher authorization, or Windows/Xbox GameOS loader acceptance.

Proposed follow-up

  1. Confirm the same DLL file SHA-256 values on a separate installation, to ensure we're comparing identical bytes.
  2. Recheck with a second Authenticode implementation / Windows signtool verify /pa /v and examine whether Xbox-specific packaging invalidates conventional full-file verification.
  3. Record the distinction between CMS-signer integrity and file-content integrity in provenance notes, particularly before loading these DLLs on Windows.

I looked through the public experiment notes and did not find these full-file signature checks documented. If they're already accounted for, please link the existing evidence and close as duplicate.

References: LIEF verification semantics.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6529744330 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52). Originally posted by [Joacoorandom](https://github.com/Joacoorandom) on 2026-11-21T13:58:53Z. --- ## Reproducible provenance/integrity observation (local-only) I am examining a separately obtained copy of the **alleged** `GTA6.Xbox.v1.0.2.1-CYBERLEEK` package. This is a **static, read-only** check; I did not run any shipped code, and am **not** uploading or linking game files. ### Result Among the **16 bundled PE x64 DLLs**, **12 contain an embedded Authenticode/CMS signature**. For **all 12**: - `pe.signatures[0].check()` => `VERIFICATION_FLAGS.OK` (embedded CMS structure/signer check) - `pe.verify_signature()` => `VERIFICATION_FLAGS.BAD_DIGEST|BAD_SIGNATURE` (signed content digest differs from the current PE's Authentihash). The other four DLLs (`Bink2Scarlett.dll`, `XboxBvhBuilder.dll`, `amd_fidelityfx_loader_xbox.dll`, `amd_fidelityfx_upscaler_xbox.dll`) contain no embedded Authenticode signature. This does **not** establish that the build is fake or that any file contains malware. A package transformation, different signing/console process, repacking, or modification after signing may explain the discrepancy. Trust-chain verification was not performed. ### Concrete reproducibility fingerprints | DLL | Whole-file SHA-256 | Computed Authentihash SHA-256 | Full-file check | | --- | --- | --- | --- | | `XCurl.dll` | `d11ba4e4a07f42f8d80c48553c5c2588ab4114ecdbe023305f5f8fa8262131f8` | `5cc6db0e8b8f7ce0597f5ba06f41bc6fe64f03d77531ba059c4ee9aae84ce3a3` | BAD_DIGEST | | `msvcp140.dll` | `6036fdb3ee3a5813ef0b17462219ebcee5f06b46ef738bacde07aa797e6d2b75` | `50ac244686a3458fa8a550352a0b18fa9527cd3a6d04c25f37cf994495e9e182` | BAD_DIGEST | | `libHttpClient.GDK.dll` | `14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a` | `97585868ef6b9b98a036d950808a061516473580cb10001a30be49838a5901ce` | BAD_DIGEST | ### Reproduction Using Python LIEF (local environment reports `lief.__version__ = 1.0.0-d05b3499b`): ```python from pathlib import Path import hashlib import lief for path in sorted(Path("game-files").glob("*.dll")): pe = lief.PE.parse(str(path)) if not pe or not pe.signatures: print(path.name, "unsigned") continue print( path.name, hashlib.sha256(path.read_bytes()).hexdigest(), pe.signatures[0].check(), pe.verify_signature(), pe.authentihash_sha256.hex(), ) ``` The earlier independent Authenticode hash calculation reproduced the LIEF-computed hash for the examples above. This check compares embedded signature content digests; **not** certificate trust, publisher authorization, or Windows/Xbox GameOS loader acceptance. ### Proposed follow-up 1. Confirm the same DLL file SHA-256 values on a separate installation, to ensure we're comparing identical bytes. 2. Recheck with a second Authenticode implementation / Windows `signtool verify /pa /v` and examine whether Xbox-specific packaging invalidates conventional full-file verification. 3. Record the distinction between **CMS-signer integrity** and **file-content integrity** in provenance notes, particularly before loading these DLLs on Windows. I looked through the public experiment notes and did not find these full-file signature checks documented. If they're already accounted for, please link the existing evidence and close as duplicate. References: [LIEF verification semantics](https://lief.re/doc/latest/tutorials/13_pe_authenticode.html).
MarlomMedeiros commented 2026-11-24 06:47:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MarlomMedeiros on 2026-11-21T14:15:08Z.


Independent reproduction of the provenance check on a separately obtained local copy. Static read-only analysis only; no shipped code executed, no game files uploaded or linked.

Result: confirmed

16 bundled x64 DLLs: 12 signed, 4 unsigned, same unsigned set (Bink2Scarlett.dll, XboxBvhBuilder.dll, amd_fidelityfx_loader_xbox.dll, amd_fidelityfx_upscaler_xbox.dll).

For all 12 signed DLLs:

  • pe.signatures[0].check() => VERIFICATION_FLAGS.OK
  • pe.verify_signature() => VERIFICATION_FLAGS.BAD_DIGEST|BAD_SIGNATURE

Whole-file SHA-256 matches the three published fingerprints exactly, so both copies are byte-identical:

DLL Whole-file SHA-256 Computed Authentihash SHA-256
XCurl.dll d11ba4e4a07f42f8d80c48553c5c2588ab4114ecdbe023305f5f8fa8262131f8 5cc6db0e8b8f7ce0597f5ba06f41bc6fe64f03d77531ba059c4ee9aae84ce3a3
msvcp140.dll 6036fdb3ee3a5813ef0b17462219ebcee5f06b46ef738bacde07aa797e6d2b75 50ac244686a3458fa8a550352a0b18fa9527cd3a6d04c25f37cf994495e9e182
libHttpClient.GDK.dll 14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a 97585868ef6b9b98a036d950808a061516473580cb10001a30be49838a5901ce

Remaining fingerprints for the full set (hashes only):

DLL Whole-file SHA-256 Computed Authentihash SHA-256
concrt140.dll 554168b99726cbe982b542ec97c493f48483b20a4ea4e54e102ba3a0d098e75f 8a6566b97e42fd8caa25d633e45216443582874f59c98a54605d1f9c9171ed49
msvcp140_1.dll c56b530e0894d9c4d11b12d389786fef40463dbd81d4438b8414f909d6226211 c2c1a1ee0bc86324dd34a66186f9494b00184ebdb9703268381ae8a9d65f685a
msvcp140_2.dll 276813083c55c079120e0db49898088bb0c8d1c912ed59ec0d00fedf56a694a8 a464037135dc30f47b37ba38be6e4e94fccb6656ccbc92437d4c1ddea3936caa
msvcp140_atomic_wait.dll b7f879662095f71dc08efcbc0d24ac3c0ff2dde8d475f92f5c5646a39bf8f2c3 0b80887377a2bdefa4c7d6fe3036088f6c883716c09d9e1b388c99dee0797eac
msvcp140_codecvt_ids.dll 89cf5b07b98709277e8511d9a402ce72279e8df3ae24a8dd641ab0265c799a0c a8e6c77ba6430d68ef7dfca482b63044e072dec3a8e562d964682cc2f9057297
vccorlib140.dll 79ee6fa49aa2c6f0dfbc1279273fd619e1a9285995ff53a8bc183000c8895b91 d0bc04cc9a0f7aa71ee17e1f734e7b6d5df526da448ea05eb9791908a65647e7
vcomp140.dll 91e249c0f66f827bcacd0be4931b1cec3e4907cc05ea0a5bcd83696c70908963 67b4c3f01f9ed2c348da61932c3401d92b24faa36dbaad9d8ebb05c6f01dae87
vcruntime140.dll 9385104cc3e031dbbcb63f156134a0f6afff455e0ff6887f5a9e1c5f7e2706b0 168494f94a9616511c4a1fd5a88c8fa93c1f1b7a32175bdad94ff73e60a68b1c
vcruntime140_1.dll 0dbd6859f825ab8acab1fa25b6bd1a091d35ca2dbe3185c1187192f2d2ac8154 8aadf1f8462eea396f4d8d3196f11f41ab852b5a9199463ed90858b5a639c57d

Unsigned DLL whole-file SHA-256: amd_fidelityfx_loader_xbox.dll 431bdd2e26c0c8214fd7601140eb9fe6d8a249f5000539453a9a9b6a0b7c0ee8, amd_fidelityfx_upscaler_xbox.dll faff02f294a7e9149ce079dffe3dedbcabe99b1f180ab14222aa8689e00a75fa, Bink2Scarlett.dll 9eaf045d004cd7d6a8382aaff0c6ea23a29fec4ef8bfacd726b54f5bc26fafd0, XboxBvhBuilder.dll 99f803ac22c01ef329dddb1d40be67238d2a812d01e8d040b3cb5135bc23707e.

Independent verifier

Windows SDK signtool verify /pa (10.0.26100) agrees without LIEF: "The digital signature of the object did not verify" for all 12 signed DLLs, "No signature found" for the same 4 unsigned.

Environment

lief.__version__ = 1.0.0-d05b3499b, Python 3.14.10, Windows 11 Pro 26H2 build 26300.10075. Same check script and call order as the original report.

Agreement with the original observation: identical signed/unsigned split, identical flags, identical published hashes. The digest mismatch therefore reflects package-level content, not a copy-specific transformation. As noted in the issue, this does not establish fake or malicious content; repacking or post-signing modification remain plausible explanations.

AI-assisted report: the commands were run and the results checked on my machine.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7063941381 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7063941381). Originally posted by [MarlomMedeiros](https://github.com/MarlomMedeiros) on 2026-11-21T14:15:08Z. --- Independent reproduction of the provenance check on a separately obtained local copy. Static read-only analysis only; no shipped code executed, no game files uploaded or linked. ## Result: confirmed 16 bundled x64 DLLs: **12 signed, 4 unsigned**, same unsigned set (`Bink2Scarlett.dll`, `XboxBvhBuilder.dll`, `amd_fidelityfx_loader_xbox.dll`, `amd_fidelityfx_upscaler_xbox.dll`). For all 12 signed DLLs: - `pe.signatures[0].check()` => `VERIFICATION_FLAGS.OK` - `pe.verify_signature()` => `VERIFICATION_FLAGS.BAD_DIGEST|BAD_SIGNATURE` Whole-file SHA-256 matches the three published fingerprints exactly, so both copies are byte-identical: | DLL | Whole-file SHA-256 | Computed Authentihash SHA-256 | | --- | --- | --- | | `XCurl.dll` | `d11ba4e4a07f42f8d80c48553c5c2588ab4114ecdbe023305f5f8fa8262131f8` | `5cc6db0e8b8f7ce0597f5ba06f41bc6fe64f03d77531ba059c4ee9aae84ce3a3` | | `msvcp140.dll` | `6036fdb3ee3a5813ef0b17462219ebcee5f06b46ef738bacde07aa797e6d2b75` | `50ac244686a3458fa8a550352a0b18fa9527cd3a6d04c25f37cf994495e9e182` | | `libHttpClient.GDK.dll` | `14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a` | `97585868ef6b9b98a036d950808a061516473580cb10001a30be49838a5901ce` | Remaining fingerprints for the full set (hashes only): | DLL | Whole-file SHA-256 | Computed Authentihash SHA-256 | | --- | --- | --- | | `concrt140.dll` | `554168b99726cbe982b542ec97c493f48483b20a4ea4e54e102ba3a0d098e75f` | `8a6566b97e42fd8caa25d633e45216443582874f59c98a54605d1f9c9171ed49` | | `msvcp140_1.dll` | `c56b530e0894d9c4d11b12d389786fef40463dbd81d4438b8414f909d6226211` | `c2c1a1ee0bc86324dd34a66186f9494b00184ebdb9703268381ae8a9d65f685a` | | `msvcp140_2.dll` | `276813083c55c079120e0db49898088bb0c8d1c912ed59ec0d00fedf56a694a8` | `a464037135dc30f47b37ba38be6e4e94fccb6656ccbc92437d4c1ddea3936caa` | | `msvcp140_atomic_wait.dll` | `b7f879662095f71dc08efcbc0d24ac3c0ff2dde8d475f92f5c5646a39bf8f2c3` | `0b80887377a2bdefa4c7d6fe3036088f6c883716c09d9e1b388c99dee0797eac` | | `msvcp140_codecvt_ids.dll` | `89cf5b07b98709277e8511d9a402ce72279e8df3ae24a8dd641ab0265c799a0c` | `a8e6c77ba6430d68ef7dfca482b63044e072dec3a8e562d964682cc2f9057297` | | `vccorlib140.dll` | `79ee6fa49aa2c6f0dfbc1279273fd619e1a9285995ff53a8bc183000c8895b91` | `d0bc04cc9a0f7aa71ee17e1f734e7b6d5df526da448ea05eb9791908a65647e7` | | `vcomp140.dll` | `91e249c0f66f827bcacd0be4931b1cec3e4907cc05ea0a5bcd83696c70908963` | `67b4c3f01f9ed2c348da61932c3401d92b24faa36dbaad9d8ebb05c6f01dae87` | | `vcruntime140.dll` | `9385104cc3e031dbbcb63f156134a0f6afff455e0ff6887f5a9e1c5f7e2706b0` | `168494f94a9616511c4a1fd5a88c8fa93c1f1b7a32175bdad94ff73e60a68b1c` | | `vcruntime140_1.dll` | `0dbd6859f825ab8acab1fa25b6bd1a091d35ca2dbe3185c1187192f2d2ac8154` | `8aadf1f8462eea396f4d8d3196f11f41ab852b5a9199463ed90858b5a639c57d` | Unsigned DLL whole-file SHA-256: `amd_fidelityfx_loader_xbox.dll` `431bdd2e26c0c8214fd7601140eb9fe6d8a249f5000539453a9a9b6a0b7c0ee8`, `amd_fidelityfx_upscaler_xbox.dll` `faff02f294a7e9149ce079dffe3dedbcabe99b1f180ab14222aa8689e00a75fa`, `Bink2Scarlett.dll` `9eaf045d004cd7d6a8382aaff0c6ea23a29fec4ef8bfacd726b54f5bc26fafd0`, `XboxBvhBuilder.dll` `99f803ac22c01ef329dddb1d40be67238d2a812d01e8d040b3cb5135bc23707e`. ## Independent verifier Windows SDK `signtool verify /pa` (10.0.26100) agrees without LIEF: "The digital signature of the object did not verify" for all 12 signed DLLs, "No signature found" for the same 4 unsigned. ## Environment `lief.__version__ = 1.0.0-d05b3499b`, Python 3.14.10, Windows 11 Pro 26H2 build 26300.10075. Same check script and call order as the original report. Agreement with the original observation: identical signed/unsigned split, identical flags, identical published hashes. The digest mismatch therefore reflects package-level content, not a copy-specific transformation. As noted in the issue, this does not establish fake or malicious content; repacking or post-signing modification remain plausible explanations. AI-assisted report: the commands were run and the results checked on my machine.
R0Y00 commented 2026-11-24 06:47:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T14:38:38Z.


Thank you both for publishing the method and fingerprints. I checked the local 16 DLLs on Windows using Get-AuthenticodeSignature -LiteralPath, without loading them. Windows returned HashMismatch for 12 and NotSigned for the other four named above. Get-FileHash -Algorithm SHA256 also matched all three published whole-file fingerprints (XCurl.dll, msvcp140.dll and libHttpClient.GDK.dll). This independently corroborates the file-content mismatch with a second implementation. The origin of that mismatch and the console signing/packaging path are still open. I’m recording this limitation in the provenance notes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7064242844 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7064242844). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T14:38:38Z. --- Thank you both for publishing the method and fingerprints. I checked the local 16 DLLs on Windows using Get-AuthenticodeSignature -LiteralPath, without loading them. Windows returned HashMismatch for 12 and NotSigned for the other four named above. Get-FileHash -Algorithm SHA256 also matched all three published whole-file fingerprints (XCurl.dll, msvcp140.dll and libHttpClient.GDK.dll). This independently corroborates the file-content mismatch with a second implementation. The origin of that mismatch and the console signing/packaging path are still open. I’m recording this limitation in the provenance notes.
R0Y00 commented 2026-11-24 06:47:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:23:18Z.


Thanks for the independent digest calculation and on-disk IAT and relocation observations. They narrow the explanations for the mismatch. The catalog's subsystem identifies its role, but entropy alone does not establish how its contents are encoded or that it authorized these individual DLLs. Keeping the cause open pending a public reference or independently verifiable catalog-to-file relationship.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066444184 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7066444184). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T17:23:18Z. --- Thanks for the independent digest calculation and on-disk IAT and relocation observations. They narrow the explanations for the mismatch. The catalog's subsystem identifies its role, but entropy alone does not establish how its contents are encoded or that it authorized these individual DLLs. Keeping the cause open pending a public reference or independently verifiable catalog-to-file relationship.
thegl0w commented 2026-11-24 06:47:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-21T16:40:03Z.


AI-generated: This comment was written by an AI assistant (Claude, using Claude Code) and posted with the account owner's approval. The checks and results below were run by the AI on the account owner's PC.

A third static, read-only check on a separately held copy. It adds two observations that narrow down the cause. I ran no shipped code and am not uploading or linking any game files.

Same bytes. All 16 whole-file DLL SHA-256 values match the tables above. The package total matches the historical 223,880,932,870-byte figure, and the layout lists only the EXE as absent.

Signed (expected) Authentihashes. I extracted the messageDigest from each signature's SpcIndirectDataContent. All 12 use SHA-256, and SpcPeImageData carries no page hashes. My computed Authentihash matches the "Computed" column above for all 12, so the method agrees with LIEF. The values the signatures expect:

DLL Signed Authentihash (SHA-256)
concrt140.dll 236a7eed621b61f0184ae0a9ee4774d5c7f5147cbd143e1ceec92672946de803
libHttpClient.GDK.dll 9b81f8f2454868a3a11a9e9575ac9fc8108288aeb14f3eeab4f3260eed772cc5
msvcp140.dll bca478189c7c180043e6d5ecdc2e360c019f0e14c5fac46671ff46073cf9e3d3
msvcp140_1.dll 4dda722ddc4b63c5819c98c79ff2ee89547c64b55f5583a7081e4ef207cfaa27
msvcp140_2.dll cf245b23061c10cbd41924b4b0531b4166cfc18969ce94f5cd40902499515289
msvcp140_atomic_wait.dll e68a2ed4c92c52d201b764fb21cc88012d6c20e58db6e30d2b23d8ae4b115fb8
msvcp140_codecvt_ids.dll a6d5b5c60df5d94a63bd14e5a354312b210a4411ed6d11fe67516675a99c997b
vccorlib140.dll a4cb9724fa0f8371f1bd1d62195e60c7c67f77182e5c79bbd354e2d1a8d9d3ef
vcomp140.dll 0d98265a491969c6ea34eb7deffe0b35d90ed1b59f9dd75aa2867a8abe8452d0
vcruntime140.dll 66c02f5388ded95f63271725931b6ebfd053cab327f88b3b9cf30c8fb4d93fe5
vcruntime140_1.dll b08b56e861f15b17d3629471a5add0cf138f12c4de0c2e6dffc6ee99894aa027
XCurl.dll 9e7b0a30d5353faf3e14fed929e924d387c1b28b78de63cbe0ec9b5a4c4b8d99

Anyone holding a genuine copy of these builds can compare against this column directly.

The rewrite kept a valid PE checksum. In all 12, OptionalHeader.CheckSum equals the checksum computed over the current file (pefile.generate_checksum()). signtool writes the checksum after it embeds the signature. Random corruption or an interrupted transfer would almost always break that checksum, so the bytes were rewritten after signing by a tool that recomputes it. This doesn't establish who rewrote them.

Not a memory image. In all 16 DLLs:

  • the IAT holds on-disk RVAs rather than resolved addresses;
  • every DIR64 relocation site still points inside [ImageBase, ImageBase+SizeOfImage) at the default 0x180000000.

In the 12 signed DLLs, no data follows the certificate table.

Signer and build flavor. The ten CRT DLLs are OneCore builds: the CodeView path is ...\onecore\<name>.amd64.onecore.pdb and FileVersion is 14.29.30157.0. They are signed CN=Windows Phone by Microsoft Windows Phone Production PCA 2012. XCurl.dll and libHttpClient.GDK.dll are signed via Microsoft Windows Code Signing PCA 2024. No desktop redistributable of the OneCore 14.29.30157 build was available to diff against.

Package code catalog. Catalog000.bin isn't listed in the layout XML. It is a PE32+ with Subsystem = 17, which winnt.h names IMAGE_SUBSYSTEM_XBOX_CODE_CATALOG. It has no entry point and no data directories, and one unnamed read-only section of 0xC6000 bytes. That section's entropy is 7.99 bits/byte, so its contents are encrypted or compressed.

Hypothesis: console code integrity authorizes these PEs through the package catalog rather than per-file Authenticode. If so, a post-signing rewrite in the console packaging pipeline fits every observation above. That can't be checked without reading the catalog.

Method. Python 3.11 with pefile 2024.8.26 and asn1crypto. The signed digest is located by its SHA-256 AlgorithmIdentifier inside SpcIndirectDataContent. The Authentihash follows the PE/COFF spec: it skips CheckSum and the security directory entry, then hashes the headers, the sections in file order, and any data outside the certificate table. Windows Get-AuthenticodeSignature independently reports HashMismatch for the same 12 and NotSigned for the same 4.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7065816638 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7065816638). Originally posted by [thegl0w](https://github.com/thegl0w) on 2026-11-21T16:40:03Z. --- > **AI-generated:** This comment was written by an AI assistant (Claude, using Claude Code) and posted with the account owner's approval. The checks and results below were run by the AI on the account owner's PC. A third static, read-only check on a separately held copy. It adds two observations that narrow down the cause. I ran no shipped code and am not uploading or linking any game files. **Same bytes.** All 16 whole-file DLL SHA-256 values match the tables above. The package total matches the historical 223,880,932,870-byte figure, and the layout lists only the EXE as absent. **Signed (expected) Authentihashes.** I extracted the `messageDigest` from each signature's `SpcIndirectDataContent`. All 12 use SHA-256, and `SpcPeImageData` carries no page hashes. My computed Authentihash matches the "Computed" column above for all 12, so the method agrees with LIEF. The values the signatures expect: | DLL | Signed Authentihash (SHA-256) | |---|---| | `concrt140.dll` | `236a7eed621b61f0184ae0a9ee4774d5c7f5147cbd143e1ceec92672946de803` | | `libHttpClient.GDK.dll` | `9b81f8f2454868a3a11a9e9575ac9fc8108288aeb14f3eeab4f3260eed772cc5` | | `msvcp140.dll` | `bca478189c7c180043e6d5ecdc2e360c019f0e14c5fac46671ff46073cf9e3d3` | | `msvcp140_1.dll` | `4dda722ddc4b63c5819c98c79ff2ee89547c64b55f5583a7081e4ef207cfaa27` | | `msvcp140_2.dll` | `cf245b23061c10cbd41924b4b0531b4166cfc18969ce94f5cd40902499515289` | | `msvcp140_atomic_wait.dll` | `e68a2ed4c92c52d201b764fb21cc88012d6c20e58db6e30d2b23d8ae4b115fb8` | | `msvcp140_codecvt_ids.dll` | `a6d5b5c60df5d94a63bd14e5a354312b210a4411ed6d11fe67516675a99c997b` | | `vccorlib140.dll` | `a4cb9724fa0f8371f1bd1d62195e60c7c67f77182e5c79bbd354e2d1a8d9d3ef` | | `vcomp140.dll` | `0d98265a491969c6ea34eb7deffe0b35d90ed1b59f9dd75aa2867a8abe8452d0` | | `vcruntime140.dll` | `66c02f5388ded95f63271725931b6ebfd053cab327f88b3b9cf30c8fb4d93fe5` | | `vcruntime140_1.dll` | `b08b56e861f15b17d3629471a5add0cf138f12c4de0c2e6dffc6ee99894aa027` | | `XCurl.dll` | `9e7b0a30d5353faf3e14fed929e924d387c1b28b78de63cbe0ec9b5a4c4b8d99` | Anyone holding a genuine copy of these builds can compare against this column directly. **The rewrite kept a valid PE checksum.** In all 12, `OptionalHeader.CheckSum` equals the checksum computed over the current file (`pefile.generate_checksum()`). signtool writes the checksum after it embeds the signature. Random corruption or an interrupted transfer would almost always break that checksum, so the bytes were rewritten after signing by a tool that recomputes it. This doesn't establish who rewrote them. **Not a memory image.** In all 16 DLLs: - the IAT holds on-disk RVAs rather than resolved addresses; - every DIR64 relocation site still points inside `[ImageBase, ImageBase+SizeOfImage)` at the default `0x180000000`. In the 12 signed DLLs, no data follows the certificate table. **Signer and build flavor.** The ten CRT DLLs are OneCore builds: the CodeView path is `...\onecore\<name>.amd64.onecore.pdb` and FileVersion is 14.29.30157.0. They are signed `CN=Windows Phone` by `Microsoft Windows Phone Production PCA 2012`. `XCurl.dll` and `libHttpClient.GDK.dll` are signed via `Microsoft Windows Code Signing PCA 2024`. No desktop redistributable of the OneCore 14.29.30157 build was available to diff against. **Package code catalog.** `Catalog000.bin` isn't listed in the layout XML. It is a PE32+ with `Subsystem = 17`, which winnt.h names `IMAGE_SUBSYSTEM_XBOX_CODE_CATALOG`. It has no entry point and no data directories, and one unnamed read-only section of 0xC6000 bytes. That section's entropy is 7.99 bits/byte, so its contents are encrypted or compressed. Hypothesis: console code integrity authorizes these PEs through the package catalog rather than per-file Authenticode. If so, a post-signing rewrite in the console packaging pipeline fits every observation above. That can't be checked without reading the catalog. **Method.** Python 3.11 with pefile 2024.8.26 and asn1crypto. The signed digest is located by its SHA-256 AlgorithmIdentifier inside `SpcIndirectDataContent`. The Authentihash follows the PE/COFF spec: it skips CheckSum and the security directory entry, then hashes the headers, the sections in file order, and any data outside the certificate table. Windows `Get-AuthenticodeSignature` independently reports HashMismatch for the same 12 and NotSigned for the same 4.
Vonsek commented 2026-11-24 06:47:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T18:50:18Z.


I checked whether the code catalog contains SHA-256 digests of the 16 packaged DLLs or their on-disk pages as contiguous 32-byte values. I found zero matches in the catalog copy with SHA-256 4afbdbe22aad2bc338a5ba1ffe83cccb96e072eb4e92f6a5dd90b49b2e227c59.

Input to the lookup Distinct digests Matches
Whole-file SHA-256 for each DLL 16 0
SHA-256 of complete 4,096-byte pages across the DLLs 1,158 0
64-hex-digit values in this issue and its comments through the maintainer's reply 40 0

To reproduce, run dumpbin /headers Catalog000.bin. Its single section starts at file offset 0x1000 and has 0xC6000 raw bytes. For each DLL, hash the entire file, then hash each complete 4,096-byte span starting at file offsets 0, 4096, 8192 and so on. This produced 1,167 full pages. Fifteen DLLs had a final partial page, which I omitted. Search the section at every byte offset for each binary digest. The counts were zero in standard SHA-256 byte order, with the entire digest reversed, and with bytes reversed within each four-byte word.

All 16 locally calculated whole-file hashes matched fingerprints already posted here. I cross-checked the standard-order result with Python and .NET, and the .NET scanner found a synthetic digest placed at offset 5.

This rules out those direct lookups for this copy. The relation to mapped or transformed pages, other digest formats, and console authorization remains open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7067549600 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7067549600). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T18:50:18Z. --- I checked whether the code catalog contains SHA-256 digests of the 16 packaged DLLs or their on-disk pages as contiguous 32-byte values. I found zero matches in the catalog copy with SHA-256 `4afbdbe22aad2bc338a5ba1ffe83cccb96e072eb4e92f6a5dd90b49b2e227c59`. | Input to the lookup | Distinct digests | Matches | |---|---:|---:| | Whole-file SHA-256 for each DLL | 16 | 0 | | SHA-256 of complete 4,096-byte pages across the DLLs | 1,158 | 0 | | 64-hex-digit values in this issue and its comments through [the maintainer's reply](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7066444184) | 40 | 0 | To reproduce, run `dumpbin /headers Catalog000.bin`. Its single section starts at file offset `0x1000` and has `0xC6000` raw bytes. For each DLL, hash the entire file, then hash each complete 4,096-byte span starting at file offsets 0, 4096, 8192 and so on. This produced 1,167 full pages. Fifteen DLLs had a final partial page, which I omitted. Search the section at **every byte offset** for each binary digest. The counts were zero in standard SHA-256 byte order, with the entire digest reversed, and with bytes reversed within each four-byte word. All 16 locally calculated whole-file hashes matched fingerprints already posted here. I cross-checked the standard-order result with Python and .NET, and the .NET scanner found a synthetic digest placed at offset 5. This rules out those direct lookups for this copy. The relation to mapped or transformed pages, other digest formats, and console authorization remains open.
triggered02 commented 2026-11-24 06:49:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:35:32Z.


Taking a read-only root-cause pass on the BAD_DIGEST mismatch. I have a copy of the package and will recompute the Authenticode digest per the PE spec and test which post-signing transformation (if any) restores the embedded signed digest — bound/pre-filled IAT restored from the INT, the Checksum field, appended overlay/.xbld data, page-hash vs flat SpcPeImageData, and .reloc changes — plus a section-level diff against a same-version desktop twin where one exists. Static only; no shipped code will be run and nothing will be uploaded. Will report the per-DLL result and keep the cause open where the evidence does not settle it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114663133 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7114663133). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:35:32Z. --- Taking a read-only root-cause pass on the BAD_DIGEST mismatch. I have a copy of the package and will recompute the Authenticode digest per the PE spec and test which post-signing transformation (if any) restores the embedded signed digest — bound/pre-filled IAT restored from the INT, the Checksum field, appended overlay/.xbld data, page-hash vs flat SpcPeImageData, and .reloc changes — plus a section-level diff against a same-version desktop twin where one exists. Static only; no shipped code will be run and nothing will be uploaded. Will report the per-DLL result and keep the cause open where the evidence does not settle it.
triggered02 commented 2026-11-24 06:49:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-23T21:48:51Z.


Root-cause pass: none of the classic post-signing transformations restores the signed digest (12/12 DLLs tested). Static, read-only; no shipped code executed, nothing uploaded. This follows up on my earlier note and on the fingerprint tables above.

Reproduction. Same 12 signed / 4 unsigned split, same flags (signatures[0].check() = OK, verify_signature() = BAD_DIGEST|BAD_SIGNATURE), and all whole-file + Authentihash fingerprints above match exactly on my copy (lief 1.0.0-d05b3499b, Python 3.12.10, pefile 2024.8.26).

Method check. I recomputed the PE Authentihash independently from the spec (headers minus CheckSum and the security-directory entry, sections in raw-pointer order, trailing bytes minus the certificate table). It equals lief's value for all 12. I also extracted each signed digest straight from the embedded PKCS#7 SpcIndirectDataContent.messageDigest by raw DER parse; all 12 match the expected-digest table posted above. All are flat SHA-256 (SpcPeImageData.flags = 00, no page-hash attributes).

Hypothesis matrix — all negative. Per DLL, in-memory only, I recomputed the Authentihash under each of: (a) as-is; (b) IAT restored from the INT — a no-op, the IAT is not bound (0 differing entries in all 16 DLLs); (b2) IAT zeroed; (c) CheckSum included as-is / zeroed-and-included; (d) overlay excluded (there is none — 0 trailing bytes in all 12), .xbld raw excluded / zeroed / removed with header fixups (only the two non-CRT signed DLLs have .xbld; the ten CRT DLLs fail BAD_DIGEST with no .xbld at all); (e) page-hash variant — n/a, flat hash; (f) .reloc zeroed / excluded; plus security-directory inclusion, whole-file-minus-certificate, .rsrc exclusion, a sweep zeroing 29 individual header fields, a sweep excluding each data directory's range, and padding normalization (no gaps; padding already zero). No variant matches the signed digest on any of the 12 DLLs.

Provenance facts. The CMS layer is intact end to end: each signer's messageDigest attribute equals SHA-256 of the stored SpcIndirectDataContent, and each RFC3161 timestamp's messageImprint equals SHA-256 of that signer's encryptedDigest. Signers: CN=Windows Phone via Microsoft Windows Phone Production PCA 2012 for the ten OneCore CRT DLLs (14.29.30157.0, linked 05:22–06:00 UTC and batch-signed 06:17 UTC on 2024-10-13); CN=Microsoft Corporation via Microsoft Windows Code Signing PCA 2024 for XCurl.dll (2604.5.0.0) and libHttpClient.GDK.dll (2.0.2608.31002), signed 2026-09-08. All 12 PE checksums are valid over the current bytes (recomputed after the signature was embedded). Since the standard Authentihash excludes the checksum, a checksum-only write cannot explain BAD_DIGEST: other content differs from what was signed, or the signature covers different content. Imports are standard OneCore API sets (no console retargeting visible); .reloc is well-formed DIR64 at the default 0x180000000 base. XCurl.dll has an odd 1972 link timestamp — noted, not decisive. The System32 desktop twins are 14.52.37029.0 (different builds, every section differs), and their Authentihashes do not match the signed digests, so this is not a desktop-signature transplant.

Where that leaves the cause. Established: the mismatch is a genuine content mismatch between the packaged bytes and the signed content, the signatures are internally intact Microsoft signatures, and no classic repacking transformation (binding, checksum, overlay/.xbld, page hashes, .reloc, padding, single header fields) accounts for it. Open: whether this is a post-signing rewrite in a packaging pipeline, a rebuild that retained an older signature, or a signature from a different build of the same libraries — the packaged bytes alone cannot distinguish these, and a mismatch alone does not prove tampering. To settle it we need a same-version reference original (GDK redist CRT 14.29.30157.0 OneCore x64, XCurl 2604.5.0.0, libHttpClient.GDK 2.0.2608.31002) to diff against the signed digests, or a verified catalog-to-file relationship for the console packaging path. I could not perform an external reference-hash lookup in this session (search endpoint unavailable).

Per-DLL variant hashes and the full matrix are recorded in my local notes; happy to share the extraction/recomputation scripts. AI-assisted analysis: the commands were run and the results checked on my machine.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7114951967 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7114951967). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-23T21:48:51Z. --- **Root-cause pass: none of the classic post-signing transformations restores the signed digest (12/12 DLLs tested).** Static, read-only; no shipped code executed, nothing uploaded. This follows up on my earlier note and on the fingerprint tables above. **Reproduction.** Same 12 signed / 4 unsigned split, same flags (`signatures[0].check()` = OK, `verify_signature()` = BAD_DIGEST|BAD_SIGNATURE), and all whole-file + Authentihash fingerprints above match exactly on my copy (lief 1.0.0-d05b3499b, Python 3.12.10, pefile 2024.8.26). **Method check.** I recomputed the PE Authentihash independently from the spec (headers minus CheckSum and the security-directory entry, sections in raw-pointer order, trailing bytes minus the certificate table). It equals lief's value for all 12. I also extracted each signed digest straight from the embedded PKCS#7 `SpcIndirectDataContent.messageDigest` by raw DER parse; all 12 match the expected-digest table posted above. All are flat SHA-256 (`SpcPeImageData.flags = 00`, no page-hash attributes). **Hypothesis matrix — all negative.** Per DLL, in-memory only, I recomputed the Authentihash under each of: (a) as-is; (b) IAT restored from the INT — a no-op, the IAT is *not* bound (0 differing entries in all 16 DLLs); (b2) IAT zeroed; (c) CheckSum included as-is / zeroed-and-included; (d) overlay excluded (there is none — 0 trailing bytes in all 12), `.xbld` raw excluded / zeroed / removed with header fixups (only the two non-CRT signed DLLs have `.xbld`; the ten CRT DLLs fail BAD_DIGEST with no `.xbld` at all); (e) page-hash variant — n/a, flat hash; (f) `.reloc` zeroed / excluded; plus security-directory inclusion, whole-file-minus-certificate, `.rsrc` exclusion, a sweep zeroing 29 individual header fields, a sweep excluding each data directory's range, and padding normalization (no gaps; padding already zero). **No variant matches the signed digest on any of the 12 DLLs.** **Provenance facts.** The CMS layer is intact end to end: each signer's messageDigest attribute equals SHA-256 of the stored SpcIndirectDataContent, and each RFC3161 timestamp's messageImprint equals SHA-256 of that signer's encryptedDigest. Signers: `CN=Windows Phone` via Microsoft Windows Phone Production PCA 2012 for the ten OneCore CRT DLLs (14.29.30157.0, linked 05:22–06:00 UTC and batch-signed 06:17 UTC on 2024-10-13); `CN=Microsoft Corporation` via Microsoft Windows Code Signing PCA 2024 for XCurl.dll (2604.5.0.0) and libHttpClient.GDK.dll (2.0.2608.31002), signed 2026-09-08. All 12 PE checksums are valid over the current bytes (recomputed after the signature was embedded). Since the standard Authentihash excludes the checksum, a checksum-only write cannot explain BAD_DIGEST: other content differs from what was signed, or the signature covers different content. Imports are standard OneCore API sets (no console retargeting visible); `.reloc` is well-formed DIR64 at the default 0x180000000 base. XCurl.dll has an odd 1972 link timestamp — noted, not decisive. The System32 desktop twins are 14.52.37029.0 (different builds, every section differs), and their Authentihashes do not match the signed digests, so this is not a desktop-signature transplant. **Where that leaves the cause.** Established: the mismatch is a genuine content mismatch between the packaged bytes and the signed content, the signatures are internally intact Microsoft signatures, and no classic repacking transformation (binding, checksum, overlay/`.xbld`, page hashes, `.reloc`, padding, single header fields) accounts for it. Open: whether this is a post-signing rewrite in a packaging pipeline, a rebuild that retained an older signature, or a signature from a different build of the same libraries — the packaged bytes alone cannot distinguish these, and a mismatch alone does not prove tampering. To settle it we need a same-version reference original (GDK redist CRT 14.29.30157.0 OneCore x64, XCurl 2604.5.0.0, libHttpClient.GDK 2.0.2608.31002) to diff against the signed digests, or a verified catalog-to-file relationship for the console packaging path. I could not perform an external reference-hash lookup in this session (search endpoint unavailable). Per-DLL variant hashes and the full matrix are recorded in my local notes; happy to share the extraction/recomputation scripts. AI-assisted analysis: the commands were run and the results checked on my machine. ```
R0Y00 commented 2026-11-24 06:49:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T23:14:26Z.


Thanks for the independent digest calculation. Matching the tool's Authentihash on all 12 files and separately extracting the signed digests establishes the mismatch under the standard PE calculation. The tested variants did not explain it, so this stays open. The next discriminating evidence would be an independently verifiable same-build reference or verified catalog coverage. If you share the recomputation script, a source-only version with a self-built PE control would be useful.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116723741 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7116723741). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T23:14:26Z. --- Thanks for the independent digest calculation. Matching the tool's Authentihash on all 12 files and separately extracting the signed digests establishes the mismatch under the standard PE calculation. The tested variants did not explain it, so this stays open. The next discriminating evidence would be an independently verifiable same-build reference or verified catalog coverage. If you share the recomputation script, a source-only version with a self-built PE control would be useful.
mcn1630 commented 2026-11-24 09:04:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mcn1630 on 2026-11-24T08:44:28Z.


Hi everyone, I'm from China and used Gemini to help translate and structure my findings below:

Root Cause Confirmed (100% Bit-Exact Reproduction)

Thank you for documenting these reproducible fingerprints. The BAD_DIGEST / HashMismatch across all 12 signed DLLs is not due to malware, tampering, or corruption—it is a standard artifact of the Xbox Series X|S retail packaging pipeline (MakePkg / Xbox Code Integrity).

During .xvc packaging, the tool embeds page-level code integrity catalog offsets directly into each PE file's LoadConfig.CodeIntegrity structure. Because standard Windows Authenticode verification (WinVerifyTrust, signtool, LIEF's verify_signature()) hashes the LoadConfig directory without masking CodeIntegrity, those 12 modified bytes invalidate the original Microsoft Authenticode digest.


Byte-Level Mechanism

  1. Original Microsoft Signing: When Microsoft originally signed vcruntime140.dll, msvcp140*.dll, XCurl.dll, and libHttpClient.GDK.dll, the 12-byte CodeIntegrity field (Flags, Catalog, CatalogOffset, Reserved) at offset +0x94 inside IMAGE_LOAD_CONFIG_DIRECTORY64 was zero-initialized (0x00 * 12). The embedded PKCS#7 Authenticode SHA-256 signature was computed over that unmodified layout.
  2. Xbox Packaging Mutation: When building an Xbox Series X|S retail package (.xvc), MakePkg generates a page-level hash catalog (Catalog000.bin, storing a 32-byte hash per 4 KiB executable .text page) across all binaries in the package. It then writes each binary's catalog metadata directly into its PE header:
  • Flags = 0x0001
  • Catalog = 0
  • CatalogOffset = 0x0be800 .. 0x0c2960
  • Updates the PE Optional Header CheckSum accordingly.
  1. Why Standard Authenticode Fails: Standard Windows Authenticode (and LIEF's pe.authentihash_sha256) only excludes the PE CheckSum and the Certificate Table (IMAGE_DIRECTORY_ENTRY_SECURITY) during digest calculation. It does not exclude LoadConfig.CodeIntegrity. On Xbox GameOS, the kernel/loader validates binaries against Catalog000.bin and the package's .xvc signature rather than falling back to standard desktop Authenticode.

Bit-Exact Verification (12 / 12 Matched)

Zeroing out those 12 bytes in LoadConfig.CodeIntegrity (IMAGE_LOAD_CONFIG_DIRECTORY64 + 0x94) and recomputing the PE Authenticode SHA-256 restores the exact digest embedded inside each file's Microsoft PKCS#7 certificate across all 12 DLLs:

DLL Injected CatalogOffset Authentihash SHA-256 (after zeroing 12B) Match vs. Embedded Cert
concrt140.dll 0x0bf280 236a7eed621b61f0... Exact bit-for-bit match
libHttpClient.GDK.dll 0x0bf7c0 9b81f8f2454868a3... Exact bit-for-bit match
msvcp140.dll 0x0c0ce0 bca478189c7c1800... Exact bit-for-bit match
msvcp140_1.dll 0x0c1760 4dda722ddc4b63c5... Exact bit-for-bit match
msvcp140_2.dll 0x0c17a0 cf245b23061c10cb... Exact bit-for-bit match
msvcp140_atomic_wait.dll 0x0c1b80 e68a2ed4c92c52d2... Exact bit-for-bit match
msvcp140_codecvt_ids.dll 0x0c1c00 a6d5b5c60df5d94a... Exact bit-for-bit match
vccorlib140.dll 0x0c1c20 a4cb9724fa0f8371... Exact bit-for-bit match
vcomp140.dll 0x0c2140 0d98265a491969c6... Exact bit-for-bit match
vcruntime140.dll 0x0c2280 66c02f5388ded95f... Exact bit-for-bit match
vcruntime140_1.dll 0x0c2480 b08b56e861f15b17... Exact bit-for-bit match
XCurl.dll 0x0c2960 9e7b0a30d5353faf... Exact bit-for-bit match

(Note: Your whole-file SHA-256 values for XCurl.dll, msvcp140.dll, and libHttpClient.GDK.dll match the exact binaries analyzed here.)

Additional Observation on the 4 Unsigned DLLs & Main Executable

  • The 4 unsigned middleware DLLs (Bink2Scarlett.dll, XboxBvhBuilder.dll, amd_fidelityfx_loader_xbox.dll, amd_fidelityfx_upscaler_xbox.dll) were also processed by MakePkg, receiving Flags = 0x0001 and contiguous CatalogOffset entries starting at 0x0be800.
  • The catalog region from 0x000000 to 0x0be800 reserves 24,384 32-byte page hash slots (0x0be800 / 32), indicating that the omitted main executable (game_scarlett_master.exe) had an executable .text footprint of approximately 95.25 MiB (24,384 × 4 KiB).

Answers to Your Proposed Follow-Up Items

  1. Cross-Installation Byte Comparison: Confirmed—the whole-file SHA-256 hashes you listed for XCurl.dll, msvcp140.dll, and libHttpClient.GDK.dll are byte-identical to our sample.
  2. Second Implementation / signtool Behavior: Both Windows signtool verify /pa /v and PowerShell Get-AuthenticodeSignature report HashMismatch (0x80096010) for the exact same reason: desktop Windows Authenticode does not mask LoadConfig.CodeIntegrity, whereas Xbox packaging legitimately mutates it.
  3. Provenance & Windows Loading Caveat: Agreed on documenting the distinction between original Microsoft CMS signatures and post-packaging Xbox Code Integrity mutations. Note that because these DLLs are unmodified Microsoft/middleware binaries with only LoadConfig.CodeIntegrity and CheckSum updated by MakePkg, they carry no injected code—though Windows code-integrity enforcement policies that strictly require valid desktop Authenticode signatures (e.g., HVCI/WDAC) will reject them unless LoadConfig.CodeIntegrity is zeroed or policy-exempted.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7126503935 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7126503935). Originally posted by [mcn1630](https://github.com/mcn1630) on 2026-11-24T08:44:28Z. --- Hi everyone, I'm from China and used Gemini to help translate and structure my findings below: ### Root Cause Confirmed (100% Bit-Exact Reproduction) Thank you for documenting these reproducible fingerprints. The `BAD_DIGEST` / `HashMismatch` across all 12 signed DLLs is **not** due to malware, tampering, or corruption—it is a standard artifact of the **Xbox Series X|S retail packaging pipeline (`MakePkg` / Xbox Code Integrity)**. During `.xvc` packaging, the tool embeds page-level code integrity catalog offsets directly into each PE file's `LoadConfig.CodeIntegrity` structure. Because standard Windows Authenticode verification (`WinVerifyTrust`, `signtool`, LIEF's `verify_signature()`) hashes the `LoadConfig` directory without masking `CodeIntegrity`, those 12 modified bytes invalidate the original Microsoft Authenticode digest. --- ### Byte-Level Mechanism 1. **Original Microsoft Signing:** When Microsoft originally signed `vcruntime140.dll`, `msvcp140*.dll`, `XCurl.dll`, and `libHttpClient.GDK.dll`, the 12-byte `CodeIntegrity` field (`Flags`, `Catalog`, `CatalogOffset`, `Reserved`) at offset `+0x94` inside `IMAGE_LOAD_CONFIG_DIRECTORY64` was zero-initialized (`0x00 * 12`). The embedded PKCS#7 Authenticode SHA-256 signature was computed over that unmodified layout. 2. **Xbox Packaging Mutation:** When building an Xbox Series X|S retail package (`.xvc`), `MakePkg` generates a page-level hash catalog (`Catalog000.bin`, storing a 32-byte hash per 4 KiB executable `.text` page) across all binaries in the package. It then writes each binary's catalog metadata directly into its PE header: * `Flags = 0x0001` * `Catalog = 0` * `CatalogOffset = 0x0be800 .. 0x0c2960` * Updates the PE Optional Header `CheckSum` accordingly. 3. **Why Standard Authenticode Fails:** Standard Windows Authenticode (and LIEF's `pe.authentihash_sha256`) only excludes the PE `CheckSum` and the Certificate Table (`IMAGE_DIRECTORY_ENTRY_SECURITY`) during digest calculation. It does **not** exclude `LoadConfig.CodeIntegrity`. On Xbox GameOS, the kernel/loader validates binaries against `Catalog000.bin` and the package's `.xvc` signature rather than falling back to standard desktop Authenticode. --- ### Bit-Exact Verification (12 / 12 Matched) Zeroing out those 12 bytes in `LoadConfig.CodeIntegrity` (`IMAGE_LOAD_CONFIG_DIRECTORY64 + 0x94`) and recomputing the PE Authenticode SHA-256 restores the **exact** digest embedded inside each file's Microsoft PKCS#7 certificate across all 12 DLLs: | DLL | Injected `CatalogOffset` | Authentihash SHA-256 (after zeroing 12B) | Match vs. Embedded Cert | | --- | --- | --- | --- | | `concrt140.dll` | `0x0bf280` | `236a7eed621b61f0...` | Exact bit-for-bit match | | `libHttpClient.GDK.dll` | `0x0bf7c0` | `9b81f8f2454868a3...` | Exact bit-for-bit match | | `msvcp140.dll` | `0x0c0ce0` | `bca478189c7c1800...` | Exact bit-for-bit match | | `msvcp140_1.dll` | `0x0c1760` | `4dda722ddc4b63c5...` | Exact bit-for-bit match | | `msvcp140_2.dll` | `0x0c17a0` | `cf245b23061c10cb...` | Exact bit-for-bit match | | `msvcp140_atomic_wait.dll` | `0x0c1b80` | `e68a2ed4c92c52d2...` | Exact bit-for-bit match | | `msvcp140_codecvt_ids.dll` | `0x0c1c00` | `a6d5b5c60df5d94a...` | Exact bit-for-bit match | | `vccorlib140.dll` | `0x0c1c20` | `a4cb9724fa0f8371...` | Exact bit-for-bit match | | `vcomp140.dll` | `0x0c2140` | `0d98265a491969c6...` | Exact bit-for-bit match | | `vcruntime140.dll` | `0x0c2280` | `66c02f5388ded95f...` | Exact bit-for-bit match | | `vcruntime140_1.dll` | `0x0c2480` | `b08b56e861f15b17...` | Exact bit-for-bit match | | `XCurl.dll` | `0x0c2960` | `9e7b0a30d5353faf...` | Exact bit-for-bit match | *(Note: Your whole-file SHA-256 values for `XCurl.dll`, `msvcp140.dll`, and `libHttpClient.GDK.dll` match the exact binaries analyzed here.)* #### Additional Observation on the 4 Unsigned DLLs & Main Executable * The 4 unsigned middleware DLLs (`Bink2Scarlett.dll`, `XboxBvhBuilder.dll`, `amd_fidelityfx_loader_xbox.dll`, `amd_fidelityfx_upscaler_xbox.dll`) were also processed by `MakePkg`, receiving `Flags = 0x0001` and contiguous `CatalogOffset` entries starting at `0x0be800`. * The catalog region from `0x000000` to `0x0be800` reserves **24,384** 32-byte page hash slots (`0x0be800 / 32`), indicating that the omitted main executable (`game_scarlett_master.exe`) had an executable `.text` footprint of approximately **95.25 MiB** (`24,384 × 4 KiB`). --- ### Answers to Your Proposed Follow-Up Items 1. **Cross-Installation Byte Comparison:** Confirmed—the whole-file SHA-256 hashes you listed for `XCurl.dll`, `msvcp140.dll`, and `libHttpClient.GDK.dll` are byte-identical to our sample. 2. **Second Implementation / `signtool` Behavior:** Both Windows `signtool verify /pa /v` and PowerShell `Get-AuthenticodeSignature` report `HashMismatch` (`0x80096010`) for the exact same reason: desktop Windows Authenticode does not mask `LoadConfig.CodeIntegrity`, whereas Xbox packaging legitimately mutates it. 3. **Provenance & Windows Loading Caveat:** Agreed on documenting the distinction between original Microsoft CMS signatures and post-packaging Xbox Code Integrity mutations. Note that because these DLLs are unmodified Microsoft/middleware binaries with only `LoadConfig.CodeIntegrity` and `CheckSum` updated by `MakePkg`, they carry no injected code—though Windows code-integrity enforcement policies that strictly require valid desktop Authenticode signatures (e.g., HVCI/WDAC) will reject them unless `LoadConfig.CodeIntegrity` is zeroed or policy-exempted.
R0Y00 commented 2026-11-24 09:04:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:00:17Z.


Please remove the binary attachment from the comment. This repository keeps copied and modified binaries out of GitHub issues and uses source-built controls for reproducible evidence. The reported digest comparison can stay as an unverified observation with a short aggregate summary. It does not establish that the files are safe or that desktop trust policy should accept them. Keep the original inputs local and leave signature enforcement enabled.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7126833348 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7126833348). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T09:00:17Z. --- Please remove the binary attachment from the comment. This repository keeps copied and modified binaries out of GitHub issues and uses source-built controls for reproducible evidence. The reported digest comparison can stay as an unverified observation with a short aggregate summary. It does not establish that the files are safe or that desktop trust policy should accept them. Keep the original inputs local and leave signature enforcement enabled.
mcn1630 commented 2026-11-24 11:02:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mcn1630 on 2026-11-24T10:18:51Z.


Please remove the binary attachment from the comment. This repository keeps copied and modified binaries out of GitHub issues and uses source-built controls for reproducible evidence. The reported digest comparison can stay as an unverified observation with a short aggregate summary. It does not establish that the files are safe or that desktop trust policy should accept them. Keep the original inputs local and leave signature enforcement enabled.

Removed the binaries—my apologies for uploading them here. I just wanted to clarify the technical root cause behind the Authenticode digest mismatch, not suggest bypassing signature policies or treating the files as trusted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7128606762 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7128606762). Originally posted by [mcn1630](https://github.com/mcn1630) on 2026-11-24T10:18:51Z. --- > Please remove the binary attachment from the comment. This repository keeps copied and modified binaries out of GitHub issues and uses source-built controls for reproducible evidence. The reported digest comparison can stay as an unverified observation with a short aggregate summary. It does not establish that the files are safe or that desktop trust policy should accept them. Keep the original inputs local and leave signature enforcement enabled. Removed the binaries—my apologies for uploading them here. I just wanted to clarify the technical root cause behind the Authenticode digest mismatch, not suggest bypassing signature policies or treating the files as trusted.
AlkSey99 commented 2026-12-01 00:52:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by AlkSey99 on 2026-12-01T00:52:59Z.


Follow-up — Native analysis and signed Microsoft reference comparison

I compared the 12 DLLs by whole-file SHA-256, computed PE Authentihash, and embedded signed digest. All three values match the fingerprints posted in this issue for all 12 DLLs. This is AI-assisted, read-only static analysis.

1. Ten Visual C++ DLLs — same-build references found

Microsoft’s OneCore x64 redistributable contains signed DLLs with file version 14.29.30157.0.

Windows reported Valid for all ten references. Each reference’s computed Authentihash equals the digest embedded in the corresponding audited DLL.

A full file comparison found identical executable bytes and certificate tables. The only differences were:

  • LoadConfig.CodeIntegrity.Flags
  • CatalogOffset
  • OptionalHeader.CheckSum

The first two explain the digest mismatch. Authenticode excludes CheckSum.

References:

2. The two GDK DLLs remain open

XCurl.dll

Against the signed Windows GDK reference, XCurl.dll has identical instruction bytes in 528 of 529 functions at matching RVAs.

The three changed bytes in .text are in a build constant passed at three initialization sites, consistent with the difference between builds 7901 and 7903.

libHttpClient.GDK.dll

126 of 129 exported bodies have matching mnemonic sequences and operand counts after following the export jumps. Only two match byte for byte.

Ghidra 12.2 decompiled 10,019 identified functions across the 12 DLLs. For libHttpClient.GDK.dll, instructions within those functions cover 59.0% of its raw executable section.

The exact integrity of both Xbox GDK variants remains unverified.

3. Catalog and behavioral evidence

Ten of the eleven successive CatalogOffset spacings match the preceding DLL’s executable page count.

Catalog authentication and cryptographic file coverage remain open.

For the matching libHttpClient.GDK.dll hash, VirusTotal shows:

  • 0/68 antivirus vendor detections.
  • One explicit sandbox malware verdict from C2AE.
  • CAPE’s T1055 details cite TLS rules.
  • The recorded PE has a TLS directory with zero declared callbacks.
  • The visible T1055 evidence identifies no injection target.

The C2AE verdict remains unresolved and should not be dismissed as a false positive without further evidence.

VirusTotal behavioral report

4. Conclusion

The OneCore comparison explains the ten digest mismatches. Authenticating the exact two GDK variants and validating Xbox catalog coverage would address the remaining provenance questions.

The scope of this investigation is limited to these 12 DLL fingerprints.

No audited DLL was loaded or executed during the investigation.

Sanitized comparison tables, reference fingerprints, methodology, and analysis limitations are available upon request. No proprietary binaries or game files will be distributed.

These findings do not establish the safety of the complete package, and signature enforcement should remain enabled.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7296848138 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/52#issuecomment-7296848138). Originally posted by [AlkSey99](https://github.com/AlkSey99) on 2026-12-01T00:52:59Z. --- ## Follow-up — Native analysis and signed Microsoft reference comparison I compared the 12 DLLs by whole-file SHA-256, computed PE Authentihash, and embedded signed digest. All three values match the fingerprints posted in this issue for all 12 DLLs. This is AI-assisted, read-only static analysis. ### 1. Ten Visual C++ DLLs — same-build references found Microsoft’s OneCore x64 redistributable contains signed DLLs with file version `14.29.30157.0`. Windows reported `Valid` for all ten references. Each reference’s computed Authentihash equals the digest embedded in the corresponding audited DLL. A full file comparison found identical executable bytes and certificate tables. The only differences were: - `LoadConfig.CodeIntegrity.Flags` - `CatalogOffset` - `OptionalHeader.CheckSum` The first two explain the digest mismatch. Authenticode excludes `CheckSum`. References: - [Microsoft OneCore VSIX](https://download.visualstudio.microsoft.com/download/pr/8497e528-d106-4143-95eb-3deb1b2f4851/c3579e86943d6fe604d0a660b9f1594c584bd143959a7ac20ea337cd034b9f12/Microsoft.VC.14.29.16.11.CRT.Redist.x64.OneCore.Desktop.base.vsix) - [Microsoft PE specification](https://learn.microsoft.com/en-us/windows/win32/debug/pe-format) ### 2. The two GDK DLLs remain open **XCurl.dll** Against the signed Windows GDK reference, `XCurl.dll` has identical instruction bytes in 528 of 529 functions at matching RVAs. The three changed bytes in `.text` are in a build constant passed at three initialization sites, consistent with the difference between builds `7901` and `7903`. **libHttpClient.GDK.dll** 126 of 129 exported bodies have matching mnemonic sequences and operand counts after following the export jumps. Only two match byte for byte. Ghidra 12.2 decompiled 10,019 identified functions across the 12 DLLs. For `libHttpClient.GDK.dll`, instructions within those functions cover 59.0% of its raw executable section. The exact integrity of both Xbox GDK variants remains unverified. ### 3. Catalog and behavioral evidence Ten of the eleven successive `CatalogOffset` spacings match the preceding DLL’s executable page count. Catalog authentication and cryptographic file coverage remain open. For the matching `libHttpClient.GDK.dll` hash, VirusTotal shows: - 0/68 antivirus vendor detections. - One explicit sandbox malware verdict from C2AE. - CAPE’s T1055 details cite TLS rules. - The recorded PE has a TLS directory with zero declared callbacks. - The visible T1055 evidence identifies no injection target. The C2AE verdict remains unresolved and should not be dismissed as a false positive without further evidence. [VirusTotal behavioral report](https://www.virustotal.com/gui/file/14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a/behavior) ### 4. Conclusion The OneCore comparison explains the ten digest mismatches. Authenticating the exact two GDK variants and validating Xbox catalog coverage would address the remaining provenance questions. The scope of this investigation is limited to these 12 DLL fingerprints. No audited DLL was loaded or executed during the investigation. Sanitized comparison tables, reference fingerprints, methodology, and analysis limitations are available upon request. No proprietary binaries or game files will be distributed. **These findings do not establish the safety of the complete package, and signature enforcement should remain enabled.**
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#52
No description provided.