From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Windows Registry hive (REGF)" |
|---|
| claim | "The hive bin header is 32 bytes: 'hbin' at 0, offset of the bin relative to the start of the bin data area at 4, bin size in bytes at 8 (the format document does not say it is a multiple of 4096, though its file offset formula counts whole 4096-byte blocks), then fields the source marks unknown: 12 and 16 (reserved, usually 0, may hold remnants), 20 (8-byte timestamp, only the first bin seems to hold a valid FILETIME), 28 (spare, similar to the size). Free adjacent cells are merged by extending the first one. In a hive file the base block is a 4096-byte header block: after the 512-byte file header come 3576 reserved bytes and two boot fields at 4088 and 4092 that have no meaning on disk; the header fields at 32 (file format, 1 = direct memory load), 44 (clustering factor, seen 1) and 48 (64 bytes, sometimes the end of the file name in UTF-16LE) are marked unknown. File offset of a cell = (cell offset) + 4096. Transaction log files can instead have a header block of only 1024 bytes, so this offset does not hold for them." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "regular hive files with a 4096-byte header block (transaction logs may use a 1024-byte header block)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "HiveBinHeader" |
|---|
| size | 32 |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "char[4]" |
|---|
| name | "signature_hbin" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "bin_offset" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "bin_size" |
|---|
|
| offset | "0xC" |
|---|
| size | 8 |
|---|
| type | "uint8_t[8]" |
|---|
| name | "reserved" |
|---|
|
| offset | "0x14" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "timestamp_first_bin_only" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "spare" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Hive bin header and cell lines 290-347; file header lines 182-247" |
|---|
| repo | "https://github.com/libyal/libregf" |
|---|
| commit | "eb1364c9926ab12cee76139fe91a38ab29ea1896" |
|---|
| path | "documentation/Windows NT Registry File (REGF) format.asciidoc" |
|---|
|
| type | "documentation" |
|---|
| detail | "File header section: 'The file header is stored in a 4096 byte header block. However transaction log files can have a header block of 1024 bytes.'; remainder table 512/3576, 4088, 4092; file offset formula (bin number + 1) x 4096; hive bin header table with the unknown fields; no statement that bin size is a multiple of 4096." |
|---|
| repo | "https://github.com/libyal/libregf" |
|---|
| commit | "eb1364c9926ab12cee76139fe91a38ab29ea1896" |
|---|
| path | "documentation/Windows NT Registry File (REGF) format.asciidoc" |
|---|
| lines | "185-250, 285-325" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "hbin header and base block remainder" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:47:32.644Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T11:59:46.957Z" |
|---|
| summary | "Not 'all hives': the source says transaction log files can have a 1024-byte header block, so the +4096 cell offset and the remainder of the base block hold for 4096-byte header blocks only. Also the…" |
|---|
| changed | | "claim" |
| "scope" |
| "evidence" |
|
|---|
|
|
|---|