Function at 0x1400382b8
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 r15
mov rbp, rsp
sub rsp, 0x78
mov rbx, qword [0x14008dfb0]
mov rcx, qword [rbx + 0x88]
xor r12d, r12d
test rcx, rcx
jne 0x1400382e7
mov eax, r12d
jmp 0x1400382fc
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 + 0x50], rax
cmp qword [rbx + 0x88], r12
je 0x140038312
test rax, rax
je 0x140038577
mov rbx, r12
mov qword [rbp + 0x38], rbx
mov dword [rbp + 0x40], r12d
lea rdx, str.Packages
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140038328
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.1400046e0
test eax, eax
js 0x14003856b
cmp qword [rbp + 0x50], r12
je 0x140038545
mov qword [rbp + 0x38], r12
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, qword [rbp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove rbx, qword [rbp + 0x38]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140038545
test rbx, rbx
je 0x140038545
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x40]
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, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140038545
mov r15d, r12d
cmp dword [rbp + 0x40], r12d
jbe 0x140038545
mov rsi, r12
mov rdi, r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400384a9
mov edx, dword [rbp + 0x38]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rdi, rax
xor ecx, ecx
test rax, rax
je 0x1400384ed
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [rbp + 0x38]
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x38]
mov r8, rdi
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400384a9
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rsi, rsi
je 0x14003852f
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x1400384fd
mov rdi, qword [rbp - 0x18]
jmp 0x140038511
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14003852f
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov rdi, r12
test eax, eax
js 0x14003852f
test rdi, rdi
je 0x14003852f
lea rdx, str.SkipLoading
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
inc r15d
cmp r15d, dword [rbp + 0x40]
jb 0x1400383fd
test rbx, rbx
je 0x140038554
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
add rsp, 0x78
pop r15
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400312f0
nop
jmp 0x140038576
nop
mov ecx, 0x8007000e
call fcn.1400312f0
int3