Function at 0x10025860
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005820c
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10072f40]
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 edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], eax
call fcn.100063f0
test eax, eax
je 0x10025d52
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 1
call fcn.100063f0
test eax, eax
je 0x10025d52
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0x10062d88
push 1
push 0
push 0x10062d98
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x10025947
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
lea eax, [ebp - 0x44]
push str.CoCreateInstance_error:_0x_x_n
push eax
call fcn.10021040
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 4
lea ecx, [edi + 0x210]
mov eax, dword [ecx]
mov byte [ebp - 4], 3
call dword [eax + 8]
xor edi, edi
jmp 0x10025cf2
push 0xc
mov dword [ebp - 0x48], 0
call fcn.1005021f
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1002598a
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x10025d5c
jmp 0x1002598c
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x68], esi
test esi, esi
je 0x10025d5c
mov byte [ebp - 4], 6
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [esi]
push eax
call dword [ecx + 0xc]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.10017bb0
add edi, 0x210
test esi, esi
jns 0x10025a06
push esi
lea eax, [ebp - 0x44]
push str.ConnectServer_error:_0x_x_n
push eax
call fcn.10021040
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 7
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
jmp 0x10025b18
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.Connected_to_ROOTCIMV2_WMI_namespace
call fcn.100114f0
mov byte [ebp - 4], 8
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x10025a69
push eax
lea eax, [ebp - 0x44]
push str.Could_not_set_proxy_blanket__error:_0x_x_n
push eax
call fcn.10021040
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 9
jmp 0x10025b04
push str.SELECT__FROM_Win32_Bios
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x58], 0
call fcn.10013ee0
mov esi, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
push 0x1005fa1c
call fcn.10013ee0
mov byte [ebp - 4], 0xb
mov ecx, dword [esi]
test ecx, ecx
je 0x10025a9e
mov esi, dword [ecx]
jmp 0x10025aa0
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x10025aaa
mov edx, dword [eax]
jmp 0x10025aac
xor edx, edx
mov eax, dword [ebp - 0x48]
lea ebx, [ebp - 0x58]
push ebx
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov esi, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call fcn.10017bb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.10017bb0
mov ebx, dword [ebp - 0x60]
test esi, esi
jns 0x10025b2e
push esi
lea eax, [ebp - 0x44]
push str.Query_for_system_board_serial_number_failed__error:_0x_x_n
push eax
call fcn.10021040
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0xc
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
jmp 0x10025cf2
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
test ecx, ecx
je 0x10025c28
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [eax]
mov eax, dword [ecx]
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x5c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x6c], 0
je 0x10025c06
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x20]
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 0x10025bcb
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x10025ba7
xor eax, eax
lea ecx, [ebp - 0x64]
push eax
push edx
call fcn.100050f0
jmp 0x10025bea
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10025bb0
sub eax, esi
lea ecx, [ebp - 0x64]
sar eax, 1
push eax
push edx
call fcn.100050f0
jmp 0x10025bea
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.Get_Serial_Number_failed
call fcn.100114f0
mov byte [ebp - 4], 0xe
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
lea eax, [ebp - 0x20]
push eax
call ebx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
jne 0x10025b50
jmp 0x10025c25
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.Iterating_through_enumeration_failed
call fcn.100114f0
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
mov ebx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x10025c47
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x64]
cmp dword [eax - 0xc], 0
je 0x10025ced
push eax
lea ecx, [ebp - 0x28]
call fcn.10012250
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10019e60
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push str.Serial_Number:__s___d_.
push eax
call fcn.10021040
add esp, 0x14
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
mov byte [ebp - 4], 0x10
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
mov dword [ecx], eax
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x40]
call fcn.10002c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10002cb0
mov edi, 1
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025d13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10025d32
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.1005078e
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10003510
push 0x8007000e
call fcn.100516f0
int3