Component review · middleware

Bink2Scarlett.dll — the video decoder

RAD Game Tools' Bink 2 decoder for Xbox Series X|S. It carries a build stamp naming the Xbox extensions kit and a 2023 link date, exposes 74 functions of which the game calls 23, and imports exactly one library that means it can never run on a desktop.

  • 255,488 bytes
  • 74 exports · 23 used
  • 60 imports across 20 DLLs
  • GXDK 10.0.22000.4429
  • unsigned · no version block
Result

A genuine console middleware binary, and a self-contained dependency clue

The .xbld stamp is the finding: this DLL was linked with GXDK — the Gaming eXtensions Development Kit, the Xbox-specific half of the GDK — by MSVC in February 2023. It is not a renamed desktop library, and its xmem.dll import means it is the one dependency in the package that is provably console-bound by its own headers.

255,488bytes249.5 KiB · x64 DLL
74exported functions23 imported by the game
60imported functions20 libraries · no delay imports
GXDKbuild kitJune 2022 Update 4
1console-only importxmem.dll — XMemAlloc
0signaturesno Authenticode, no version block
01

What it is

One of the eleven console libraries the executable imports, and the only one from a third-party vendor.

A video codec, not a media framework

Bink 2 is RAD's proprietary video format, used for cutscenes and in-engine video playback. The DLL is a decoder plus a small audio path: open a file, decode frames, copy or hand them to the GPU, play a synchronised audio track.

Strings inside confirm the feature level: “BinkGPU is only supported for Bink 2.2 and later files”, along with the usual “Not a Bink file” and “Error reading Bink header” messages.

Structure

Machine
x64 DLL, subsystem 6.0
Sections
.text .rdata .data .pdata .xbld .reloc
Mitigations
ASLR yes · DEP yes · CFG no
Signing
none — no certificate table
Version block
absent (no file version to read)
Debug
PDB path only (types 12/13)

The absence of a version resource is normal for RAD release builds; the .xbld section is the only build metadata present.

02

Provenance: the .xbld stamp

The same 512-byte section the game executable carries, and it answers the question the filename only hints at.

FieldValue
EditionGXDK, June 2022 GXDK Update 4
Product build10.0.22000.4429
SDK type220604 — 4 June 2022
Compiler192930146.0 — MSVC 19.29 (VS 2019 16.11)
Build id0x55F0114D
PE timestamp2023-02-08 06:36:22Z
PDBC:\devel\projects\bink\build\Bink2Scarlett.pdb
Why GXDK matters. The Microsoft GDK is split in two: GRDK carries the Gaming Runtime for PC and Xbox, and GXDK is the Gaming eXtensions Development Kit — the Xbox-specific headers, libraries and tooling, including the D3D12.x and console audio extensions. A DLL stamped GXDK was compiled against the console target, not merely named for it.

Two toolchains, one package

The game's own stamp reads RSG-LLVM clang 19.1.7 with GRDK/GXDK editions from 2025 and 2026. This DLL was built with MSVC 19.29 against the June 2022 GXDK and linked in February 2023.

Which is exactly what you would expect: middleware is built once by its vendor and frozen, while the title is rebuilt continuously. A three-and-a-half-year gap between the two is normal, not suspicious.

The path tells you whose machine built it

C:\devel\projects\bink\build\Bink2Scarlett.pdb is RAD's own build layout — a plain developer box, not a publisher's build farm.

Together with the GXDK stamp, that is two independent signals that this file is the vendor's genuine Scarlett build rather than something assembled to fit the import table.

03

74 exports, 23 used

The subset the game imports describes precisely how it drives the decoder.

Imported by game_scarlett_master.exe

BinkClose · BinkDoFrame · BinkDoFrameAsyncMulti · BinkDoFrameAsyncWait · BinkFreeGlobals · BinkGetFrameBuffersInfo · BinkGetKeyFrame · BinkGetPlatformInfo · BinkGoto · BinkNextFrame · BinkOpenWithOptions · BinkPause · BinkRegisterFrameBuffers · BinkRequestStopAsyncThreadsMulti · BinkSetMemory · BinkSetOSFileCallbacks · BinkSetSoundSystem · BinkSetVolume · BinkSetWillLoop · BinkShouldSkip · BinkStartAsyncThread · BinkWait · BinkWaitStopAsyncThreadsMulti

It uses the asynchronous, multi-threaded path

BinkDoFrameAsyncMulti, BinkDoFrameAsyncWait, BinkStartAsyncThread and the two …StopAsyncThreadsMulti calls are all present: the game decodes several frames ahead on worker threads rather than calling BinkDoFrame synchronously.

BinkRegisterFrameBuffers plus BinkGetFrameBuffersInfo mean the decoder writes into buffers the engine owns — the frames land in the game's memory pool, not Bink's.

It brings its own allocator, IO and audio

BinkSetMemory and BinkSetOSFileCallbacks hand Bink the engine's allocator and streaming layer. BinkSetSoundSystem hands it an audio backend.

Notably the game does not import BinkOpenXAudio2 or BinkFindXAudio2WinDevice, even though the DLL exports both — Bink's built-in XAudio2 integration is unused, and the title routes audio through its own stack instead.

What is left unused says something too. The entire synchronous API (BinkOpen, BinkCopyToBuffer, BinkWait, BinkGetRects), the subtitle and track functions, and the GPU-buffer registration path are all exported and all unused. This title does not use Bink's GPU decode or its subtitle system.
04

What it depends on

Sixty imports across twenty libraries, all bound at load time — there are no delay imports, so every one must resolve before the DLL initialises.

LibraryFnNotablePortabilityReading
xmem.dll2XMemAlloc, XMemFreeXbox-only allocatorconsole-only The single import that makes this binary unloadable on Windows.
XAudio2_9.dll1ordinal #1 = XAudio2Createportable, different providercareful Present on Windows 10+, supplied by the Game OS on console. Imported by ordinal, so the name is not in the table.
api-ms-win-core-file-l1-2-01CreateFile2portableportable The app-container file API — file access is scoped to the package.
api-ms-win-core-processtopology-obsolete-l1-1-01SetThreadAffinityMaskportableportable The decoder pins its worker threads; the game's scheduler sits above it.
api-ms-win-core-processthreads-l1-1-12SetThreadIdealProcessorEx, IsProcessorFeaturePresentportableportable Thread placement and CPU feature detection.
VCRUNTIME140 + UCRT contracts13memcpy family, exception handlers, CRT initportableportable Same runtime family the game imports.
kernel32 API sets (file, synch, com, error, handle, debug)40condition variables, critical sections, vectored handlersportableportable Ordinary Win32 plumbing; nothing console-specific.
The xmem.dll import decides the question. XMemAlloc and XMemFree are the Xbox memory extension — there is no such export on any Windows SKU. This DLL therefore cannot be loaded on a desktop at all, regardless of whether RAD's PC build offers the same API.
05

What it changes in the earlier reports

  • Sharpened — the “near drop-in” classification in the conversion study. The API is cross-platform and a PC Bink DLL with the same exports exists, which is why it was grouped that way. But this artefact is GXDK-linked and imports the console allocator, so a PC build would ship RAD's Windows binary — identical calls, different file.
  • Reinforced — the console-only character of the package. A third-party middleware binary carrying a GXDK stamp is independent evidence, from outside the game's own build, that this is a console package rather than a desktop one in disguise.
  • Unaffected — everything else. The import counts, chunk manifest, configuration identity and package reconciliation do not depend on this review.
One loose end worth naming. The DLL imports XAudio2Create by ordinal even though the game overrides the sound system. That means the loader still requires the console audio stack to be present for the DLL to initialise — the override happens later, at runtime, not at load time.
06

Method and limits

  • Static only: PE headers, sections, exports, imports, the .xbld section and printable strings. The DLL was not loaded, executed or debugged.
  • No disassembly was performed, so no claim here rests on code behaviour — only on what the file declares.
  • The export and import lists are complete; the “unused export” split comes from comparing against the game's import table (deps.json).
  • The Bink version is not stated in the file. “Bink 2.2” appears only inside an error message about GPU decode, so it is a floor for the supported format, not a version of the library.