Function at 0x18000ce1c
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 [0x180039b48]
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 0x18000d089
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000d04b
cmp qword [0x180039dd0], rbp
je 0x18000d04b
mov rdx, qword [0x180039c88]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x18000d02b
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 0x18000cf8d
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x40]
mov rcx, qword [0x180039b48]
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 [0x180039b48]
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 0x18000d004
test rax, rax
jne 0x18000ced7
test r14d, r14d
jne 0x18000d004
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x18000cfca
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.18000cac0
mov r15d, dword [rsp + 0x44]
jmp 0x18000cfcf
mov eax, 0x57
test eax, eax
jne 0x18000cffc
cmp rdi, qword [rsp + 0xc0]
je 0x18000cfef
mov rcx, qword [0x180039b48]
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 0x18000ced7
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.18000c1f4
mov esi, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x50]
or ebp, eax
test r12, r12
je 0x18000d062
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x18000d079
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x18000d089
mov qword [r13], rdi
test r15, r15
je 0x18000d089
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