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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeee0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e506c]
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 0x40a881
cmp eax, 0x80010119
je 0x40a881
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40ac74
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0x4bbd8c
push 1
push 0
push 0x4bbd7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a8b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40ac5e
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.00407ac0
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40a8e2
mov eax, dword [eax]
jmp 0x40a8e4
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 0x40a947
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a947
test esi, esi
je 0x40a947
mov eax, dword [esi]
test eax, eax
je 0x40a925
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a93c
push eax
call fcn.0046e3e1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046e3a3
add esp, 8
test ebx, ebx
js 0x40a966
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 0x40a973
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40ac4d
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.00407a20
mov byte [ebp - 4], 9
mov ebx, dword [eax]
test ebx, ebx
je 0x40a9a4
mov ebx, dword [ebx]
jmp 0x40a9a6
xor ebx, ebx
push 0x4c7f00
lea ecx, [ebp - 0x18]
call fcn.00407a20
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x40a9c1
mov eax, dword [eax]
jmp 0x40a9c3
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 0x40aa38
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40aa29
test esi, esi
je 0x40aa29
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x40a9fe
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aa15
push eax
call fcn.0046e3e1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046e3a3
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x40aa3e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x18], 0
jmp 0x40aa3e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x40aa82
lock xadd dword [esi + 8], edi
dec edi
jne 0x40aa82
test esi, esi
je 0x40aa82
mov eax, dword [esi]
test eax, eax
je 0x40aa60
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aa77
push eax
call fcn.0046e3e1
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046e3a3
add esp, 8
cmp dword [ebp - 0x14], 0
jge 0x40aa98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
jmp 0x40ac3f
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 0x40ab9f
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, 8
cmp dword [ebp - 0x18], 0
je 0x40ab9c
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 0x40ab50
cmp si, word [ebp - 0x50]
jne 0x40ab52
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x40ab52
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 0x40ab30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040c200
mov esi, 8
jmp 0x40ab52
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 0x40ab6d
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 0x40aae6
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40abb0
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.00407bd0
test eax, eax
jns 0x40abce
call edi
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40abe9
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 0x40ac2b
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac92
push edx
push ecx
call fcn.0046e3a3
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 0x40ac4d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40ac5e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40ac72
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.0046de82
mov esp, ebp
pop ebp
ret 8
call fcn.004892fc
int3