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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x18000208a
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x18000205c
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180002057
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002660
mov rcx, r8
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor ebx, ebx
mov qword [rdi + 0x10], rbx
xor al, al
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ebx, ebx
mov r14d, 0xffffffff
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov dword [rsp + 0x38], ebx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, r14d
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea rax, [rbp + 0x7f]
mov qword [rbp + 0x7f], rbx
lea r9, [0x180031528]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [0x1800315f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180002130
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x18000205e
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180002126
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002660
mov rcx, r8
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x18000205e
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x77], rbx
mov rcx, qword [rax]
mov r15, qword [rcx + 0x18]
mov ecx, 0x18
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x180002666
lea rcx, str.ROOTCIMV2
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x180002666
lea rcx, [rbp + 0x77]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x7f]
mov rdx, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call r15
mov r15d, eax
mov ecx, r14d
lock xadd dword [rsi + 0x10], ecx
cmp ecx, 1
jne 0x1800021e7
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800021c7
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800021da
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsi + 8], rbx
mov edx, 0x18
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
test r15d, r15d
jns 0x180002201
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1800020e8
mov rcx, qword [rbp + 0x77]
xor r9d, r9d
mov dword [rsp + 0x38], ebx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x18000223e
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1800021ec
lea rcx, str.Create
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.Win32_Process
mov r12, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp + 0x77]
xor r9d, r9d
mov r13, rax
mov qword [rbp - 0x71], rbx
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
mov rdx, r13
call qword [r10 + 0x30]
mov rcx, qword [rbp - 0x71]
lea r9, [rbp - 0x69]
mov qword [rbp - 0x69], rbx
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov r10, qword [rcx]
call qword [r10 + 0x98]
mov rcx, qword [rbp - 0x69]
lea r8, [rbp - 0x79]
mov qword [rbp - 0x79], rbx
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x78]
cmp qword [rdi + 0x18], 8
mov eax, 8
mov word [rbp - 0x59], ax
mov rax, rdi
jb 0x1800022cf
mov rax, qword [rdi]
mov rcx, qword [rbp - 0x79]
lea r9, [rbp - 0x59]
mov qword [rbp - 0x51], rax
lea rdx, str.CommandLine
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rax, qword [rbp + 0x77]
mov qword [rbp - 0x61], rbx
mov rcx, qword [rax]
mov r15, qword [rcx + 0x30]
mov ecx, 0x18
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x180002666
lea rcx, str.Win32_ProcessStartup
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x180002666
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
mov rdx, rax
call r15
mov eax, r14d
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x180002395
mov rcx, qword [rsi]
test rcx, rcx
je 0x180002375
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180002388
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsi + 8], rbx
mov edx, 0x18
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbp - 0x61]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rbx
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x78]
mov eax, 8
mov word [rbp - 0x41], ax
lea ecx, [rax + 0x10]
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x180002666
lea rcx, [0x180034ea0]
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x180002666
mov qword [rbp - 0x39], rax
mov eax, r14d
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x18000242f
mov rcx, qword [rsi]
test rcx, rcx
je 0x18000240f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180002422
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsi + 8], rbx
mov edx, 0x18
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x58]
lea r9, [rbp - 0x41]
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea rdx, str.WinstationDesktop
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x58]
lea r9, [rbp - 0x29]
mov eax, 0x11
mov byte [rbp - 0x21], bl
mov word [rbp - 0x29], ax
lea rdx, str.ShowWindow
xor r8d, r8d
mov dword [rsp + 0x20], ebx
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp - 0x79]
lea r9, [rbp - 0x11]
mov eax, 0xd
mov dword [rsp + 0x20], ebx
mov word [rbp - 0x11], ax
lea rdx, str.ProcessStartupInformation
mov rax, qword [rsp + 0x58]
xor r8d, r8d
mov qword [rbp - 9], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbp + 0x77]
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov r8, r12
mov qword [rsp + 0x50], rbx
mov rdx, r13
mov rax, qword [rcx]
mov r10, qword [rax + 0xc0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x79]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call r10
test eax, eax
jns 0x18000252d
lea rcx, [rbp - 0x59]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1800021ec
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov r15, qword [rcx + 0x20]
mov ecx, 0x18
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x180002666
lea rcx, str.ReturnValue
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
je 0x180002666
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x20], rbx
call r15
lock xadd dword [rsi + 0x10], r14d
cmp r14d, 1
jne 0x1800025cd
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800025ad
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800025c0
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsi + 8], rbx
mov edx, 0x18
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x71]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x69]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x18000264a
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x180002645
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002660
mov rcx, r8
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rdi + 0x10], rbx
mov al, 1
mov qword [rdi + 0x18], 7
mov word [rdi], bx
jmp 0x18000206f
call fcn.18002b620
int3
mov ecx, 0x8007000e
call fcn.1800059b0
int3