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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x148]
mov byte [ebp - 0xd], 0
push 0
push eax
call fcn.100747a0
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x100d4d6d
cmp eax, 0x80010119
jne 0x100d5037
lea eax, [ebp - 0x1c]
push eax
push 0x10121610
push 1
push 0
push 0x101216e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100d5037
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100d5037
mov eax, dword [ecx]
push 0xc
mov edi, dword [eax + 0xc]
call fcn.100703c6
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100d4ddc
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x100d50ef
jmp 0x100d4dde
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
test esi, esi
je 0x100d50f9
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi]
push dword [ebp - 0x1c]
call edi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100d4e5a
mov eax, dword [esi]
test eax, eax
je 0x100d4e38
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100d4e4f
push eax
call fcn.100703c1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.100703b3
add esp, 8
test edi, edi
js 0x100d5037
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100d5037
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x100d5037
mov eax, dword [ebp - 0x14]
push 0xc
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x18], eax
call fcn.100703c6
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x100d4ecb
push str.SELECT__FROM_Win32_ComputerSystem
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10071c30
mov dword [esi], eax
jmp 0x100d4ecd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], esi
test esi, esi
je 0x100d5103
mov dword [ebp - 4], 3
mov eax, dword [esi]
push 0xc
mov dword [ebp - 0x2c], eax
call fcn.100703c6
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x100d4f1e
push 0x10133fe4
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.10071c30
mov dword [edi], eax
jmp 0x100d4f20
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], edi
test edi, edi
je 0x100d510d
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
push 0
push 0x30
push dword [ebp - 0x2c]
push dword [edi]
push dword [ebp - 0x14]
call dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100d4f8c
mov ecx, dword [edi]
test ecx, ecx
je 0x100d4f6a
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x100d4f81
push eax
call fcn.100703c1
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.100703b3
add esp, 8
lea eax, [esi + 8]
mov dword [ebp - 4], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100d4fd6
mov eax, dword [esi]
test eax, eax
je 0x100d4fb4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100d4fcb
push eax
call fcn.100703c1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.100703b3
add esp, 8
cmp dword [ebp - 0x18], 0
jl 0x100d5037
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100d5044
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x28]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x24], 0
je 0x100d5033
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x48]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push 0x10133fe8
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x40]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100d5044
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100d5051
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100d505e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [ebp - 0xd], 0
je 0x100d50dc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x148]
push str.VirtualBox
push eax
call esi
test eax, eax
jne 0x100d509a
mov ebx, 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Virtual_Machine
lea eax, [ebp - 0x148]
push eax
call esi
test eax, eax
jne 0x100d50c4
mov ebx, 2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.VMware_Virtual_Platform
lea eax, [ebp - 0x148]
push eax
call esi
test eax, eax
mov ecx, 3
cmove ebx, ecx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.100719c0
push 0x8007000e
call fcn.100719c0
push 0x8007000e
call fcn.100719c0
push 0x8007000e
call fcn.100719c0
int3