Function at 0x100019c88
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 [0x100029100]
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 0x100019d25
cmp eax, 0x80000005
jne 0x100019fdb
mov r14d, dword [rsp + 0xac]
cmp r14d, edi
jne 0x100019d45
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
mov eax, dword [rsp + 0xb0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x100019d5b
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100019d66
mov ecx, esi
mov dword [rsp + 0x44], ecx
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100019d8e
imul rcx, r14
cmp rcx, rsi
ja 0x100019d7f
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100019d8a
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 0x100019dbb
mov rax, r14
shl rax, 3
cmp rax, rsi
ja 0x100019dac
mov dword [rsp + 0x40], eax
mov ebx, edi
jmp 0x100019db7
mov eax, esi
mov dword [rsp + 0x40], eax
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100019ddb
lea edx, [rax + rcx]
cmp edx, eax
jb 0x100019dce
mov dword [rsp + 0x40], edx
mov ebx, edi
jmp 0x100019dd7
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100019fd1
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 0x100019e24
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
lea rcx, [rax + r14*8]
mov qword [rsp + 0x78], rcx
mov eax, dword [rsp + 0xb0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x100019e44
mov dword [rsp + 0x50], eax
mov ebx, edi
jmp 0x100019e4d
mov dword [rsp + 0x50], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100019fc7
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 0x100019e9d
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rax
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
mov r12d, dword [rsp + 0x44]
mov esi, edi
cmp r14d, edi
jbe 0x100019f70
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 0x100019f6c
cmp eax, edi
jl 0x100019f9b
mov r8, qword [rsp + 0x38]
mov ecx, dword [r8 + 0xc]
add rcx, 2
mov eax, r12d
cmp rcx, rax
ja 0x100019f52
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 0x100019eb2
jmp 0x100019f70
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
cmp esi, edi
je 0x100019fb1
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 0x100019fde
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100019fde
mov r8, rdi
cmp r8, rdi
je 0x100019ffc
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 0x10001a021
cmp r12, rdi
je 0x10001a021
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 0x10001a084
int3
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.100020910
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret