Function at 0x21b94
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x790
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0x780], rax
xor r13d, r13d
lea rcx, [r11 - 0x627]
xor edx, edx
mov r8d, 0x1ff
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x40], r13
mov byte [r11 - 0x628], r13b
call fcn.0003a1a0
lea rcx, [rsp + 0x382]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x380], r13w
call fcn.0003a1a0
mov rdi, qword [0x0004f298]
lea rcx, [rdi + 0x10]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
jmp 0x21c2b
lea rdx, [rax + 0x18]
mov rcx, rdi
call fcn.0001ade0
mov rax, qword [rdi + 0x48]
cmp rax, r13
jne 0x21c1f
lea rcx, [rdi + 0x10]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
lea rdx, [0x0003bb00]
lea rcx, [rsp + 0x128]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x128]
lea r8, [rsp + 0xc8]
lea rcx, [rsp + 0x38]
mov edx, 0x80000000
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xc8], 0x30
mov qword [rsp + 0xd0], r13
mov dword [rsp + 0xe0], 0x240
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xf0], r13
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r13d
jl 0x220b3
mov edx, 0x818
mov ecx, 1
call fcn.0003548c
mov rcx, qword [rsp + 0x38]
mov rbx, rax
cmp rax, r13
je 0x220ad
lea rax, [rsp + 0x30]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov ebp, r13d
mov dword [rsp + 0x20], 0x818
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r13d
jl 0x220a0
lea r12, [rbx + 0x10]
movzx eax, word [rbx + 0xc]
lea r8, [rsp + 0xf8]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], ax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x58]
mov edx, 0x80000000
inc ebp
mov qword [rsp + 0x60], r12
mov dword [rsp + 0xf8], 0x30
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x110], 0x240
mov qword [rsp + 0x118], r13
mov qword [rsp + 0x120], r13
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r13d
jl 0x22072
mov rdi, qword [rsp + 0x40]
lea rdx, [0x0003bd20]
lea rcx, [rsp + 0x158]
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x50], r13d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x158]
lea r8, [rsp + 0x98]
lea rcx, [rsp + 0x48]
mov edx, 0x80000000
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], 0x240
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc0], r13
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r13d
jl 0x21ec3
lea rdx, [0x0003af50]
lea rcx, [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, 0x800
mov ecx, 1
call fcn.0003548c
mov rcx, qword [rsp + 0x48]
mov rdi, rax
cmp rax, r13
je 0x21ebd
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x138]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8d, 2
mov dword [rsp + 0x20], 0x800
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r13d
jl 0x21eb0
cmp dword [rdi + 4], 1
je 0x21e6a
cmp dword [rdi + 4], 2
jne 0x21eb0
lea rax, [rdi + 0xc]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x90], rax
movzx eax, word [rdi + 8]
mov word [rsp + 0x88], ax
mov word [rsp + 0x8a], ax
call fcn.00022154
mov rsi, rax
cmp rax, r13
je 0x21eb0
mov rcx, qword [rax + 8]
call fcn.000225b0
mov rcx, rsi
call fcn.00035504
mov rcx, rdi
call fcn.00035504
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [0x0003af30]
lea rcx, [rsp + 0x148]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x200
call fcn.0003a1a0
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x180]
lea rdx, [rsp + 0x148]
mov r8d, 2
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r13d
jl 0x21f6a
cmp dword [rsp + 0x184], 1
je 0x21f39
cmp dword [rsp + 0x184], 2
jne 0x21f6a
lea rax, [rsp + 0x18c]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x80], rax
movzx eax, word [rsp + 0x188]
mov word [rsp + 0x78], ax
mov word [rsp + 0x7a], ax
call fcn.00022154
jmp 0x2204e
lea rdx, [0x0003bb70]
lea rcx, [rsp + 0x168]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x180]
lea rdx, [rsp + 0x168]
mov r8d, 2
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r13d
jl 0x22067
cmp dword [rsp + 0x184], 4
jne 0x22067
cmp dword [rsp + 0x18c], 0x10
jae 0x22067
mov eax, 0x3ce
cmp word [rsp + 0x58], ax
jae 0x22067
lea r9, [rsp + 0x58]
lea r8, [0x0003bb80]
lea rcx, [rsp + 0x380]
mov edx, 0x200
mov word [rsp + 0x380], r13w
call fcn.0002e3a0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdx, [rsp + 0x380]
lea rdi, [rsp + 0x380]
repne scasw ax, word [rdi]
mov eax, 0x400
mov qword [rsp + 0x70], rdx
not rcx
mov word [rsp + 0x6a], ax
dec rcx
add cx, cx
mov word [rsp + 0x68], cx
lea rcx, [rsp + 0x68]
call fcn.00022520
mov rdi, rax
cmp rax, r13
je 0x22067
mov rcx, qword [rax + 8]
call fcn.000225b0
mov rcx, rdi
call fcn.00035504
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], 0x818
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp eax, r13d
jge 0x21d02
mov rcx, rbx
call fcn.00035504
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.00039b80
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret