Function at 0x4032f0
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path
Get disk information
Get mac address on windows
Reference wmi statements

Disassembly:
sub esp, 0x65c
mov eax, dword [0x47edd4]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
push esi
push edi
push 0x200
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.00420780
push 0x200
lea eax, [esi + 0x200]
push ebx
push eax
call fcn.00420780
push 0x200
lea eax, [esi + 0x400]
push ebx
push eax
call fcn.00420780
push 0x200
lea edi, [esi + 0x600]
push ebx
push edi
call fcn.00420780
push 0x200
lea ebp, [esi + 0x800]
push ebx
push ebp
call fcn.00420780
push 0x200
lea eax, [esi + 0xa00]
push ebx
push eax
call fcn.00420780
add esp, 0x48
push 0x200
lea eax, [esi + 0xc00]
push ebx
push eax
call fcn.00420780
push 0x200
lea eax, [esi + 0xe00]
push ebx
push eax
call fcn.00420780
push 0x200
lea eax, [esi + 0x1000]
push ebx
push eax
call fcn.00420780
push 0x200
lea eax, [esi + 0x1200]
push ebx
push eax
call fcn.00420780
push 0x200
lea eax, [esi + 0x1400]
push ebx
push eax
call fcn.00420780
add esp, 0x3c
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x40393b
lea eax, [esp + 0x40]
push eax
push 0x46f9a8
push 1
push ebx
push 0x46fa78
mov dword [esp + 0x54], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40393b
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x40392f
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x403923
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push ebx
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
mov dword [esp + 0x40], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push 0x46aa50
push eax
call edx
test eax, eax
jl 0x40355b
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403547
cmp dword [esp + 0x50], ebx
jbe 0x403547
push ebx
xor eax, eax
push ebx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x1c]
push ebx
mov word [esp + 0x30], bx
mov ecx, dword [eax]
push str.UUID
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403527
mov ecx, dword [esp + 0x28]
push 0x100
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
call edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x403561
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x403561
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push eax
call edx
jmp 0x403561
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
push 0x46aa50
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x403616
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40360a
cmp dword [esp + 0x50], ebx
jbe 0x40360a
mov eax, dword [esp + 0x10]
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3a], ebx
mov word [esp + 0x3e], bx
mov ecx, dword [eax]
push str.Name
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4035fe
mov ecx, dword [esp + 0x28]
push 0x100
push ecx
push ebp
call edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x46aa50
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4036d1
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4036c5
cmp dword [esp + 0x50], ebx
jbe 0x4036c5
mov eax, dword [esp + 0x10]
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3a], ebx
mov word [esp + 0x3e], bx
mov ecx, dword [eax]
push str.SerialNumber
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4036b9
mov ecx, dword [esp + 0x28]
push 0x100
push ecx
lea eax, [esi + 0xa00]
push eax
call edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x46aa50
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4037ad
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4037a1
cmp dword [esp + 0x50], ebx
jbe 0x4037a1
mov eax, dword [esp + 0x10]
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3a], ebx
mov word [esp + 0x3e], bx
mov ecx, dword [eax]
push str.InstallDate
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403795
mov ecx, dword [esp + 0x28]
push 0x100
push ecx
lea ebp, [esi + 0xc00]
push ebp
call edi
cmp word [ebp], bx
je 0x40378a
mov ecx, ebp
mov eax, ebp
cmp word [ecx], 0x2e
jne 0x403780
mov word [ecx], bx
add eax, 2
cmp word [eax], bx
mov ecx, eax
jne 0x403777
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x46aa50
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x403868
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40385c
cmp dword [esp + 0x50], ebx
jbe 0x40385c
mov eax, dword [esp + 0x10]
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3a], ebx
mov word [esp + 0x3e], bx
mov ecx, dword [eax]
push str.SerialNumber
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403850
mov ecx, dword [esp + 0x28]
push 0x100
push ecx
lea eax, [esi + 0xe00]
push eax
call edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x46aa50
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x403923
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x403917
cmp dword [esp + 0x50], ebx
jbe 0x403917
mov eax, dword [esp + 0x10]
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x32], ebx
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3a], ebx
mov word [esp + 0x3e], bx
mov ecx, dword [eax]
push str.SMBIOSBIOSVersion
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40390b
mov ecx, dword [esp + 0x28]
push 0x100
push ecx
lea eax, [esi + 0x1000]
push eax
call edi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push str._08X_08X
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ebx, ebx
xor edi, edi
push 0x1fe
lea edx, [esp + 0x46e]
push ebx
push edx
mov word [esp + 0x474], bx
call fcn.00420780
lea eax, [esp + 0x474]
push eax
push edi
call fcn.00403020
add esp, 0x14
test eax, eax
jne 0x4039ab
add edi, 1
cmp edi, 0xa
jl 0x403971
jmp 0x4039c0
lea ecx, [esp + 0x468]
push ecx
lea eax, [esi + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x38]
push edx
push ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x59], ebx
mov byte [esp + 0x5d], bl
mov dword [esp + 0x40], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [esp + 0x38]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x403a38
lea ecx, [esp + 0x38]
push ecx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x403a38
mov ebp, dword [esp + 0x50]
lea edx, [edi + 8]
push edx
call fcn.004031b0
add esp, 4
cmp eax, 1
je 0x403a16
cmp eax, ebx
jne 0x403a30
cmp eax, ebx
mov ebp, dword [edi + 0x194]
mov cx, word [edi + 0x198]
mov dword [esp + 0x50], ebp
mov word [esp + 0x54], cx
je 0x403a3c
mov edi, dword [edi]
cmp edi, ebx
jne 0x403a01
jmp 0x403a3c
mov ebp, dword [esp + 0x50]
movzx edx, byte [esp + 0x55]
movzx eax, byte [esp + 0x54]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
push eax
mov ecx, ebp
shr ecx, 0x18
push ecx
mov edx, ebp
shr edx, 0x10
movzx eax, dl
push eax
movzx eax, byte [esp + 0x60]
mov ecx, ebp
shr ecx, 8
movzx edx, cl
push edx
push eax
lea eax, [esi + 0x400]
push str._02X__02X__02X__02X__02X__02X
push eax
call edi
add esp, 0x20
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
push ebx
push ebx
push 0x46a90c
mov dword [esp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x403ab1
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esi + 0x1200]
push str._08X
push eax
call edi
add esp, 0xc
push 0x206
lea eax, [esp + 0x266]
push ebx
push eax
mov word [esp + 0x26c], bx
call fcn.00420780
push 0x206
lea ecx, [esp + 0x6a]
push ebx
push ecx
mov word [esp + 0x70], bx
call fcn.00420780
add esp, 0x18
lea edx, [esp + 0x260]
push edx
push ebx
push ebx
push 0x25
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x403ca6
push 0x46a6d8
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
je 0x403ba0
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
lea edx, [esp + 0x70]
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x403ba0
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403b99
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x44], ebx
call fcn.00420f40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.user32.dll
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x403c23
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
lea eax, [esp + 0x70]
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x403c23
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403c1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x44], ebx
call fcn.00420f40
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.notepad.exe
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x403ca6
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
lea ecx, [esp + 0x70]
push ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x403ca6
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403c9f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x44], ebx
call fcn.00420f40
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push str._llu__llu__llu
lea eax, [esi + 0x1400]
push 0x100
push eax
call fcn.0042103f
mov ecx, dword [esp + 0x68c]
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004206a6
add esp, 0x65c
ret