Function at 0x10012884c
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 [0x100176150]
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 0x1001288e9
cmp eax, 0x80000005
jne 0x100128b9f
mov r14d, dword [rsp + 0xac]
cmp r14d, edi
jne 0x100128909
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
mov eax, dword [rsp + 0xb0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x10012891f
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x10012892a
mov ecx, esi
mov dword [rsp + 0x44], ecx
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100128952
imul rcx, r14
cmp rcx, rsi
ja 0x100128943
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x10012894e
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 0x10012897f
mov rax, r14
shl rax, 3
cmp rax, rsi
ja 0x100128970
mov dword [rsp + 0x40], eax
mov ebx, edi
jmp 0x10012897b
mov eax, esi
mov dword [rsp + 0x40], eax
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x10012899f
lea edx, [rax + rcx]
cmp edx, eax
jb 0x100128992
mov dword [rsp + 0x40], edx
mov ebx, edi
jmp 0x10012899b
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100128b95
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 0x1001289e8
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
lea rcx, [rax + r14*8]
mov qword [rsp + 0x78], rcx
mov eax, dword [rsp + 0xb0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x100128a08
mov dword [rsp + 0x50], eax
mov ebx, edi
jmp 0x100128a11
mov dword [rsp + 0x50], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100128b8b
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 0x100128a61
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rax
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
mov r12d, dword [rsp + 0x44]
mov esi, edi
cmp r14d, edi
jbe 0x100128b34
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 0x100128b30
cmp eax, edi
jl 0x100128b5f
mov r8, qword [rsp + 0x38]
mov ecx, dword [r8 + 0xc]
add rcx, 2
mov eax, r12d
cmp rcx, rax
ja 0x100128b16
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 0x100128a76
jmp 0x100128b34
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
cmp esi, edi
je 0x100128b75
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 0x100128ba2
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x100128ba2
mov r8, rdi
cmp r8, rdi
je 0x100128bc0
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 0x100128be5
cmp r12, rdi
je 0x100128be5
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 0x100128c48
int3
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.100130df0
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret