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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rbx, qword [0x140091788]
mov rcx, qword [rbx + 0x88]
xor r13d, r13d
test rcx, rcx
jne 0x140018b06
mov eax, r13d
jmp 0x140018b1b
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rbp + 0x7f], rax
cmp qword [rbx + 0x88], r13
je 0x140018b31
test rax, rax
je 0x140018dbb
mov rbx, r13
mov qword [rbp - 1], rbx
mov dword [rbp + 0x6f], r13d
lea rdx, str.Packages
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140018b47
mov r8d, eax
lea rcx, [rbp + 0x7f]
call fcn.1400148dc
test eax, eax
js 0x140018db3
cmp qword [rbp + 0x7f], r13
je 0x140018d75
mov qword [rbp + 0x67], r13
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove rbx, qword [rbp + 0x67]
mov qword [rbp - 1], rbx
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140018d75
test rbx, rbx
je 0x140018d75
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140018d75
mov r12d, r13d
cmp dword [rbp + 0x6f], r13d
jbe 0x140018d75
mov qword [rbp + 0x17], r13
mov r14, r13
mov qword [rbp + 7], r13
mov rdi, r13
mov qword [rbp + 0xf], r13
mov rsi, r13
mov qword [rbp - 9], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140018ce4
mov edx, dword [rbp + 0x67]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rsi, rax
test rax, rax
je 0x140018da0
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbp - 9], rsi
inc dword [rbp + 0x67]
mov dword [rbp + 0x77], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x67]
mov r8, rsi
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140018ce4
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
mov qword [rbp + 7], rax
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14, r14
je 0x140018d50
mov qword [rbp - 9], r13
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove rdi, qword [rbp - 9]
mov qword [rbp + 0xf], rdi
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140018d50
test rdi, rdi
je 0x140018d50
lea rdx, str.SkipLoading
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
test rdi, rdi
je 0x140018d5f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
inc r12d
cmp r12d, dword [rbp + 0x6f]
jb 0x140018c21
test rbx, rbx
je 0x140018d84
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
add rsp, 0x90
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140018d50
mov ecx, eax
call fcn.140002fa4
nop
mov ecx, 0x8007000e
call fcn.140002fa4
int3