Function at 0x431960
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 [0x568cb8]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push edi
push 0x200
push 0
push esi
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0x200]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0x400]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea ebx, [esi + 0x600]
push 0
push ebx
call fcn.004b83b0
add esp, 0xc
push 0x200
lea edi, [esi + 0x800]
push 0
push edi
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0xa00]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0xc00]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0xe00]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1000]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1200]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1400]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
push 0x200
lea eax, [esi + 0x1600]
push 0
push eax
call fcn.004b83b0
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 0x432025
lea ecx, [esp + 0x38]
push ecx
push 0x52ae84
push 1
push 0
push 0x52af54
mov dword [esp + 0x4c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x432025
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 0x432015
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 0x431ff9
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 0x53be54
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431bee
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 0x431be2
cmp dword [esp + 0x48], 0
jbe 0x431be2
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 0x431bd6
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 0x53be54
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431cad
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 0x431ca1
cmp dword [esp + 0x48], ebx
jbe 0x431ca1
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 0x431c95
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 0x53be54
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431d70
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 0x431d64
cmp dword [esp + 0x48], ebx
jbe 0x431d64
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 0x431d58
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 0x53be54
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431e59
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 0x431e4d
cmp dword [esp + 0x48], ebx
jbe 0x431e4d
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 0x431e41
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 0x431e36
mov ecx, edi
mov eax, edi
cmp word [ecx], 0x2e
jne 0x431e2c
xor edx, edx
mov word [ecx], dx
add eax, 2
mov ecx, eax
cmp word [eax], bx
jne 0x431e21
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 0x53be54
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431f1c
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 0x431f10
cmp dword [esp + 0x48], ebx
jbe 0x431f10
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 0x431f04
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 0x53be54
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x431ffb
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 0x431fd3
cmp dword [esp + 0x48], ebx
jbe 0x431fd3
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 0x431fc7
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 0x432027
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 0x432027
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
xor ebx, ebx
call edx
jmp 0x432027
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 0x432060
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x46a]
push eax
mov word [esp + 0x46c], dx
call fcn.004b83b0
add esp, 0xc
push ebx
lea ecx, [esp + 0x464]
call fcn.00431680
add esp, 4
test eax, eax
jne 0x43209c
inc ebx
cmp ebx, 0xa
jl 0x432060
jmp 0x4320b1
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 0x432128
lea ecx, [esp + 0x30]
push ecx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x432128
mov edi, dword [esp + 0x48]
lea ecx, [ebx + 8]
call fcn.00431810
cmp eax, 1
je 0x432106
test eax, eax
jne 0x432120
mov edi, dword [ebx + 0x194]
mov dx, word [ebx + 0x198]
mov dword [esp + 0x48], edi
mov word [esp + 0x4c], dx
test eax, eax
je 0x43212c
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4320f5
jmp 0x43212c
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 0x53bf9c
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4321a8
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.004b83b0
add esp, 0xc
push 0x206
lea edx, [esp + 0x56]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x5c], cx
call fcn.004b83b0
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 0x4323aa
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 0x43229c
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 0x43229c
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 0x432295
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.004bf140
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 0x432323
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 0x432323
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 0x43231c
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.004bf140
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 0x4323aa
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 0x4323aa
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 0x4323a3
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.004bf140
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.004c2c26
mov ecx, dword [esp + 0x688]
add esp, 0x24
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004b8307
mov esp, ebp
pop ebp
ret