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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afc40
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e706c]
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 0x40a951
cmp eax, 0x80010119
je 0x40a951
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40ad44
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0x4bcd6c
push 1
push 0
push 0x4bcd5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a988
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40ad2e
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.00407b90
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40a9b2
mov eax, dword [eax]
jmp 0x40a9b4
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 0x40aa17
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40aa17
test esi, esi
je 0x40aa17
mov eax, dword [esi]
test eax, eax
je 0x40a9f5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aa0c
push eax
call fcn.0046f10e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046f0d0
add esp, 8
test ebx, ebx
js 0x40aa36
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 0x40aa43
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40ad1d
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.00407af0
mov byte [ebp - 4], 9
mov ebx, dword [eax]
test ebx, ebx
je 0x40aa74
mov ebx, dword [ebx]
jmp 0x40aa76
xor ebx, ebx
push 0x4c8ee0
lea ecx, [ebp - 0x18]
call fcn.00407af0
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x40aa91
mov eax, dword [eax]
jmp 0x40aa93
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 0x40ab08
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40aaf9
test esi, esi
je 0x40aaf9
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x40aace
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aae5
push eax
call fcn.0046f10e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046f0d0
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x40ab0e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x18], 0
jmp 0x40ab0e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x40ab52
lock xadd dword [esi + 8], edi
dec edi
jne 0x40ab52
test esi, esi
je 0x40ab52
mov eax, dword [esi]
test eax, eax
je 0x40ab30
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ab47
push eax
call fcn.0046f10e
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046f0d0
add esp, 8
cmp dword [ebp - 0x14], 0
jge 0x40ab68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
jmp 0x40ad0f
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 0x40ac6f
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, 8
cmp dword [ebp - 0x18], 0
je 0x40ac6c
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 0x40ac20
cmp si, word [ebp - 0x50]
jne 0x40ac22
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x40ac22
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 0x40ac00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040c2d0
mov esi, 8
jmp 0x40ac22
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 0x40ac3d
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 0x40abb6
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40ac80
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.00407ca0
test eax, eax
jns 0x40ac9e
call edi
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40acb9
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 0x40acfb
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40acee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad62
push edx
push ecx
call fcn.0046f0d0
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 0x40ad1d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40ad2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40ad42
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.0046ebaf
mov esp, ebp
pop ebp
ret 8
call fcn.0048a05c
int3