Function at 0x100127e44
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 [0x100175150]
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 0x100127ee1
cmp eax, 0x80000005
jne 0x100128197
mov r14d, dword [rsp + 0xac]
cmp r14d, edi
jne 0x100127f01
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
mov eax, dword [rsp + 0xb0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x100127f17
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100127f22
mov ecx, esi
mov dword [rsp + 0x44], ecx
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100127f4a
imul rcx, r14
cmp rcx, rsi
ja 0x100127f3b
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100127f46
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 0x100127f77
mov rax, r14
shl rax, 3
cmp rax, rsi
ja 0x100127f68
mov dword [rsp + 0x40], eax
mov ebx, edi
jmp 0x100127f73
mov eax, esi
mov dword [rsp + 0x40], eax
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100127f97
lea edx, [rax + rcx]
cmp edx, eax
jb 0x100127f8a
mov dword [rsp + 0x40], edx
mov ebx, edi
jmp 0x100127f93
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x10012818d
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 0x100127fe0
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
lea rcx, [rax + r14*8]
mov qword [rsp + 0x78], rcx
mov eax, dword [rsp + 0xb0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x100128000
mov dword [rsp + 0x50], eax
mov ebx, edi
jmp 0x100128009
mov dword [rsp + 0x50], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100128183
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 0x100128059
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rax
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
mov r12d, dword [rsp + 0x44]
mov esi, edi
cmp r14d, edi
jbe 0x10012812c
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 0x100128128
cmp eax, edi
jl 0x100128157
mov r8, qword [rsp + 0x38]
mov ecx, dword [r8 + 0xc]
add rcx, 2
mov eax, r12d
cmp rcx, rax
ja 0x10012810e
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 0x10012806e
jmp 0x10012812c
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
cmp esi, edi
je 0x10012816d
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 0x10012819a
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012819a
mov r8, rdi
cmp r8, rdi
je 0x1001281b8
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 0x1001281dd
cmp r12, rdi
je 0x1001281dd
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 0x100128240
int3
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1001303c0
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret