Function at 0x100128234
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 0x1001282d1
cmp eax, 0x80000005
jne 0x100128587
mov r14d, dword [rsp + 0xac]
cmp r14d, edi
jne 0x1001282f1
mov ebx, edi
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
mov eax, dword [rsp + 0xb0]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x100128307
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100128312
mov ecx, esi
mov dword [rsp + 0x44], ecx
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x10012833a
imul rcx, r14
cmp rcx, rsi
ja 0x10012832b
mov dword [rsp + 0x44], ecx
mov ebx, edi
jmp 0x100128336
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 0x100128367
mov rax, r14
shl rax, 3
cmp rax, rsi
ja 0x100128358
mov dword [rsp + 0x40], eax
mov ebx, edi
jmp 0x100128363
mov eax, esi
mov dword [rsp + 0x40], eax
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100128387
lea edx, [rax + rcx]
cmp edx, eax
jb 0x10012837a
mov dword [rsp + 0x40], edx
mov ebx, edi
jmp 0x100128383
mov dword [rsp + 0x40], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x10012857d
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 0x1001283d0
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
lea rcx, [rax + r14*8]
mov qword [rsp + 0x78], rcx
mov eax, dword [rsp + 0xb0]
add eax, 0x1a
cmp eax, 0x1a
jb 0x1001283f0
mov dword [rsp + 0x50], eax
mov ebx, edi
jmp 0x1001283f9
mov dword [rsp + 0x50], esi
mov ebx, 0xc0000095
mov dword [rsp + 0x30], ebx
cmp ebx, edi
jl 0x100128573
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 0x100128449
mov ebx, 0xc000009a
mov dword [rsp + 0x30], ebx
mov r8, rax
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
mov r12d, dword [rsp + 0x44]
mov esi, edi
cmp r14d, edi
jbe 0x10012851c
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 0x100128518
cmp eax, edi
jl 0x100128547
mov r8, qword [rsp + 0x38]
mov ecx, dword [r8 + 0xc]
add rcx, 2
mov eax, r12d
cmp rcx, rax
ja 0x1001284fe
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 0x10012845e
jmp 0x10012851c
mov ebx, 0xc0000023
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
cmp esi, edi
je 0x10012855d
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 0x10012858a
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
mov esi, 0xffffffff
mov r12, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
mov r8, rdi
mov r14d, dword [rsp + 0x34]
jmp 0x10012858a
mov r8, rdi
cmp r8, rdi
je 0x1001285a8
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 0x1001285cd
cmp r12, rdi
je 0x1001285cd
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 0x100128630
int3
mov eax, ebx
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.100130830
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret