Function at 0x140037a44
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
xor edi, edi
mov qword [rbp - 0x78], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdi
lea rcx, [rbp + 0x4f0]
mov dword [rbp + 0x4e8], edi
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], rdi
mov edx, 0x20019
mov dword [rsp + 0x78], 0x30
movdqu xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x70], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x140037ab0
lea r9, [0x14003a130]
mov r8d, eax
lea edx, [rdi + 0x11]
jmp 0x140037d5e
lea rax, [rsp + 0x60]
mov dword [rsp + 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea rdx, [0x14003a140]
mov qword [rbp - 0x80], rdi
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x70], 0x40
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, 0x200
lea rax, [rbp + 0x4e0]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x40]
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x60]
mov dword [rbp + 0x4e0], ecx
mov r8d, 2
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rbp + 0x4f0]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x140037b3a
mov edx, 0x22
jmp 0x140037d56
mov eax, dword [rbp - 0x3c]
dec eax
cmp eax, 1
ja 0x140037d51
cmp dword [rbp - 0x38], 4
jb 0x140037d51
mov eax, dword [rbp - 0x38]
mov r8d, 0x5c
shr rax, 1
mov word [rbp + rax*2 - 0x36], di
cmp word [rbp - 0x34], r8w
je 0x140037bb5
movsd xmm0, qword [0x14003a160]
lea rcx, [rbp + 0x1c0]
movzx eax, word [0x14003a168]
sub rcx, 2
movsd qword [rbp + 0x1c0], xmm0
mov word [rbp + 0x1c8], ax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140037b93
lea r9, [rbp - 0x34]
xor edx, edx
movzx eax, word [r9 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140037ba2
jmp 0x140037bce
mov rcx, rdi
movzx eax, word [rbp + rcx - 0x34]
mov word [rbp + rcx + 0x1c0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140037bb8
mov edx, r8d
lea rcx, [rbp + 0x1c0]
call sub.ntoskrnl.exe_wcsrchr
test rax, rax
je 0x140037be5
mov word [rax], di
mov rcx, qword [0x1400336c0]
lea rdx, [rbp + 0x1c0]
mov r8b, 1
call fcn.1400152dc
mov qword [0x1400336c8], rax
test rax, rax
jne 0x140037c18
xor r9d, r9d
lea edx, [rax + 0x44]
mov r8d, 0xc000009a
jmp 0x140037d5e
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rdi
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x21
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x4f0]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], edi
mov edx, 0x120089
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x78], 0x30
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x70], 0x40
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jns 0x140037ca4
mov r8d, eax
mov edx, 0x55
jmp 0x140037d59
mov rcx, qword [rbp + 0x4f0]
lea rax, [rbp + 0x4f8]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
jns 0x140037ce4
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x66
jmp 0x140037d56
mov rdx, qword [rbp + 0x4f8]
lea r9, [rbp + 0x4e8]
mov rcx, qword [0x1400336c0]
lea r8, [rsp + 0x70]
call fcn.1400153f4
mov rcx, qword [rbp + 0x4f8]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x140037d2a
mov edx, 0x77
jmp 0x140037d56
mov rax, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
mov rdx, qword [rax + 8]
mov qword [0x1400336d0], rdx
inc rcx
cmp word [rdx + rcx*2], di
jne 0x140037d3e
mov dword [0x1400336d8], ecx
mov al, 1
jmp 0x140037d6a
mov edx, 0x33
mov r8d, ebx
mov r9, qword [rsp + 0x68]
mov ecx, 0xc1010452
call fcn.14001521c
xor al, al
add rsp, 0x5c0
pop rdi
pop rbx
pop rbp
ret