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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e006c]
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 0x413f71
cmp eax, 0x80010119
je 0x413f71
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x414364
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0x4b7cfc
push 1
push 0
push 0x4b7cec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x413fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x41434e
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.004111b0
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x413fd2
mov eax, dword [eax]
jmp 0x413fd4
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 0x414037
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x414037
test esi, esi
je 0x414037
mov eax, dword [esi]
test eax, eax
je 0x414015
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41402c
push eax
call fcn.0046a647
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046a609
add esp, 8
test ebx, ebx
js 0x414056
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 0x414063
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x41433d
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.00411110
mov byte [ebp - 4], 9
mov ebx, dword [eax]
test ebx, ebx
je 0x414094
mov ebx, dword [ebx]
jmp 0x414096
xor ebx, ebx
push 0x4c4138
lea ecx, [ebp - 0x18]
call fcn.00411110
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x4140b1
mov eax, dword [eax]
jmp 0x4140b3
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 0x414128
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x414119
test esi, esi
je 0x414119
mov eax, dword [esi]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x4140ee
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x414105
push eax
call fcn.0046a647
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046a609
add esp, 8
mov dword [ebp - 0x18], 0
jmp 0x41412e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x18], 0
jmp 0x41412e
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x414172
lock xadd dword [esi + 8], edi
dec edi
jne 0x414172
test esi, esi
je 0x414172
mov eax, dword [esi]
test eax, eax
je 0x414150
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x414167
push eax
call fcn.0046a647
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0046a609
add esp, 8
cmp dword [ebp - 0x14], 0
jge 0x414188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
jmp 0x41432f
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 0x41428f
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, 8
cmp dword [ebp - 0x18], 0
je 0x41428c
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 0x414240
cmp si, word [ebp - 0x50]
jne 0x414242
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x414242
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 0x414220
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.00415840
mov esi, 8
jmp 0x414242
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 0x41425d
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 0x4141d6
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4142a0
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.004112c0
test eax, eax
jns 0x4142be
call edi
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4142d9
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 0x41431b
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41430e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414382
push edx
push ecx
call fcn.0046a609
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 0x41433d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41434e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x414362
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.0046a0e8
mov esp, ebp
pop ebp
ret 8
call fcn.0048552c
int3