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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae6d0
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 0x40a8e1
cmp eax, 0x80010119
je 0x40a8e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40acd4
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0x4bbd6c
push 1
push 0
push 0x4bbd5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a918
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40acbe
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.00407b20
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40a942
mov eax, dword [eax]
jmp 0x40a944
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 0x40a9a7
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a9a7
test esi, esi
je 0x40a9a7
mov eax, dword [esi]
test eax, eax
je 0x40a985
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a99c
push eax
call fcn.0046dbd4
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046db96
add esp, 8
test ebx, ebx
js 0x40a9c6
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 0x40a9d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40acad
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.00407a80
mov byte [ebp - 4], 9
mov ebx, dword [eax]
test ebx, ebx
je 0x40aa04
mov ebx, dword [ebx]
jmp 0x40aa06
xor ebx, ebx
push 0x4c7ee0
lea ecx, [ebp - 0x18]
call fcn.00407a80
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x40aa21
mov eax, dword [eax]
jmp 0x40aa23
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 0x40aa98
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40aa89
test esi, esi
je 0x40aa89
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x40aa5e
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aa75
push eax
call fcn.0046dbd4
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046db96
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x40aa9e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x18], 0
jmp 0x40aa9e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x40aae2
lock xadd dword [esi + 8], edi
dec edi
jne 0x40aae2
test esi, esi
je 0x40aae2
mov eax, dword [esi]
test eax, eax
je 0x40aac0
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aad7
push eax
call fcn.0046dbd4
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046db96
add esp, 8
cmp dword [ebp - 0x14], 0
jge 0x40aaf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
jmp 0x40ac9f
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 0x40abff
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, 8
cmp dword [ebp - 0x18], 0
je 0x40abfc
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 0x40abb0
cmp si, word [ebp - 0x50]
jne 0x40abb2
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x40abb2
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 0x40ab90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040c260
mov esi, 8
jmp 0x40abb2
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 0x40abcd
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 0x40ab46
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40ac10
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.00407c30
test eax, eax
jns 0x40ac2e
call edi
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40ac49
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 0x40ac8b
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40acf2
push edx
push ecx
call fcn.0046db96
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 0x40acad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40acbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40acd2
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.0046d675
mov esp, ebp
pop ebp
ret 8
call fcn.00488aec
int3