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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
push 0x524098
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0xc], eax
push 0x5240b0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1c], eax
push str.SELECT__FROM_Win32_NetworkAdapter
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], 0
jge 0x40663b
cmp dword [ebp - 0x28], 0x80010106
je 0x40663b
cmp dword [ebp + 8], 0
je 0x40662c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x40662c
push 0xf7
mov edx, dword [ebp - 0x28]
push edx
push 0xe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x454], eax
jmp 0x406636
mov dword [ebp - 0x454], 0xe
jmp 0x4069a9
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 - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x4066a7
cmp dword [ebp - 0x28], 0x80010119
je 0x4066a7
cmp dword [ebp + 8], 0
je 0x406698
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x406698
push 0xfe
mov edx, dword [ebp - 0x28]
push edx
push 0xe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x458], eax
jmp 0x4066a2
mov dword [ebp - 0x458], 0xe
jmp 0x4069a9
lea ecx, [ebp - 0x18]
push ecx
push 0x5106fc
push 1
push 0
push 0x5106ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x40670a
cmp dword [ebp + 8], 0
je 0x4066fb
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x4066fb
push 0x106
mov eax, dword [ebp - 0x28]
push eax
push 0xe
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov dword [ebp - 0x45c], eax
jmp 0x406705
mov dword [ebp - 0x45c], 0xe
jmp 0x4069a9
lea edx, [ebp - 0x14]
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 - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x406777
cmp dword [ebp + 8], 0
je 0x406768
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x406768
push 0x10d
mov eax, dword [ebp - 0x28]
push eax
push 0xe
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call ecx
add esp, 0x10
mov dword [ebp - 0x460], eax
jmp 0x406772
mov dword [ebp - 0x460], 0xe
jmp 0x4069a9
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x4067da
cmp dword [ebp + 8], 0
je 0x4067cb
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x4067cb
push 0x11d
mov ecx, dword [ebp - 0x28]
push ecx
push 0xe
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov dword [ebp - 0x464], eax
jmp 0x4067d5
mov dword [ebp - 0x464], 0xe
jmp 0x4069a9
lea eax, [ebp - 0x20]
push eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x406807
cmp dword [ebp - 0x20], 0
jne 0x406849
cmp dword [ebp + 8], 0
je 0x40683a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x40683a
push 0x125
mov edx, dword [ebp - 0x28]
push edx
push 0xe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x468], eax
jmp 0x406844
mov dword [ebp - 0x468], 0xe
jmp 0x4069a9
cmp dword [ebp - 0x10], 0
jne 0x40698d
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40698d
push 0x420
push 0
lea ecx, [ebp - 0x450]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x134]
push edx
push str.Guid
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406a10
add esp, 0xc
lea ecx, [ebp - 0x33c]
push ecx
push str.PNPDeviceID
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406a10
add esp, 0xc
push 6
push str.VMBUS_
lea eax, [ebp - 0x33c]
push eax
call sub.MSVCR120.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40697a
lea ecx, [ebp - 0x134]
push ecx
call fcn.00406bb0
add esp, 4
test eax, eax
je 0x40697a
mov dword [ebp - 0x10], 1
cmp dword [ebp + 8], 0
je 0x406930
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x406930
push 0x13a
push str.Azure_detected_on_the_following_NIC:
push 9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x46c], eax
jmp 0x40693a
mov dword [ebp - 0x46c], 9
cmp dword [ebp + 8], 0
je 0x406970
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x406970
push 0x13b
lea edx, [ebp - 0x134]
push edx
push 9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
call eax
add esp, 0x10
mov dword [ebp - 0x470], eax
jmp 0x40697a
mov dword [ebp - 0x470], 9
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
jmp 0x406849
cmp dword [ebp - 0x20], 0
je 0x4069a1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
xor eax, eax
jne 0x4065c2
cmp dword [ebp - 0x14], 0
je 0x4069bd
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
cmp dword [ebp - 0x18], 0
je 0x4069d1
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 0x4069e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret