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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14000678a
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x14000678a
mov qword [rbp - 0x21], r15
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r9, [0x14000c6b0]
xor edx, edx
mov r8d, 1
lea rcx, [0x14000c6c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000678a
mov qword [rbp - 0x29], r15
mov rax, qword [rbp - 0x21]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.140009a60
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140006317
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14000686d
jmp 0x14000631a
mov rbx, r15
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140006878
lea rax, [rbp - 0x29]
mov qword [rsp + 0x40], rax
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]
mov rcx, qword [rbp - 0x21]
call rdi
mov edi, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140006394
mov rcx, qword [rbx]
test rcx, rcx
je 0x140006375
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006387
call fcn.140009cdc
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140009cdc
test edi, edi
js 0x140006859
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
mov edx, 0xa
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x14000684f
mov qword [rbp - 0x11], r15
mov rax, qword [rbp - 0x29]
mov rcx, qword [rax]
mov r14, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.140009a60
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140006423
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_DiskDrive
call fcn.14000a930
mov qword [rbx], rax
jmp 0x140006426
mov rbx, r15
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x140006878
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.140009a60
mov rdi, rax
mov qword [rbp - 0x31], rax
test rax, rax
je 0x140006474
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r15
mov dword [rdi + 0x10], 1
lea rcx, [0x14000cb30]
call fcn.14000a930
mov qword [rdi], rax
jmp 0x140006477
mov rdi, r15
mov qword [rbp - 0x31], rdi
test rdi, rdi
je 0x140006862
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x29]
call r14
mov esi, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400064e7
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400064c7
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400064d9
call fcn.140009cdc
mov qword [rdi + 8], r15
mov edx, 0x18
mov rcx, rdi
call fcn.140009cdc
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x140006526
mov rcx, qword [rbx]
test rcx, rcx
je 0x140006507
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006519
call fcn.140009cdc
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140009cdc
test esi, esi
js 0x14000684f
mov dword [rbp + 0xf], r15d
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14000676c
lea r12, str.DADY_HARDDISK
lea r14, str.QEMU_HARDDISK
nop dword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x19]
mov edx, 0xffffffff
mov r8d, 1
call qword [rax + 0x20]
cmp dword [rbp + 0xf], 0
je 0x14000676c
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, str.Model
call qword [rax + 0x20]
test eax, eax
js 0x14000683b
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov rdx, qword [rbp - 1]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400065d0
lea rcx, [rbp + 0x17]
call fcn.1400075b0
nop
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r11, [rbp + 0x17]
mov rdi, qword [rbp + 0x17]
mov rsi, qword [rbp + 0x2f]
cmp rsi, 7
cmova r11, rdi
mov rbx, qword [rbp + 0x27]
cmp rbx, 0xd
jb 0x140006689
lea r10, [rbx - 0xc]
lea r10, [r11 + r10*2]
mov rcx, r11
nop dword [rax + rax]
mov rax, r10
sub rax, rcx
sar rax, 1
mov rdx, r15
je 0x14000664a
cmp word [rcx], 0x44
je 0x140006647
cmp rax, 1
je 0x14000664a
dec rax
add rcx, 2
cmp word [rcx], 0x44
jne 0x140006634
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140006689
mov r8d, 0xd
mov rdx, r12
mov r9, rcx
sub r9, r12
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x1400067bf
add rdx, 2
sub r8, 1
jne 0x140006661
sub rcx, r11
sar rcx, 1
cmp rcx, 0xffffffffffffffff
jne 0x1400067d1
lea r10, [rbp + 0x17]
cmp rsi, 7
cmova r10, rdi
cmp rbx, 0xd
jb 0x140006719
lea r11, [rbx - 0xc]
lea r11, [r10 + r11*2]
mov rax, r10
nop word [rax + rax]
mov rcx, r11
sub rcx, rax
sar rcx, 1
mov rdx, r15
je 0x1400066da
cmp word [rax], 0x51
je 0x1400066d7
cmp rcx, 1
je 0x1400066da
dec rcx
add rax, 2
cmp word [rax], 0x51
jne 0x1400066c4
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140006719
mov r8d, 0xd
mov rdx, r14
mov r9, rax
sub r9, r14
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x1400067c8
add rdx, 2
sub r8, 1
jne 0x1400066f1
sub rax, r10
sar rax, 1
cmp rax, 0xffffffffffffffff
jne 0x1400067d1
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp rsi, 7
jbe 0x14000675f
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140006757
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006834
mov rcx, rdi
call fcn.140009cdc
mov rcx, qword [rbp - 0x11]
test rcx, rcx
jne 0x140006550
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140009a40
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
add rcx, 2
jmp 0x140006620
add rax, 2
jmp 0x1400066b0
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp rsi, 7
jbe 0x14000682d
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140006825
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006834
mov rcx, rdi
call fcn.140009cdc
mov al, 1
jmp 0x140006792
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x21]
jmp 0x140006784
mov ecx, 0x8007000e
call fcn.14000a920
nop
mov ecx, 0x8007000e
call fcn.14000a920
nop
mov ecx, 0x8007000e
call fcn.14000a920
int3