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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
xor esi, esi
mov qword [rbp + 0x77], rsi
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
lea r9, [0x140043bf0]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x140043c00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140012b40
mov qword [rbp + 0x6f], rsi
mov rax, qword [rbp + 0x77]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
lea rdx, [0x14004c988]
lea rcx, [rbp + 0xf]
call fcn.140012d64
nop
mov rcx, rax
call fcn.140012db0
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x77]
mov rax, rbx
call qword [0x140043528]
mov ebx, eax
lea rcx, [rbp + 0xf]
call fcn.140012d04
test ebx, ebx
js 0x140012b2f
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
lea eax, [rsi + 3]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0xa]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140012b1e
mov qword [rbp + 7], rsi
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0xa0]
lea rdx, str.SELECT__FROM_Win32_OperatingSystem
lea rcx, [rbp + 0x17]
call fcn.140012c10
nop
mov rcx, rax
call fcn.140012db0
mov rbx, rax
lea rdx, [0x14004c9c4]
lea rcx, [rbp + 0xf]
call fcn.140012c10
nop
mov rcx, rax
call fcn.140012db0
lea rcx, [rbp + 7]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 0x30]
mov r8, rbx
mov rdx, rax
mov rcx, qword [rbp + 0x6f]
mov rax, rdi
call qword [0x140043528]
mov ebx, eax
lea rcx, [rbp + 0xf]
call fcn.140012d04
nop
lea rcx, [rbp + 0x17]
call fcn.140012d04
test ebx, ebx
js 0x140012b1e
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140012b1e
mov qword [rbp + 0x7f], rsi
mov dword [rbp + 0x67], esi
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x7f]
lea r8d, [rsi + 1]
or edx, 0xffffffff
mov rax, qword [rax + 0x20]
call qword [0x140043528]
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140012ae6
cmp dword [rbp + 0x67], esi
jbe 0x140012ae6
mov rax, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x1f]
xor r8d, r8d
lea rdx, [0x14004c9c8]
mov rax, qword [rax + 0x20]
call qword [0x140043528]
mov rcx, qword [rbp + 0x27]
call fcn.140012bd8
test rax, rax
setne sil
lea rcx, [rbp + 0x1f]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140043528]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140043528]
mov rcx, qword [rbp + 0x77]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140043528]
mov rcx, qword [rbp + 7]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140043528]
mov al, sil
jmp 0x140012b42
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140043528]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140043528]
xor al, al
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret