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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r13b, r13b
xor bl, bl
xor r14d, r14d
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x58], r14
mov r15d, r14d
cmp dword [0x7ff66a896070], r14d
je 0x7ff66a8457ca
lea rax, [0x7ff66a896078]
jmp 0x7ff66a845ca3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
movzx r12d, bl
mov ebx, 1
test eax, eax
cmovns r12d, ebx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x7ff66a878498]
mov r8d, ebx
xor edx, edx
lea rcx, [0x7ff66a878568]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x7ff66a845c0d
lea ecx, [rbx + 0x17]
call fcn.7ff66a848a1c
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x7ff66a845852
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], r14
mov dword [rsi + 0x10], ebx
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
jne 0x7ff66a845855
mov ecx, 0x8007000e
call fcn.7ff66a849cf0
int3
mov rsi, r14
mov qword [rbp - 0x80], rsi
test rsi, rsi
jne 0x7ff66a845869
mov ecx, 0x8007000e
call fcn.7ff66a849cf0
nop
mov rdi, qword [rbp - 0x50]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rdi
call rbx
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x7ff66a8458e7
mov rcx, qword [rsi]
test rcx, rcx
je 0x7ff66a8458c8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r14
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x7ff66a8458da
call fcn.7ff66a84903c
mov qword [rsi + 8], r14
mov edx, 0x18
mov rcx, rsi
call fcn.7ff66a84903c
test ebx, ebx
js 0x7ff66a845c0d
mov ecx, 0x18
call fcn.7ff66a848a1c
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x7ff66a84592b
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], r14
mov dword [rsi + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_ComputerSystemProduct
call fcn.7ff66a849d20
mov qword [rsi], rax
jmp 0x7ff66a84592e
mov rsi, r14
mov qword [rbp - 0x78], rsi
test rsi, rsi
jne 0x7ff66a845942
mov ecx, 0x8007000e
call fcn.7ff66a849cf0
nop
mov ecx, 0x18
call fcn.7ff66a848a1c
mov r14, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x7ff66a84597f
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 8], rax
mov dword [r14 + 0x10], 1
lea rcx, [0x7ff66a888414]
call fcn.7ff66a849d20
mov qword [r14], rax
jmp 0x7ff66a845982
xor r14d, r14d
mov qword [rbp - 0x70], r14
test r14, r14
jne 0x7ff66a845996
mov ecx, 0x8007000e
call fcn.7ff66a849cf0
nop
mov rdi, qword [rbp - 0x58]
mov rax, qword [rdi]
mov rbx, qword [rax + 0xa0]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, gethostbyname
mov r8, qword [rsi]
mov rdx, qword [r14]
mov rcx, rdi
call rbx
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
cmp eax, 1
jne 0x7ff66a845a19
mov rcx, qword [r14]
test rcx, rcx
je 0x7ff66a8459f5
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14], 0
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x7ff66a845a0b
call fcn.7ff66a84903c
mov qword [r14 + 8], 0
mov edx, 0x18
mov rcx, r14
call fcn.7ff66a84903c
nop
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x7ff66a845a5e
mov rcx, qword [rsi]
test rcx, rcx
je 0x7ff66a845a3b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], 0
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x7ff66a845a51
call fcn.7ff66a84903c
mov qword [rsi + 8], 0
mov edx, 0x18
mov rcx, rsi
call fcn.7ff66a84903c
xor r14d, r14d
test ebx, ebx
js 0x7ff66a845c0d
mov dword [rbp - 0x30], r14d
nop dword [rax]
mov rdi, qword [rbp - 0x60]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
mov r8d, 1
or edx, 0xffffffff
mov rcx, rdi
call rbx
cmp dword [rbp - 0x30], r14d
je 0x7ff66a845bd0
mov rdi, qword [rbp - 0x68]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x48]
xor r8d, r8d
lea rdx, [0x7ff66a888418]
mov rcx, rdi
call rbx
test eax, eax
js 0x7ff66a845a70
cmp word [rbp - 0x48], 8
jne 0x7ff66a845c0d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov word [rbp + 0x28], r14w
mov rax, qword [rbp - 0x40]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp + 0x10], xmm1
movsd xmm0, qword [rax + 0x40]
movsd qword [rbp + 0x20], xmm0
xor eax, eax
mov qword [0x7ff66a896078], rax
mov qword [0x7ff66a896080], rax
lea rax, [0x7ff66a896087]
mov qword [rsp + 0x60], rax
lea rax, [0x7ff66a896086]
mov qword [rsp + 0x58], rax
lea rax, [0x7ff66a896085]
mov qword [rsp + 0x50], rax
lea rax, [0x7ff66a896084]
mov qword [rsp + 0x48], rax
lea rax, [0x7ff66a896083]
mov qword [rsp + 0x40], rax
lea rax, [0x7ff66a896082]
mov qword [rsp + 0x38], rax
lea rax, [0x7ff66a896081]
mov qword [rsp + 0x30], rax
lea rax, [0x7ff66a896080]
mov qword [rsp + 0x28], rax
lea rax, [0x7ff66a89607e]
mov qword [rsp + 0x20], rax
lea r9, [0x7ff66a89607c]
lea r8, [0x7ff66a896078]
lea rdx, str._08lX__04hX__04hX__02hhX_02hhX__02hhX_02hhX_02hhX_02hhX_02hhX_02hhX
lea rcx, [rbp - 0x20]
call fcn.7ff66a845e10
cmp eax, 0xb
sete r13b
lea rcx, [rbp - 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x7ff66a845bf5
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
mov rcx, rdi
call rbx
mov rdi, r14
mov qword [rbp - 0x68], r14
test r13b, r13b
je 0x7ff66a845c11
mov dword [0x7ff66a896070], 1
lea r15, [0x7ff66a896078]
jmp 0x7ff66a845c11
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x7ff66a845c2f
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
mov rcx, rdi
call rbx
mov qword [rbp - 0x68], r14
mov rdi, qword [rbp - 0x60]
test rdi, rdi
je 0x7ff66a845c51
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
mov rcx, rdi
call rbx
mov qword [rbp - 0x60], r14
mov rdi, qword [rbp - 0x58]
test rdi, rdi
je 0x7ff66a845c73
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
mov rcx, rdi
call rbx
mov qword [rbp - 0x58], r14
mov rdi, qword [rbp - 0x50]
test rdi, rdi
je 0x7ff66a845c95
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
mov rcx, rdi
call rbx
mov qword [rbp - 0x50], r14
test r12b, r12b
je 0x7ff66a845ca0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, r15
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.7ff66a8489f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret