Function at 0x140016218
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov rax, rcx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], r8
xor edi, edi
mov r14d, edi
mov dword [rsp + 0x34], edi
mov esi, 0xffffffff
mov r12d, 0x80000000
mov qword [rdx], rdi
mov dword [r8], edi
mov r13, rdi
mov r15, rdi
and rax, 0xfffffffffffffffd
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 0x30
lea r8, [rsp + 0x88]
lea edx, [r9 - 0x2e]
mov rcx, rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
add eax, r12d
test r12d, eax
jne 0x1400162bf
cmp ebx, 0x80000005
jne 0x14001650d
mov edx, dword [rsp + 0x9c]
mov dword [rsp + 0x48], edx
test edx, edx
jne 0x1400162d9
mov ebx, edi
mov dword [rsp + 0x30], ebx
jmp 0x14001650d
mov eax, dword [rsp + 0xa0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x1400162ef
mov dword [rsp + 0x40], ecx
mov ebx, edi
jmp 0x1400162fa
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov ecx, esi
mov dword [rsp + 0x30], ebx
mov r14, rdx
test ebx, ebx
js 0x140016329
mov edx, ecx
imul rdx, r14
cmp rdx, rsi
ja 0x140016318
mov dword [rsp + 0x40], edx
mov ebx, edi
jmp 0x140016323
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov edx, esi
mov dword [rsp + 0x30], ebx
jmp 0x14001632b
mov edx, ecx
mov dword [rsp + 0x38], edi
mov eax, edi
test ebx, ebx
js 0x140016508
mov rax, r14
shl rax, 3
cmp rax, rsi
ja 0x14001634d
mov dword [rsp + 0x38], eax
mov ebx, edi
jmp 0x140016358
mov dword [rsp + 0x38], esi
mov ebx, 0xc0000095
mov eax, esi
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x140016508
lea ecx, [rdx + rax]
cmp ecx, eax
jb 0x140016373
mov dword [rsp + 0x38], ecx
mov ebx, edi
jmp 0x14001637e
mov dword [rsp + 0x38], esi
mov ebx, 0xc0000095
mov ecx, esi
mov dword [rsp + 0x30], ebx
mov eax, ecx
test ebx, ebx
js 0x140016508
mov r8d, ecx
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r15, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400163bf
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
jmp 0x140016508
lea r12, [rax + r14*8]
mov eax, dword [rsp + 0xa0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x1400163da
mov dword [rsp + 0x44], eax
mov ebx, edi
jmp 0x1400163e5
mov dword [rsp + 0x44], esi
mov ebx, 0xc0000095
mov eax, esi
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x140016502
mov r8d, eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016427
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r13, rax
jmp 0x140016502
mov r15d, dword [rsp + 0x40]
mov r14d, edi
cmp dword [rsp + 0x48], edi
jbe 0x1400164e5
mov r13, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, rbx
xor r8d, r8d
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x8000001a
je 0x1400164e0
test eax, eax
js 0x1400164d4
mov rbx, qword [rsp + 0x38]
mov ecx, dword [rbx + 0xc]
add rcx, 2
mov eax, r15d
cmp rcx, rax
ja 0x1400164cb
mov qword [r13], r12
mov r8d, dword [rbx + 0xc]
lea rdx, [rbx + 0x10]
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0xc]
add r12, rax
mov word [r12], di
add r12, 2
mov eax, 0xfffffffe
sub eax, dword [rbx + 0xc]
add r15d, eax
inc r14d
add r13, 8
cmp r14d, dword [rsp + 0x48]
jb 0x14001643e
jmp 0x1400164e5
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x38]
jmp 0x140016502
test r14d, r14d
je 0x1400164d4
mov r15, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov qword [rax], r15
mov rax, qword [rsp + 0x70]
mov dword [rax], r14d
mov ebx, edi
mov dword [rsp + 0x30], ebx
jmp 0x1400164d9
mov r12d, 0x80000000
mov r14d, dword [rsp + 0x34]
test r13, r13
je 0x14001652a
mov rcx, qword gs:[0x60]
mov r8, r13
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x14001654b
test r15, r15
je 0x14001654b
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x1400165a9
int3
mov eax, ebx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14001fbe0
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret