Function at 0x14018e300
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1405f98c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r8
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14018e347
mov qword [rdi], rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov qword [rsp + 0x20], rdi
lea r9, [0x140578be0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14052b600]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp - 0x19], eax
test eax, eax
jns 0x14018e3a8
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, str.wmi:_failed_to_create_IWbemLocator_object._err:_
lea r8, str.WMI_PROC_UTILS
call fcn.1400d1eb0
lea r9, str.wmi:_failed_to_setup_locator...
lea r8, str.WMI_PROC_UTILS
mov edx, 4
call fcn.1400c6f10
xor al, al
jmp 0x14018e819
mov r14, qword [rdi]
mov rax, qword [r14]
mov r15, qword [rax + 0x18]
lea rsi, [rdi + 8]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14018e3c8
mov qword [rsi], rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rbx
mov r8d, 0xa
lea rdx, str.ROOTCIMV2
lea rcx, [rbp - 9]
call fcn.1400c71d0
nop
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
mov edx, dword [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
mov qword [rbp - 0x19], rax
mov qword [rsp + 0x40], rsi
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call r15
mov r14d, eax
mov dword [rbp - 0x19], eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x14018e489
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018e484
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14018e846
call fcn.1403e3650
xor r15d, r15d
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r15w
test r14d, r14d
jns 0x14018e4ca
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, str.wmi:_failed_to_connect_to_server._err:_
lea r8, str.WMI_PROC_UTILS
call fcn.1400d1eb0
lea r9, str.wmi:_failed_to_connect_to_server...
jmp 0x14018e390
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rbp - 0x19], eax
test eax, eax
jns 0x14018e526
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, str.wmi:_could_not_set_proxy_blanket._err:_
lea r8, str.WMI_PROC_UTILS
call fcn.1400d1eb0
lea r9, str.wmi:_failed_set_security_level...
jmp 0x14018e390
lea rbx, [rdi + 0x18]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14018e53c
mov qword [rbx], r15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14018e54e
mov qword [rbx], r15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov qword [rsp + 0x20], rbx
lea r9, [0x140578c98]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x14052b610]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp - 0x19], eax
test eax, eax
jns 0x14018e59c
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, str.wmi:_could_not_create_instance._err:_
lea r8, str.WMI_PROC_UTILS
call fcn.1400d1eb0
lea r9, str.wmi:_failed_create_apartment_for_start_process...
jmp 0x14018e390
mov ecx, 0x50
call fcn.1403e3660
mov rsi, rax
mov qword [rbp - 0x19], rax
mov dword [rax + 8], r15d
lea rax, vtable.ps::WmiProcessStartEventSink.0
mov qword [rsi], rax
lea r14, [rsi + 0x10]
mov qword [rbp - 0x11], r14
mov qword [r14 + 0x38], r15
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14018e5dc
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [r14 + 0x38], rax
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rsi
test rcx, rcx
je 0x14018e5f4
mov edx, 8
call fcn.1403e3650
nop
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14018e608
mov qword [rdi + 0x20], r15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea r9, [rdi + 0x20]
mov r8, rbx
lea rdx, [rdi + 0x10]
call fcn.14018e060
test al, al
jne 0x14018e628
lea r9, str.wmi:_failed_create_sink_for_start_process...
jmp 0x14018e390
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov r8d, 0x2e
lea rdx, str.SELECT__FROM_Win32_ProcessStartTrace_WITHIN_1
lea rcx, [rbp - 9]
call fcn.1400c71d0
nop
lea r8, [rdi + 0x20]
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.14018e140
movzx ebx, al
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x14018e6a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018e69c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14018e84c
call fcn.1403e3650
test bl, bl
jne 0x14018e6b1
lea r9, str.wmi:_failed_to_setup_notification_for_start_process...
jmp 0x14018e390
lea rbx, [rdi + 0x30]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14018e6c7
mov qword [rbx], r15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14018e6d9
mov qword [rbx], r15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov qword [rsp + 0x20], rbx
lea r9, [0x140578c98]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x14052b610]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp - 0x19], eax
test eax, eax
jns 0x14018e727
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, str.wmi:_could_not_create_instance._err:_
lea r8, str.WMI_PROC_UTILS
call fcn.1400d1eb0
lea r9, str.wmi:_failed_create_apartment_for_stop_process...
jmp 0x14018e390
mov ecx, 0x50
call fcn.1403e3660
mov rsi, rax
mov qword [rbp - 0x11], rax
mov dword [rax + 8], r15d
lea rax, vtable.ps::WmiProcessStopEventSink.0
mov qword [rsi], rax
lea r14, [rsi + 0x10]
mov qword [rbp - 0x19], r14
mov qword [r14 + 0x38], r15
mov rcx, qword [r12 + 0x38]
test rcx, rcx
je 0x14018e768
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [r14 + 0x38], rax
mov rcx, qword [rdi + 0x28]
mov qword [rdi + 0x28], rsi
test rcx, rcx
je 0x14018e780
mov edx, 8
call fcn.1403e3650
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14018e794
mov qword [rdi + 0x38], r15
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea r9, [rdi + 0x38]
mov r8, rbx
lea rdx, [rdi + 0x28]
call fcn.14018e060
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov r8d, 0x2d
lea rdx, str.SELECT__FROM_Win32_ProcessStopTrace_WITHIN_1
lea rcx, [rbp - 9]
call fcn.1400c71d0
nop
lea r8, [rdi + 0x38]
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.14018e140
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x14018e817
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018e812
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14018e840
call fcn.1403e3650
mov al, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1403e3630
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1403fd768
int3
call fcn.1403fd768
int3
call fcn.1403fd768
int3