Function at 0x100020f24
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 [0x100032100]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x58], r8
mov rax, rdx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], r8
xor edi, edi
mov r14d, edi
mov dword [rsp + 0x34], edi
mov esi, 0xffffffff
mov qword [rax], rdi
mov dword [r8], edi
mov r12, rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x98]
lea edx, [r9 - 0x2e]
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, edi
jge 0x100020fc1
cmp eax, 0x80000005
jne 0x100021277
mov r14d, dword [rsp + 0xac]
cmp r14d, edi
jne 0x100020fe1
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov eax, dword [rsp + 0xb0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x100020ff7
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100021002
mov ecx, esi
mov dword [rsp + 0x44], ecx
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x10002102a
imul rcx, r14
cmp rcx, rsi
ja 0x10002101b
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100021026
mov ecx, esi
mov dword [rsp + 0x44], ecx
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
mov eax, edi
mov dword [rsp + 0x40], eax
cmp ebx, edi
jl 0x100021057
mov rax, r14
shl rax, 3
cmp rax, rsi
ja 0x100021048
mov dword [rsp + 0x40], eax
mov ebx, edi
jmp 0x100021053
mov eax, esi
mov dword [rsp + 0x40], eax
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100021077
lea edx, [rax + rcx]
cmp edx, eax
jb 0x10002106a
mov dword [rsp + 0x40], edx
mov ebx, edi
jmp 0x100021073
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x10002126d
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
mov qword [rsp + 0x48], rax
cmp rax, rdi
jne 0x1000210c0
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
lea rcx, [rax + r14*8]
mov qword [rsp + 0x78], rcx
mov eax, dword [rsp + 0xb0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x1000210e0
mov dword [rsp + 0x50], eax
mov ebx, edi
jmp 0x1000210e9
mov dword [rsp + 0x50], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100021263
mov rcx, qword gs:[0x30]
mov r15d, dword [rsp + 0x50]
mov r8, r15
mov rcx, qword [rcx + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, rax
mov qword [rsp + 0x38], rax
cmp rax, rdi
jne 0x100021139
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rax
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov r12d, dword [rsp + 0x44]
mov esi, edi
cmp r14d, edi
jbe 0x10002120c
mov r13, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rcx
xor r8d, r8d
mov edx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x8000001a
je 0x100021208
cmp eax, edi
jl 0x100021237
mov r8, qword [rsp + 0x38]
mov ecx, dword [r8 + 0xc]
add rcx, 2
mov eax, r12d
cmp rcx, rax
ja 0x1000211ee
mov rbx, qword [rsp + 0x78]
mov qword [r13], rbx
mov rax, r8
mov r8d, dword [rax + 0xc]
lea rdx, [rax + 0x10]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x38]
mov r11d, dword [rcx + 0xc]
add rbx, r11
mov word [rbx], di
add rbx, 2
mov qword [rsp + 0x78], rbx
mov eax, 0xfffffffe
sub eax, dword [rcx + 0xc]
add r12d, eax
inc esi
add r13, 8
cmp esi, r14d
jb 0x10002114e
jmp 0x10002120c
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
cmp esi, edi
je 0x10002124d
mov r12, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov qword [rax], r12
mov rax, qword [rsp + 0x58]
mov dword [rax], esi
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10002127a
mov r8, rdi
cmp r8, rdi
je 0x100021298
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, edi
jge 0x1000212bd
cmp r12, rdi
je 0x1000212bd
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x100021320
int3
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1000296e0
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret