Function at 0x140014fe8
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x14004f068]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov rax, rcx
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x98], r8
xor edi, edi
mov esi, edi
mov dword [rsp + 0x44], edi
mov r13d, 0x80000000
mov r15d, 0xffffffff
mov qword [rdx], rdi
mov dword [r8], edi
mov r14, rdi
mov r12, rdi
and rax, 0xfffffffffffffffd
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
mov r9d, 0x30
lea r8, [rsp + 0xa0]
lea edx, [r9 - 0x2e]
mov rcx, rax
call fcn.140015dcc
mov ebx, eax
mov dword [rsp + 0x40], eax
add eax, r13d
test r13d, eax
jne 0x140015099
cmp ebx, 0x80000005
jne 0x140015335
mov r13d, dword [rsp + 0xb4]
mov dword [rsp + 0x58], r13d
test r13d, r13d
jne 0x1400150b6
mov ebx, edi
mov dword [rsp + 0x40], ebx
jmp 0x14001532f
mov eax, dword [rsp + 0xb8]
lea ecx, [rax + 2]
mov r8d, 0xc0000095
cmp ecx, eax
jb 0x1400150ce
mov ebx, edi
jmp 0x1400150d4
mov ebx, r8d
mov ecx, r15d
mov dword [rsp + 0x4c], ecx
mov dword [rsp + 0x40], ebx
mov rsi, r13
test ebx, ebx
js 0x140015102
mov eax, ecx
imul rax, rsi
mov ecx, r15d
cmp rax, r15
cmovbe ecx, eax
mov dword [rsp + 0x4c], ecx
cmp r15, rax
sbb ebx, ebx
and ebx, r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], edi
mov edx, edi
test ebx, ebx
js 0x14001532b
mov rax, rsi
shl rax, 3
mov edx, r15d
cmp rax, r15
cmovbe edx, eax
mov dword [rsp + 0x48], edx
cmp r15, rax
sbb ebx, ebx
and ebx, r8d
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x14001532b
lea eax, [rdx + rcx]
mov ecx, r15d
cmp eax, edx
cmovae ecx, eax
mov dword [rsp + 0x48], ecx
sbb ebx, ebx
and ebx, r8d
mov dword [rsp + 0x40], ebx
mov edx, ecx
test ebx, ebx
js 0x14001532b
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 r12, rax
test rax, rax
jne 0x14001518e
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
jmp 0x14001532b
lea rax, [rax + r13*8]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xb8]
add eax, 0x1a
cmp eax, 0x1a
cmovae r15d, eax
sbb ebx, ebx
and ebx, 0xc0000095
mov dword [rsp + 0x40], ebx
cmp eax, 0x1a
jb 0x140015325
mov r8d, r15d
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 0x1400151f1
mov ebx, 0xc000009a
mov dword [rsp + 0x40], ebx
jmp 0x140015325
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x48], eax
mov esi, edi
test r13d, r13d
je 0x14001530f
lea rdx, [r14 + 0x10]
mov rcx, qword [rsp + 0x60]
mov r13b, cl
and r13b, 1
test r13b, r13b
je 0x140015265
lea eax, [r15 - 0x10]
shr eax, 1
mov dword [rsp + 0x50], eax
and rcx, 0xfffffffffffffffe
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov r8, rdx
mov edx, esi
call sym.bcdedit.exe_OREnumKey
mov ecx, eax
call fcn.140015ffc
mov ebx, eax
test eax, eax
js 0x14001528a
mov eax, dword [rsp + 0x50]
add eax, eax
mov dword [r14 + 0xc], eax
add eax, 0x10
mov dword [rsp + 0x54], eax
jmp 0x14001528a
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, r14
xor r8d, r8d
mov edx, esi
call qword [sym.imp.ntdll.dll_ZwEnumerateKey]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], ebx
cmp ebx, 0x8000001a
je 0x14001530b
test ebx, ebx
js 0x140015325
mov ecx, dword [r14 + 0xc]
add rcx, 2
mov eax, dword [rsp + 0x48]
cmp rcx, rax
ja 0x140015301
mov eax, esi
mov rbx, qword [rsp + 0x78]
mov qword [r12 + rax*8], rbx
mov r8d, dword [r14 + 0xc]
lea rdx, [r14 + 0x10]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov eax, dword [r14 + 0xc]
add rbx, rax
mov word [rbx], di
add rbx, 2
mov qword [rsp + 0x78], rbx
mov eax, 0xfffffffe
sub eax, dword [r14 + 0xc]
add dword [rsp + 0x48], eax
inc esi
cmp esi, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
lea rdx, [r14 + 0x10]
jb 0x140015214
jmp 0x14001530f
mov ebx, 0xc0000023
jmp 0x1400151e8
test esi, esi
je 0x140015325
mov rax, qword [rsp + 0x68]
mov qword [rax], r12
mov rax, qword [rsp + 0x70]
mov dword [rax], esi
mov ebx, edi
jmp 0x1400151e8
mov r15d, 0xffffffff
mov esi, dword [rsp + 0x44]
mov r13d, 0x80000000
test r14, r14
je 0x140015358
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 0x14001537f
test r12, r12
je 0x14001537f
mov rcx, qword gs:[0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp ebx, 0xc000017d
jne 0x1400153e2
int3
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140030000
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret