Function at 0x18005cc90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rbx, rcx
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rbp + 0x90], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1800e5808]
xor edx, edx
lea r8d, [r13 + 1]
lea rcx, [0x1800e57f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x18005cd42
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2
call qword [rax + 0x18]
test eax, eax
jns 0x18005cd49
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18005cd42
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x18005d334
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 7]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x18005cd93
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18005cd8a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x90]
jmp 0x18005cd37
lea rcx, str.Create
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
lea rcx, str.Win32_Process
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
lea rcx, str.Win32_ProcessStartup
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12, rax
mov qword [rsp + 0x68], r13
mov rcx, qword [rbp + 0x90]
mov r10, qword [rcx]
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
call qword [r10 + 0x30]
mov qword [rsp + 0x70], r13
mov rcx, qword [rbp + 0x90]
mov r10, qword [rcx]
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
call qword [r10 + 0x30]
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
xor edx, edx
call qword [rax + 0x78]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r14
call qword [rax + 0x98]
mov qword [rbp + 0x98], r13
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
lea r8, [rbp + 0x98]
xor edx, edx
call qword [rax + 0x78]
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], r13
mov byte [rbp - 0x80], r13b
or rdi, 0xffffffffffffffff
test rbx, rbx
je 0x18005ceb6
cmp byte [rbx], 0
jne 0x18005ce99
mov r8, r13
jmp 0x18005ceaa
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x18005cea0
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18000aaa0
mov eax, 8
mov word [rbp - 0x48], ax
lea rsi, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rsi, qword [rbp - 0x80]
lea ecx, [rax + 0x10]
call fcn.1800865a4
mov rbx, rax
mov qword [rbp + 0x88], rax
test rax, rax
je 0x18005cefc
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.180088800
mov qword [rbx], rax
jmp 0x18005ceff
mov rbx, r13
mov qword [rbp - 0x60], rbx
test rbx, rbx
jne 0x18005cf13
mov ecx, 0x8007000e
call fcn.1800887d0
nop
mov rax, qword [rbx]
mov qword [rbp - 0x40], rax
mov eax, edi
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x18005cf56
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005cf37
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005cf49
call fcn.180086cf0
mov qword [rbx + 8], r13
mov edx, 0x18
mov rcx, rbx
call fcn.180086cf0
mov qword [rbp - 0x60], r13
mov rcx, qword [rbp + 0x98]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x48]
xor r8d, r8d
lea rdx, str.CommandLine
call qword [rax + 0x28]
mov eax, 3
mov word [rbp - 0x18], ax
mov dword [rbp - 0x10], 4
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.CreateFlags
call qword [rax + 0x28]
mov eax, 0xd
mov word [rbp - 0x30], ax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp + 0x98]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.ProcessStartupInformation
call qword [rax + 0x28]
mov qword [rsp + 0x60], r13
mov rcx, qword [rbp + 0x90]
mov r10, qword [rcx]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, r14
mov rdx, r15
call qword [r10 + 0xc0]
test eax, eax
jns 0x18005d0be
lea rcx, [rbp - 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x98]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, r13d
jmp 0x18005d2cc
mov ecx, 0x18
call fcn.1800865a4
mov rbx, rax
mov qword [rbp + 0x88], rax
test rax, rax
je 0x18005d102
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, str.ReturnValue
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x18005d105
mov ecx, 0x8007000e
call fcn.1800887d0
int3
mov rbx, r13
mov qword [rbp - 0x58], rbx
test rbx, rbx
jne 0x18005d119
mov ecx, 0x8007000e
call fcn.1800887d0
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x20]
nop
mov eax, edi
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x18005d175
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005d156
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005d168
call fcn.180086cf0
mov qword [rbx + 8], r13
mov edx, 0x18
mov rcx, rbx
call fcn.180086cf0
mov qword [rbp - 0x58], r13
mov ecx, 0x18
call fcn.1800865a4
mov rbx, rax
mov qword [rbp + 0x88], rax
test rax, rax
je 0x18005d1bd
mov qword [rax + 8], r13
mov dword [rax + 0x10], 1
lea rcx, str.ProcessId
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x18005d1c0
mov ecx, 0x8007000e
call fcn.1800887d0
int3
mov rbx, r13
mov qword [rbp - 0x50], rbx
test rbx, rbx
jne 0x18005d1d4
mov ecx, 0x8007000e
call fcn.1800887d0
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 8]
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x20]
nop
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x18005d22e
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005d20f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005d221
call fcn.180086cf0
mov qword [rbx + 8], r13
mov edx, 0x18
mov rcx, rbx
call fcn.180086cf0
mov qword [rbp - 0x50], r13
movsx ebx, word [rbp + 0x10]
lea rcx, [rbp - 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 8]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x98]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
jb 0x18005d322
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, 0x1000
jb 0x18005d31d
test cl, 0x1f
je 0x18005d2f0
call fcn.1800aa758
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18005d2ff
call fcn.1800aa758
int3
sub rcx, rax
cmp rcx, 8
jae 0x18005d30e
call fcn.1800aa758
int3
cmp rcx, 0x27
jbe 0x18005d31a
call fcn.1800aa758
int3
mov rcx, rax
call fcn.180059b58
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], r13
mov byte [rbp - 0x80], 0
mov eax, ebx
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret