Function at 0x408410
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x408478
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x408478
push 0x161
push str.WMI_Vm_Detection_Mechanism
push 9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x40847f
mov dword [ebp - 0x1c], 9
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x14], 0
jge 0x4084eb
cmp dword [ebp - 0x14], 0x80010106
je 0x4084eb
cmp dword [ebp + 0xc], 0
je 0x4084d2
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x4084d2
push 0x168
push str.WMI_CoInitializeEx_failure
push 9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x20], eax
jmp 0x4084d9
mov dword [ebp - 0x20], 9
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
jmp 0x4088c4
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x408552
cmp dword [ebp - 0x14], 0x80010119
je 0x408552
cmp dword [ebp + 0xc], 0
je 0x408546
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x408546
push 0x171
push str.WMI_CoInitializeSecurity_failure
push 9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x40854d
mov dword [ebp - 0x24], 9
jmp 0x408808
lea edx, [ebp - 0x18]
push edx
push 0x6fa0c4
push 1
push 0
push 0x6fa0b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4085b0
cmp dword [ebp + 0xc], 0
je 0x4085a4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x4085a4
push 0x17a
push str.WMI_CoCreateInstance_failure
push 9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x4085ab
mov dword [ebp - 0x28], 9
jmp 0x408808
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x408618
cmp dword [ebp + 0xc], 0
je 0x40860c
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
je 0x40860c
push 0x182
push str.WMI_ConnectServer_failure
push 9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x408613
mov dword [ebp - 0x2c], 9
jmp 0x408808
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x408676
cmp dword [ebp + 0xc], 0
je 0x40866a
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
je 0x40866a
push 0x193
push str.WMI_CoSetProxyBlanket_failure
push 9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x408671
mov dword [ebp - 0x30], 9
jmp 0x408808
cmp dword [ebp + 8], 1
jne 0x4086c8
cmp dword [ebp + 0xc], 0
je 0x4086ad
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x4086ad
push 0x199
push str.WMI_checking_for_VM_WMI_HYPERV
push 9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x34], eax
jmp 0x4086b4
mov dword [ebp - 0x34], 9
lea eax, [ebp - 0x10]
push eax
call fcn.00407d30
add esp, 4
mov dword [ebp - 8], eax
jmp 0x408808
cmp dword [ebp + 8], 0
jne 0x40871a
cmp dword [ebp + 0xc], 0
je 0x4086ff
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x4086ff
push 0x19e
push str.WMI_checking_for_VM_WMI_VMWARE
push 9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x38], eax
jmp 0x408706
mov dword [ebp - 0x38], 9
lea eax, [ebp - 0x10]
push eax
call fcn.00407e80
add esp, 4
mov dword [ebp - 8], eax
jmp 0x408808
cmp dword [ebp + 8], 2
jne 0x40876c
cmp dword [ebp + 0xc], 0
je 0x408751
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x408751
push 0x1a3
push str.WMI_checking_for_VM_WMI_VIRTUALBOX
push 9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x3c], eax
jmp 0x408758
mov dword [ebp - 0x3c], 9
lea eax, [ebp - 0x10]
push eax
call fcn.00407fd0
add esp, 4
mov dword [ebp - 8], eax
jmp 0x408808
cmp dword [ebp + 8], 3
jne 0x4087bb
cmp dword [ebp + 0xc], 0
je 0x4087a3
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x4087a3
push 0x1a8
push str.WMI_checking_for_VM_WMI_QEMU
push 9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x4087aa
mov dword [ebp - 0x40], 9
lea eax, [ebp - 0x10]
push eax
call fcn.00408170
add esp, 4
mov dword [ebp - 8], eax
jmp 0x408808
cmp dword [ebp + 8], 4
jne 0x408808
cmp dword [ebp + 0xc], 0
je 0x4087f2
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x4087f2
push 0x1ad
push str.WMI_checking_for_VM_WMI_PARALLELS
push 9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x44], eax
jmp 0x4087f9
mov dword [ebp - 0x44], 9
lea eax, [ebp - 0x10]
push eax
call fcn.004082c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], 0
je 0x40881c
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
cmp dword [ebp - 0x18], 0
je 0x408830
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
cmp dword [ebp - 4], 0x80010106
je 0x40883f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 8], 0
je 0x408889
cmp dword [ebp + 0xc], 0
je 0x408880
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x408880
push 0x1c7
push str.WMI_Vm_Detection_Mechanism_positive_result
push 9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
call edx
add esp, 0x10
mov dword [ebp - 0x48], eax
jmp 0x408887
mov dword [ebp - 0x48], 9
jmp 0x4088c1
cmp dword [ebp + 0xc], 0
je 0x4088ba
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x4088ba
push 0x1cb
push str.WMI_Vm_Detection_Mechanism_negative_result
push 9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
mov dword [ebp - 0x4c], eax
jmp 0x4088c1
mov dword [ebp - 0x4c], 9
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret