Function at 0x180022994
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 [0x1800339a8]
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]
test rax, rax
mov r12, rax
je 0x180022c02
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180022bc4
cmp qword [0x180033e38], rbp
je 0x180022bc4
mov rdx, qword [0x180033b28]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x180022ba4
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]
cmp eax, 0xea
mov r14d, eax
jne 0x180022b05
mov rcx, qword [0x1800339a8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x40]
mov rcx, qword [0x1800339a8]
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 [0x1800339a8]
mov r8, rbx
xor edx, edx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test r12, r12
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], ecx
mov rbx, rax
je 0x180022b7d
test rax, rax
jne 0x180022a4f
test r14d, r14d
jne 0x180022b7d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
ja 0x180022b42
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.180023d08
mov r15d, dword [rsp + 0x44]
jmp 0x180022b47
mov eax, 0x57
test eax, eax
jne 0x180022b74
cmp rdi, qword [rsp + 0xc0]
je 0x180022b67
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x58]
mov esi, r15d
mov ebp, 1
add r13d, 1
jmp 0x180022a4f
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.180003088
mov esi, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x50]
or ebp, eax
test r12, r12
je 0x180022bdb
mov rcx, qword [0x1800339a8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180022bf2
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x180022c02
test r15, r15
mov qword [r13], rdi
je 0x180022c02
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