Function at 0x180013120
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180056148]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r12d, r12d
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x64], r12d
mov r15, rdx
mov dword [rsp + 0x68], r12d
mov rsi, rcx
mov dword [rsp + 0x60], r12d
lea rbx, [rbp - 0x80]
test rdx, rdx
je 0x180013194
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180013381
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], r12
xor r9d, r9d
mov qword [rsp + 0x48], r12
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x2e0], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jne 0x180013367
mov ecx, dword [rsp + 0x64]
inc ecx
mov qword [rsp + 0x2e8], r14
mov r14d, dword [rsp + 0x68]
inc r14d
mov dword [rsp + 0x64], ecx
cmp ecx, r14d
mov dword [rsp + 0x68], r14d
cmovae r14d, ecx
cmp r14d, 0x104
jbe 0x18001323f
mov ebx, r14d
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x18001323f
lea edi, [rax + 8]
jmp 0x180013342
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800132ba
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call fcn.180013120
mov edi, eax
test eax, eax
jne 0x180013342
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180013271
mov rcx, rsi
test r15, r15
je 0x1800132d2
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x180013342
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov r8, rbx
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180013342
nop
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test eax, eax
jne 0x180013342
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov r8, rbx
mov qword [rsp + 0x28], r12
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x180013300
mov r14, qword [rsp + 0x2e8]
lea rax, [rbp - 0x80]
cmp rbx, rax
je 0x180013367
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x180013377
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800151e0
add rsp, 0x2a0
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret