Function at 0x140018000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xf0], 0
jne 0x140018034
mov dword [rsp + 0x48], 1
jmp 0x14001803c
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
je 0x14001806a
xor r9d, r9d
mov r8d, 0xa3
lea rdx, [0x140019950]
lea rcx, [0x1400199b0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x4c], 0
jmp 0x140018072
mov dword [rsp + 0x4c], 1
cmp qword [rsp + 0xf0], 0
jne 0x140018087
mov eax, 0xc000000d
jmp 0x1400183a6
mov dword [rsp + 0x30], 0
mov eax, 0x7c
mov word [rsp + 0x70], ax
mov eax, 0x7e
mov word [rsp + 0x72], ax
lea rax, [0x1400199d0]
mov qword [rsp + 0x78], rax
mov eax, 0x14
mov word [rsp + 0x90], ax
mov eax, 0x16
mov word [rsp + 0x92], ax
lea rax, [0x140019a50]
mov qword [rsp + 0x98], rax
mov eax, 6
mov word [rsp + 0x80], ax
mov eax, 8
mov word [rsp + 0x82], ax
lea rax, [0x140019a70]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x240
lea rax, [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
lea r8, [rsp + 0xa0]
mov edx, 0x20019
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14001837c
mov r8d, 0x656e6f42
mov edx, 0x1000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0xd0], 0
cmp qword [rsp + 0x40], 0
je 0x140018367
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
mov r9, qword [rsp + 0x40]
mov r8d, 1
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14001822f
lfence
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x40]
mov eax, dword [rdx + rax]
mov dword [rcx], eax
jmp 0x140018355
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
mov r9, qword [rsp + 0x40]
mov r8d, 1
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140018355
lfence
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x14]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0
jmp 0x14001829f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x34], eax
jae 0x140018355
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x140018350
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x1400182dd
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x38], eax
jae 0x140018350
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x14001834e
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov eax, eax
shl rax, 1
mov word [rsp + 0x62], ax
movzx eax, word [rsp + 0x62]
mov word [rsp + 0x60], ax
mov r8, qword [rsp + 0xf0]
mov edx, 0xa
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToInteger]
mov dword [rsp + 0x30], eax
jmp 0x140018355
jmp 0x1400182d3
jmp 0x140018295
mov edx, 0x656e6f42
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14001836f
mov dword [rsp + 0x30], 0xc0000017
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400183a2
lfence
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x140019a80]
lea r8, [0x140019a90]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140003e80
add rsp, 0xe0
pop rdi
ret