Function at 0x4068a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov word [rsp + 0x78], 0x7c
mov word [rsp + 0x7a], 0x7e
lea rax, [0x00433c10]
mov qword [rsp + 0x80], rax
mov word [rsp + 0xa0], 0x14
mov word [rsp + 0xa2], 0x16
lea rax, [0x00433bf0]
mov qword [rsp + 0xa8], rax
mov word [rsp + 0x38], 6
mov word [rsp + 0x3a], 8
lea rax, [0x00433be0]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x88], 0
lea rax, [rsp + 0x8a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov dword [rsp + 0x98], 0
cmp qword [rsp + 0xe0], 0
jne 0x406967
mov eax, 0xc000000d
jmp 0x406c24
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0x240
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
lea r8, [rsp + 0x48]
mov edx, 0x20019
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_ZwOpenKey
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x406c1d
mov r8d, 0x486e7367
mov edx, 0x1000
mov ecx, 1
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], 0
cmp qword [rsp + 0xb0], 0
je 0x406c08
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
mov r9, qword [rsp + 0xb0]
mov r8d, 1
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_ZwQueryValueKey
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x406a64
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xb0]
mov eax, dword [rdx + rax]
mov dword [rcx], eax
jmp 0x406bf4
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
mov r9, qword [rsp + 0xb0]
mov r8d, 1
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_ZwQueryValueKey
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x406bf4
mov dword [rsp + 0xc8], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0xb0]
lea rax, [rcx + rax + 0x14]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0
jmp 0x406af6
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xc8], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0xc8], eax
jae 0x406bf4
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x406bef
mov eax, dword [rsp + 0xc8]
inc eax
mov dword [rsp + 0xcc], eax
jmp 0x406b4c
mov eax, dword [rsp + 0xcc]
inc eax
mov dword [rsp + 0xcc], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0xcc], eax
jae 0x406bef
mov eax, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x406bea
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0xcc]
sub ecx, eax
mov eax, ecx
mov eax, eax
shl rax, 1
mov word [rsp + 0x8a], ax
movzx eax, word [rsp + 0x8a]
mov word [rsp + 0x88], ax
mov r8, qword [rsp + 0xe0]
mov edx, 0xa
lea rcx, [rsp + 0x88]
call sub.ntoskrnl.exe_RtlUnicodeStringToInteger
mov dword [rsp + 0x98], eax
jmp 0x406bf4
jmp 0x406b3c
jmp 0x406ae6
mov edx, 0x486e7367
mov rcx, qword [rsp + 0xb0]
call sub.ntoskrnl.exe_ExFreePoolWithTag
jmp 0x406c13
mov dword [rsp + 0x98], 0xc0000017
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_ZwClose
mov eax, dword [rsp + 0x98]
add rsp, 0xd0
pop rdi
ret