Function at 0x140038a60
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 0x140038acc
lea r9, [0x14003b180]
mov r8d, eax
lea edx, [rdi + 0x11]
jmp 0x140038d7a
lea rax, [rsp + 0x60]
mov dword [rsp + 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea rdx, [0x14003b190]
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 0x140038b56
mov edx, 0x22
jmp 0x140038d72
mov eax, dword [rbp - 0x3c]
dec eax
cmp eax, 1
ja 0x140038d6d
cmp dword [rbp - 0x38], 4
jb 0x140038d6d
mov eax, dword [rbp - 0x38]
mov r8d, 0x5c
shr rax, 1
mov word [rbp + rax*2 - 0x36], di
cmp word [rbp - 0x34], r8w
je 0x140038bd1
movsd xmm0, qword [0x14003b1b0]
lea rcx, [rbp + 0x1c0]
movzx eax, word [0x14003b1b8]
sub rcx, 2
movsd qword [rbp + 0x1c0], xmm0
mov word [rbp + 0x1c8], ax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140038baf
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 0x140038bbe
jmp 0x140038bea
mov rcx, rdi
movzx eax, word [rbp + rcx - 0x34]
mov word [rbp + rcx + 0x1c0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140038bd4
mov edx, r8d
lea rcx, [rbp + 0x1c0]
call sub.ntoskrnl.exe_wcsrchr
test rax, rax
je 0x140038c01
mov word [rax], di
mov rcx, qword [0x1400346c0]
lea rdx, [rbp + 0x1c0]
mov r8b, 1
call fcn.14001558c
mov qword [0x1400346c8], rax
test rax, rax
jne 0x140038c34
xor r9d, r9d
lea edx, [rax + 0x44]
mov r8d, 0xc000009a
jmp 0x140038d7a
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 0x140038cc0
mov r8d, eax
mov edx, 0x55
jmp 0x140038d75
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 0x140038d00
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x66
jmp 0x140038d72
mov rdx, qword [rbp + 0x4f8]
lea r9, [rbp + 0x4e8]
mov rcx, qword [0x1400346c0]
lea r8, [rsp + 0x70]
call fcn.1400156a4
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 0x140038d46
mov edx, 0x77
jmp 0x140038d72
mov rax, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
mov rdx, qword [rax + 8]
mov qword [0x1400346d0], rdx
inc rcx
cmp word [rdx + rcx*2], di
jne 0x140038d5a
mov dword [0x1400346d8], ecx
mov al, 1
jmp 0x140038d86
mov edx, 0x33
mov r8d, ebx
mov r9, qword [rsp + 0x68]
mov ecx, 0xc1010452
call fcn.1400154cc
xor al, al
add rsp, 0x5c0
pop rdi
pop rbx
pop rbp
ret