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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae390
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x54], eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40acc1
cmp eax, 0x80010119
je 0x40acc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40b0b4
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0x4bad7c
push 1
push 0
push 0x4bad6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40acf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40b09e
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
call fcn.00407ef0
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40ad22
mov eax, dword [eax]
jmp 0x40ad24
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call edi
mov esi, dword [ebp - 0x18]
or edi, 0xffffffff
mov ebx, eax
test esi, esi
je 0x40ad87
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40ad87
test esi, esi
je 0x40ad87
mov eax, dword [esi]
test eax, eax
je 0x40ad65
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ad7c
push eax
call fcn.0046d88c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046d84e
add esp, 8
test ebx, ebx
js 0x40ada6
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40adb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40b08d
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x20]
push str.SELECT_serialNumber_FROM_Win32_PhysicalMemory
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
call fcn.00407e50
mov byte [ebp - 4], 9
mov ebx, dword [eax]
test ebx, ebx
je 0x40ade4
mov ebx, dword [ebx]
jmp 0x40ade6
xor ebx, ebx
push 0x4c6ef0
lea ecx, [ebp - 0x18]
call fcn.00407e50
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x40ae01
mov eax, dword [eax]
jmp 0x40ae03
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x30
push ebx
push eax
push esi
call dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x40ae78
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40ae69
test esi, esi
je 0x40ae69
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x40ae3e
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ae55
push eax
call fcn.0046d88c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046d84e
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x40ae7e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x18], 0
jmp 0x40ae7e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x40aec2
lock xadd dword [esi + 8], edi
dec edi
jne 0x40aec2
test esi, esi
je 0x40aec2
mov eax, dword [esi]
test eax, eax
je 0x40aea0
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aeb7
push eax
call fcn.0046d88c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046d84e
add esp, 8
cmp dword [ebp - 0x14], 0
jge 0x40aed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
jmp 0x40b07f
mov ebx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov word [ebx], ax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push edx
push 1
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x40afdf
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, 8
cmp dword [ebp - 0x18], 0
je 0x40afdc
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.serialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40af90
cmp si, word [ebp - 0x50]
jne 0x40af92
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x40af92
mov edx, dword [ebp - 0x48]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040c600
mov esi, 8
jmp 0x40af92
call edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40afad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x40af26
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40aff0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov edx, 0x400
mov ecx, ebx
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.00408000
test eax, eax
jns 0x40b00e
call edi
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40b029
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
mov esi, 1
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x40b06b
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b05e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b0d2
push edx
push ecx
call fcn.0046d84e
mov ecx, dword [ebp - 0x1c]
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x40b08d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40b09e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40b0b2
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d32d
mov esp, ebp
pop ebp
ret 8
call fcn.0048879c
int3