Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Windows Registry hive (REGF)/struct/nk and vk cell layouts

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Windows Registry hive (REGF)"
claim"nk (key node) has the last-written FILETIME at +4, sub key list at +28, value list at +40, name size at +72 and name at +76; vk (value key) has data size +4, data offset +8, type +12, flags +16, name +20. Data size with bit 0x80000000 set means the data is inline in the offset field."
scope
level"format"
applies_to"minor version 1.2 and later"
observed_in
Empty array
data
name"nk_vk_cells"
size"variable"
fields
offset"0x0"
size2
type"char[2]"
name"nk_signature"
offset"0x2"
size2
type"uint16_t"
name"nk_flags"
offset"0x4"
size8
type"uint64_t"
name"nk_last_written"
offset"0x10"
size4
type"uint32_t"
name"nk_parent_offset"
offset"0x14"
size4
type"uint32_t"
name"nk_subkey_count"
offset"0x1C"
size4
type"uint32_t"
name"nk_subkey_list_offset"
offset"0x24"
size4
type"uint32_t"
name"nk_value_count"
offset"0x28"
size4
type"uint32_t"
name"nk_value_list_offset"
offset"0x2C"
size4
type"uint32_t"
name"nk_security_offset"
offset"0x48"
size2
type"uint16_t"
name"nk_name_size"
offset"0x4C"
size0
type"char[]"
name"nk_name"
evidence
type"source"
detail"Named key and Value key tables (offsets relative to the cell data; vk offsets given in the page text)"
repo"https://github.com/libyal/libregf"
commit"eb1364c9926ab12cee76139fe91a38ab29ea1896"
path"documentation/Windows NT Registry File (REGF) format.asciidoc"
confidence"high"
related
Empty array
key"nk and vk cell layouts"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T18:13:11.510Z"
verifications
Empty array