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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push edi
push 0x200
push 0
push esi
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0x200]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0x400]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea ebx, [esi + 0x600]
push 0
push ebx
call fcn.004b8df0
add esp, 0xc
push 0x200
lea edi, [esi + 0x800]
push 0
push edi
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0xa00]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0xc00]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0xe00]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1000]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1200]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1400]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1600]
push 0
push eax
call fcn.004b8df0
add esp, 0xc
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x4322b5
lea ecx, [esp + 0x38]
push ecx
push 0x52af54
push 1
push 0
push 0x52b024
mov dword [esp + 0x4c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4322b5
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
jl 0x4322a5
mov eax, dword [esp + 0x10]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x432289
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push 0
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
mov dword [esp + 0x38], 0
mov ecx, dword [eax]
push 0x53bf34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431e7e
lea edx, [esp + 0x48]
push edx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x431e72
cmp dword [esp + 0x48], 0
jbe 0x431e72
xor ecx, ecx
push ecx
push ecx
xor eax, eax
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push str.UUID
push eax
call edx
test eax, eax
jl 0x431e66
mov eax, dword [esp + 0x20]
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
xor ebx, ebx
push ebx
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
push 0x53bf34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431f3d
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x431f31
cmp dword [esp + 0x48], ebx
jbe 0x431f31
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.Name
push eax
call edx
test eax, eax
jl 0x431f25
mov eax, dword [esp + 0x20]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x53bf34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x432000
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x431ff4
cmp dword [esp + 0x48], ebx
jbe 0x431ff4
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.SerialNumber
push eax
call edx
test eax, eax
jl 0x431fe8
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea eax, [esi + 0xa00]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x53bf34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4320e9
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4320dd
cmp dword [esp + 0x48], ebx
jbe 0x4320dd
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.InstallDate
push eax
call edx
test eax, eax
jl 0x4320d1
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea edi, [esi + 0xc00]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp word [edi], bx
je 0x4320c6
mov ecx, edi
mov eax, edi
cmp word [ecx], 0x2e
jne 0x4320bc
xor edx, edx
mov word [ecx], dx
add eax, 2
mov ecx, eax
cmp word [eax], bx
jne 0x4320b1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x53bf34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4321ac
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4321a0
cmp dword [esp + 0x48], ebx
jbe 0x4321a0
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.SerialNumber
push eax
call edx
test eax, eax
jl 0x432194
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea eax, [esi + 0xe00]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x53bf34
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x43228b
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x432263
cmp dword [esp + 0x48], ebx
jbe 0x432263
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.SMBIOSBIOSVersion
push eax
call edx
test eax, eax
jl 0x432257
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea eax, [esi + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4322b7
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4322b7
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
xor ebx, ebx
call edx
jmp 0x4322b7
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push str._08X_08X
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ebx, ebx
jmp 0x4322f0
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x46a]
push eax
mov word [esp + 0x46c], dx
call fcn.004b8df0
add esp, 0xc
push ebx
lea ecx, [esp + 0x464]
call fcn.00431900
add esp, 4
test eax, eax
jne 0x43232c
inc ebx
cmp ebx, 0xa
jl 0x4322f0
jmp 0x432341
lea ecx, [esp + 0x460]
push ecx
lea eax, [esi + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x51], eax
mov byte [esp + 0x55], al
mov dword [esp + 0x38], eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x30]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4323b8
lea ecx, [esp + 0x30]
push ecx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4323b8
mov edi, dword [esp + 0x48]
lea ecx, [ebx + 8]
call fcn.00431a90
cmp eax, 1
je 0x432396
test eax, eax
jne 0x4323b0
mov edi, dword [ebx + 0x194]
mov dx, word [ebx + 0x198]
mov dword [esp + 0x48], edi
mov word [esp + 0x4c], dx
test eax, eax
je 0x4323bc
mov ebx, dword [ebx]
test ebx, ebx
jne 0x432385
jmp 0x4323bc
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
movzx edx, byte [esp + 0x4c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
shr eax, 8
movzx ecx, al
push ecx
push edx
mov eax, edi
shr eax, 0x18
push eax
mov ecx, edi
shr ecx, 0x10
movzx edx, cl
push edx
movzx edx, byte [esp + 0x58]
mov eax, edi
shr eax, 8
movzx ecx, al
push ecx
push edx
lea eax, [esi + 0x400]
push str._02X__02X__02X__02X__02X__02X
push eax
call ebx
add esp, 0x20
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x44]
push eax
push edi
push edi
push 0x53c07c
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x432438
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [esi + 0x1200]
push str._08X
push eax
call ebx
add esp, 0xc
push 0x206
lea eax, [esp + 0x25e]
xor edx, edx
push edi
push eax
mov word [esp + 0x264], dx
call fcn.004b8df0
add esp, 0xc
push 0x206
lea edx, [esp + 0x56]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x5c], cx
call fcn.004b8df0
add esp, 0xc
lea eax, [esp + 0x258]
push eax
push edi
push edi
push 0x25
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x43263a
push str.kernel32.dll
lea ecx, [esp + 0x25c]
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x43252c
push edi
push edi
push 3
push edi
push 1
push connect
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43252c
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x432525
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.004ba540
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.user32.dll
lea edx, [esp + 0x25c]
push edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4325b3
push edi
push edi
push 3
push edi
push 1
push connect
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4325b3
push edi
push edi
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4325ac
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.004ba540
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.notepad.exe
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x43263a
push edi
push edi
push 3
push edi
push 1
push connect
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43263a
push edi
push edi
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x432633
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.004ba540
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str._llu__llu__llu
lea eax, [esi + 0x1400]
push 0x100
push eax
call fcn.004c2bc6
mov ecx, dword [esp + 0x688]
add esp, 0x24
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret