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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov r14, rcx
xor r15d, r15d
mov qword [rbp + 0x7f], r15
mov qword [rbp - 0x21], r15
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea r9, [0x140014870]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x140014860]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1400016b1
lea r8d, [r15 + 0x25]
lea rdx, str.Failed_to_create_IWbemLocator_object.
mov rcx, r14
call fcn.1400021f0
jmp 0x140001a86
mov ecx, 0x18
call fcn.140004190
mov rbx, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400016f2
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400016f5
mov ecx, 0x8007000e
call fcn.1400027c0
int3
mov rbx, r15
mov qword [rbp - 0x11], rbx
test rbx, rbx
jne 0x140001709
mov ecx, 0x8007000e
call fcn.1400027c0
nop
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
call qword [rax + 0x18]
mov edi, eax
lock dec dword [rbx + 0x10]
jne 0x14000176c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001752
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001764
call fcn.1400036d0
mov qword [rbx + 8], r15
mov rcx, rbx
call fcn.1400036d0
test edi, edi
jns 0x140001794
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8d, 0x23
lea rdx, str.Failed_to_connect_to_WMI_namespace.
mov rcx, r14
call fcn.1400021f0
jmp 0x140001a86
mov qword [rbp - 0x29], r15
mov ecx, 0x18
call fcn.140004190
mov rbx, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400017ca
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_OperatingSystem
call fcn.140002630
mov qword [rbx], rax
jmp 0x1400017cd
mov rbx, r15
mov qword [rbp + 0xf], rbx
test rbx, rbx
jne 0x1400017e1
mov ecx, 0x8007000e
call fcn.1400027c0
nop
mov ecx, 0x18
call fcn.140004190
mov rdi, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x140001813
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, [0x14001a56c]
call fcn.140002630
mov qword [rdi], rax
jmp 0x140001816
mov rdi, r15
mov qword [rbp - 9], rdi
test rdi, rdi
jne 0x14000182a
mov ecx, 0x8007000e
call fcn.1400027c0
nop
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov r8, qword [rbx]
mov rdx, qword [rdi]
call qword [rax + 0xa0]
mov esi, eax
lock dec dword [rdi + 0x10]
jne 0x140001885
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000186a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000187c
call fcn.1400036d0
mov qword [rdi + 8], r15
mov rcx, rdi
call fcn.1400036d0
nop
lock dec dword [rbx + 0x10]
jne 0x1400018b6
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000189c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400018ae
call fcn.1400036d0
mov qword [rbx + 8], r15
mov rcx, rbx
call fcn.1400036d0
test esi, esi
jns 0x1400018e8
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8d, 0x22
lea rdx, str.Query_for_operating_system_failed.
mov rcx, r14
call fcn.1400021f0
jmp 0x140001a86
mov qword [rbp - 0x19], r15
mov dword [rbp + 0x6f], r15d
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140001a68
mov rax, qword [rcx]
lea rdx, [rbp + 0x6f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x19]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp + 0x6f], 0
je 0x140001a68
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x17]
xor r8d, r8d
lea rdx, str.Name
call qword [rax + 0x20]
test eax, eax
js 0x140001a43
mov r8d, 0x12
lea rdx, str.Operating_System:
mov rcx, r14
call fcn.140001f70
mov rdi, qword [rbp + 0x1f]
mov ecx, 0x18
call fcn.140004190
mov rbx, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400019a3
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400019a6
test rdi, rdi
jne 0x140001a52
jmp 0x1400019a6
mov rbx, r15
mov qword [rbp + 7], rbx
test rbx, rbx
je 0x140001a5d
cmp qword [rbx + 8], 0
jne 0x1400019c6
mov rcx, qword [rbx]
call fcn.140002510
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
cmp byte [rdx], 0
jne 0x1400019d4
mov r8, r15
jmp 0x1400019ea
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400019e0
mov rcx, r14
call fcn.140001f70
nop
lock dec dword [rbx + 0x10]
jne 0x140001a24
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001a0a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001a1c
call fcn.1400036d0
mov qword [rbx + 8], r15
mov rcx, rbx
call fcn.1400036d0
mov r8d, 1
lea rdx, [0x14001a5bc]
mov rcx, r14
call fcn.140001f70
lea rcx, [rbp + 0x17]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400018f0
mov ecx, 0x8007000e
call fcn.1400027c0
nop
mov ecx, 0x8007000e
call fcn.1400027c0
int3
mov rcx, qword [rbp - 0x21]
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 - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret