Function at 0x140011a04
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x68], r8
mov rax, rdx
mov qword [rsp + 0x70], rdx
mov r13, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x88], r8
xor edi, edi
mov r12d, edi
mov dword [rsp + 0x44], edi
mov r15d, 0xffffffff
mov qword [rax], rdi
mov dword [r8], edi
mov r14, rdi
mov rsi, rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x98]
lea edx, [r9 - 0x2e]
mov rcx, r13
call fcn.1400126b0
mov ebx, eax
mov dword [rsp + 0x40], eax
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x140011ab2
cmp ebx, 0x80000005
jne 0x140011d13
mov r12d, dword [rsp + 0xac]
test r12d, r12d
jne 0x140011aca
mov ebx, edi
mov dword [rsp + 0x40], ebx
jmp 0x140011d0e
mov eax, dword [rsp + 0xb0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x140011adc
mov ebx, edi
jmp 0x140011ae4
mov ecx, r15d
mov ebx, 0xc0000095
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x140011b0d
imul rcx, r12
cmp rcx, r15
ja 0x140011afd
mov ebx, edi
jmp 0x140011b05
mov ecx, r15d
mov ebx, 0xc0000095
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], ebx
mov eax, edi
test ebx, ebx
js 0x140011d0e
mov rax, r12
shl rax, 3
cmp rax, r15
ja 0x140011b27
mov ebx, edi
jmp 0x140011b2f
mov eax, r15d
mov ebx, 0xc0000095
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x140011d0e
lea edx, [rax + rcx]
cmp edx, eax
jb 0x140011b48
mov eax, edx
mov ebx, edi
jmp 0x140011b50
mov eax, r15d
mov ebx, 0xc0000095
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x140011d0e
mov r8d, eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140011b8b
mov ebx, 0xc000009a
jmp 0x140011ac1
lea rcx, [rax + r12*8]
mov qword [rsp + 0x78], rcx
mov eax, dword [rsp + 0xb0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x140011ba7
mov ebx, edi
jmp 0x140011baf
mov eax, r15d
mov ebx, 0xc0000095
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x140011d0e
mov r8d, eax
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x140011b81
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov esi, edi
test r12d, r12d
je 0x140011cf1
and r13b, 1
mov rcx, qword [rsp + 0x60]
mov edx, esi
test r13b, r13b
je 0x140011c50
mov eax, dword [rsp + 0x4c]
add eax, 0xfffffff0
shr eax, 1
mov dword [rsp + 0x5c], eax
lea r8, [r14 + 0x10]
and rcx, 0xfffffffffffffffe
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x5c]
call sym.bcdedit.exe_OREnumKey
mov ecx, eax
call fcn.140012894
mov ebx, eax
test eax, eax
js 0x140011c70
mov eax, dword [rsp + 0x5c]
add eax, eax
mov dword [r14 + 0xc], eax
add eax, 0x10
mov dword [rsp + 0x58], eax
jmp 0x140011c70
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9, r14
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov ebx, eax
mov dword [rsp + 0x40], ebx
cmp ebx, 0x8000001a
je 0x140011ced
test ebx, ebx
js 0x140011d09
mov ecx, dword [r14 + 0xc]
add rcx, 2
mov eax, dword [rsp + 0x48]
cmp rcx, rax
ja 0x140011ce2
mov eax, esi
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 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, r12d
jb 0x140011bf6
jmp 0x140011cf1
mov ebx, 0xc0000023
mov dword [rsp + 0x40], ebx
jmp 0x140011d09
test esi, esi
je 0x140011d09
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
mov dword [rax], esi
mov ebx, edi
jmp 0x140011ce7
mov rsi, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x44]
test r14, r14
je 0x140011d30
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x140011d51
test rsi, rsi
je 0x140011d51
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x140011db5
int3
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140027ea0
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret