Function at 0x1800183b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov ebx, 0x104
mov rdi, rcx
mov qword [rax - 0x68], rcx
mov rcx, qword [0x180035a68]
mov r13, r8
mov esi, edx
xor ebp, ebp
mov r8, rbx
xor edx, edx
and dword [rax - 0x74], ebp
and qword [rax - 0x60], rbp
mov r15, r9
mov dword [rsp + 0x40], ebx
mov dword [rax - 0x6c], ebx
mov dword [rax - 0x70], ebx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x180018621
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800185e3
cmp qword [0x180035f18], rbp
je 0x1800185e3
mov rdx, qword [0x180035bf8]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1800185c3
mov r15d, dword [rsp + 0x44]
xor r13d, r13d
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r8, rbx
mov edx, r13d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov r14d, eax
cmp eax, 0xea
jne 0x180018525
mov rcx, qword [0x180035a68]
mov r8, r12
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x40]
mov rcx, qword [0x180035a68]
add eax, 0x104
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x40], eax
mov ebx, eax
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
mov r12, rax
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], ecx
mov rbx, rax
test r12, r12
je 0x18001859c
test rax, rax
jne 0x18001846f
test r14d, r14d
jne 0x18001859c
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x180018562
lea rax, [rsp + 0x44]
mov r9, r12
mov r8, rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180025984
mov r15d, dword [rsp + 0x44]
jmp 0x180018567
mov eax, 0x57
test eax, eax
jne 0x180018594
cmp rdi, qword [rsp + 0xc0]
je 0x180018587
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x58]
mov esi, r15d
mov ebp, 1
inc r13d
jmp 0x18001846f
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0xc8], esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x50]
call fcn.180029010
mov esi, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x50]
or ebp, eax
test r12, r12
je 0x1800185fa
mov rcx, qword [0x180035a68]
mov r8, r12
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180018611
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test ebp, ebp
je 0x180018621
mov qword [r13], rdi
test r15, r15
je 0x180018621
mov dword [r15], esi
mov eax, ebp
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret