Function at 0x14001ce14
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 [0x14003f0b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov rax, rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], r8
xor edi, edi
mov esi, edi
mov dword [rsp + 0x34], edi
mov r13d, 0x80000000
mov r12d, 0xffffffff
mov qword [rdx], rdi
mov dword [r8], edi
mov r14, rdi
mov r15, rdi
and rax, 0xfffffffffffffffd
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0x30
lea r8, [rsp + 0x80]
lea edx, [r9 - 0x2e]
mov rcx, rax
call qword [sym.imp.ntdll.dll_ZwQueryKey]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x30], eax
add eax, r13d
test r13d, eax
jne 0x14001cebe
cmp ebx, 0x80000005
jne 0x14001d0f8
mov edx, dword [rsp + 0x94]
mov dword [rsp + 0x40], edx
test edx, edx
jne 0x14001ced8
mov ebx, edi
mov dword [rsp + 0x30], ebx
jmp 0x14001d0f8
mov ecx, dword [rsp + 0x98]
lea eax, [rcx + 2]
mov r8d, r12d
cmp eax, ecx
cmovae r8d, eax
mov dword [rsp + 0x38], r8d
sbb ebx, ebx
and ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
mov rsi, rdx
cmp eax, ecx
jb 0x14001cf28
mov eax, r8d
imul rax, rsi
mov r8d, r12d
cmp rax, r12
cmovbe r8d, eax
mov dword [rsp + 0x38], r8d
cmp r12, rax
sbb ebx, ebx
and ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
mov edx, edi
test ebx, ebx
js 0x14001d0f4
mov rax, rsi
shl rax, 3
mov edx, r12d
cmp rax, r12
cmovbe edx, eax
cmp r12, rax
sbb ebx, ebx
and ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14001d0f4
lea eax, [rdx + r8]
mov ecx, r12d
cmp eax, edx
cmovae ecx, eax
sbb ebx, ebx
and ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
mov edx, ecx
test ebx, ebx
js 0x14001d0f4
mov r8d, ecx
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14001cfaf
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
jmp 0x14001d0f4
lea r13, [rax + rsi*8]
mov eax, dword [rsp + 0x98]
add eax, 0x1a
cmp eax, 0x1a
cmovae r12d, eax
mov dword [rsp + 0x48], r12d
sbb ebx, ebx
and ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp eax, 0x1a
jb 0x14001d0e8
mov r8d, r12d
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14001d012
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
jmp 0x14001d0e8
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x38], eax
mov esi, edi
cmp dword [rsp + 0x40], edi
jbe 0x14001d0d2
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, r14
xor r8d, r8d
mov edx, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_ZwEnumerateKey]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x8000001a
je 0x14001d0ce
test eax, eax
js 0x14001d0e8
mov ecx, dword [r14 + 0xc]
add rcx, 2
mov ebx, dword [rsp + 0x38]
cmp rcx, rbx
ja 0x14001d0c4
mov rax, qword [rsp + 0x48]
mov qword [rax], r13
mov r8d, dword [r14 + 0xc]
lea rdx, [r14 + 0x10]
mov rcx, r13
call sub.msvcrt.dll_memcpy
mov eax, dword [r14 + 0xc]
add r13, rax
mov word [r13], di
add r13, 2
mov eax, 0xfffffffe
sub eax, dword [r14 + 0xc]
add ebx, eax
mov dword [rsp + 0x38], ebx
inc esi
add qword [rsp + 0x48], 8
cmp esi, dword [rsp + 0x40]
jb 0x14001d02b
jmp 0x14001d0d2
mov ebx, 0xc0000023
jmp 0x14001d009
test esi, esi
je 0x14001d0e8
mov rax, qword [rsp + 0x60]
mov qword [rax], r15
mov rax, qword [rsp + 0x68]
mov dword [rax], esi
mov ebx, edi
jmp 0x14001d009
mov r13d, 0x80000000
mov r12d, 0xffffffff
mov esi, dword [rsp + 0x34]
test r14, r14
je 0x14001d11b
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test ebx, ebx
jns 0x14001d142
test r15, r15
je 0x14001d142
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp ebx, 0xc000017d
jne 0x14001d19c
int3
mov eax, ebx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140026f10
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret