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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rbp - 0x51], r12
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r9, [0x140023118]
lea esi, [r12 + 1]
mov r8d, esi
xor edx, edx
lea rcx, [0x140023108]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rbx, qword [rbp - 0x51]
test eax, eax
js 0x140003f6d
test rbx, rbx
je 0x140003f6d
mov qword [rbp + 0x77], r12
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rbp + 0x17], rax
test rax, rax
je 0x140003fb3
mov rax, qword [rbx]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x18]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x140003f55
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140003f59
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
lea eax, [rsi + 2]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 9]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140003f55
lea rcx, str.Create
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
lea rcx, str.Win32_Process
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rbp - 0x41], r12
mov rcx, qword [rbp + 0x77]
mov r10, qword [rcx]
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [r10 + 0x30]
test eax, eax
jns 0x140003d88
mov sil, r12b
jmp 0x140003f40
mov qword [rbp - 0x49], r12
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x98]
test eax, eax
jns 0x140003db4
mov sil, r12b
jmp 0x140003f30
mov qword [rbp - 0x59], r12
mov rcx, qword [rbp - 0x49]
mov rax, qword [rcx]
lea r8, [rbp - 0x59]
xor edx, edx
call qword [rax + 0x78]
test eax, eax
jns 0x140003dd4
mov sil, r12b
jmp 0x140003f20
mov r13d, 8
cmp qword [r14 + 0x18], r13
jb 0x140003de3
mov r14, qword [r14]
mov word [rbp - 0x39], r12w
lea rcx, [rbp - 0x39]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x140003fbe
mov word [rbp - 0x39], r13w
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x31], rax
test rax, rax
jne 0x140003e1a
test r14, r14
jne 0x140003f9c
mov rcx, qword [rbp - 0x59]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r12d
lea r9, [rbp - 0x39]
xor r8d, r8d
lea rdx, str.CommandLine
call qword [rax + 0x28]
test eax, eax
jns 0x140003e43
mov sil, r12b
jmp 0x140003f15
mov qword [rbp + 0x7f], r12
mov rcx, qword [rbp + 0x77]
mov r10, qword [rcx]
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
call qword [r10 + 0xc0]
test eax, eax
js 0x140003f02
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x21]
xor r8d, r8d
lea rdx, str.ReturnValue
call qword [rax + 0x20]
test eax, eax
js 0x140003f02
cmp dword [rbp - 0x19], r12d
jne 0x140003f02
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, str.ProcessId
call qword [rax + 0x20]
test eax, eax
js 0x140003f02
mov rax, qword [rbp - 1]
test eax, eax
je 0x140003f02
test r15, r15
je 0x140003f05
mov dword [r15], eax
jmp 0x140003f05
mov sil, r12b
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140003f15
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x39]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140003f30
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140003f40
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140003f4f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x77]
jmp 0x140003f5c
mov rcx, qword [rbp + 0x77]
mov sil, r12b
test rcx, rcx
je 0x140003f67
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rbp - 0x51]
jmp 0x140003f70
mov sil, r12b
test rbx, rbx
je 0x140003f7e
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov al, sil
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xa
mov word [rbp - 0x39], ax
mov ecx, 0x8007000e
mov dword [rbp - 0x31], ecx
call fcn.140006934
nop
mov ecx, 0x8007000e
call fcn.140006934
nop
mov ecx, eax
call fcn.140006934
int3