Function at 0x413160
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 [0x4e0490]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push ebp
push esi
push edi
push 0x200
xor ebp, ebp
mov esi, ecx
push ebp
push esi
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0x200]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0x400]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea edi, [esi + 0x600]
push ebp
push edi
call fcn.0044b5c0
push 0x200
lea ebx, [esi + 0x800]
push ebp
push ebx
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0xa00]
push ebp
push eax
call fcn.0044b5c0
add esp, 0x48
push 0x200
lea eax, [esi + 0xc00]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0xe00]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0x1000]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0x1200]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0x1400]
push ebp
push eax
call fcn.0044b5c0
push 0x200
lea eax, [esi + 0x1600]
push ebp
push eax
call fcn.0044b5c0
add esp, 0x48
push ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x4137de
lea ecx, [esp + 0x40]
push ecx
push 0x4cc984
push 1
push ebp
push 0x4cca54
mov dword [esp + 0x54], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4137de
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x34], ebp
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
jl 0x4137d2
mov eax, dword [esp + 0x18]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x4137c6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push ebp
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
mov dword [esp + 0x40], ebp
mov ecx, dword [eax]
push 0x4bb058
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4133df
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4133cb
cmp dword [esp + 0x50], ebp
jbe 0x4133cb
push ebp
xor ecx, ecx
xor eax, eax
push ebp
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
push ecx
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]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push str.UUID
push eax
call edx
test eax, eax
jl 0x4133ab
mov eax, dword [esp + 0x28]
push 0x100
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
call edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4133e5
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4133e5
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 0x4133e5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebp
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
push 0x4bb058
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x41349e
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x413492
cmp dword [esp + 0x50], ebp
jbe 0x413492
push ebp
xor ecx, ecx
xor eax, eax
push ebp
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
push ecx
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]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push str.Name
push eax
call edx
test eax, eax
jl 0x413486
mov eax, dword [esp + 0x28]
push 0x100
push eax
push ebx
call edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
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 ebp
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x4bb058
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x41355d
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x413551
cmp dword [esp + 0x50], ebp
jbe 0x413551
push ebp
xor ecx, ecx
xor eax, eax
push ebp
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
push ecx
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]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push str.SerialNumber
push eax
call edx
test eax, eax
jl 0x413545
mov eax, dword [esp + 0x28]
push 0x100
push eax
lea eax, [esi + 0xa00]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
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 ebp
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x4bb058
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x413648
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x41363c
cmp dword [esp + 0x50], ebp
jbe 0x41363c
push ebp
xor ecx, ecx
xor eax, eax
push ebp
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
push ecx
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]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push str.InstallDate
push eax
call edx
test eax, eax
jl 0x413630
mov eax, dword [esp + 0x28]
push 0x100
push eax
lea ebx, [esi + 0xc00]
push ebx
call edi
cmp word [ebx], bp
je 0x413625
mov ecx, ebx
mov eax, ebx
lea ebx, [ebx]
cmp word [ecx], 0x2e
jne 0x41361b
xor edx, edx
mov word [ecx], dx
add eax, 2
mov ecx, eax
cmp word [eax], bp
jne 0x413610
lea eax, [esp + 0x20]
push eax
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 ebp
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x4bb058
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x413707
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4136fb
cmp dword [esp + 0x50], ebp
jbe 0x4136fb
push ebp
xor ecx, ecx
xor eax, eax
push ebp
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
push ecx
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]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push str.SerialNumber
push eax
call edx
test eax, eax
jl 0x4136ef
mov eax, dword [esp + 0x28]
push 0x100
push eax
lea eax, [esi + 0xe00]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
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 ebp
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x4bb058
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4137c6
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x14]
push edx
push 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4137ba
cmp dword [esp + 0x50], ebp
jbe 0x4137ba
push ebp
xor ecx, ecx
xor eax, eax
push ebp
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
push ecx
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]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebp
push str.SMBIOSBIOSVersion
push eax
call edx
test eax, eax
jl 0x4137ae
mov eax, dword [esp + 0x28]
push 0x100
push eax
lea eax, [esi + 0x1000]
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
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], ebp
mov dword [esp + 0x48], ebp
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 ebp, ebp
xor edi, edi
jmp 0x413820
push 0x1fe
lea eax, [esp + 0x46e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x474], dx
call fcn.0044b5c0
lea ecx, [esp + 0x474]
push ecx
push edi
call fcn.00412e70
add esp, 0x14
test eax, eax
jne 0x41385a
inc edi
cmp edi, 0xa
jl 0x413820
jmp 0x41386f
lea edx, [esp + 0x468]
push edx
lea eax, [esi + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov dword [esp + 0x51], eax
mov byte [esp + 0x55], al
lea eax, [esp + 0x38]
push eax
push ebp
mov byte [esp + 0x58], 0
mov dword [esp + 0x40], ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ecx, dword [esp + 0x38]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebp
je 0x4138ea
lea edx, [esp + 0x38]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4138ea
mov ebx, dword [esp + 0x50]
lea eax, [edi + 8]
push eax
call fcn.00413010
add esp, 4
cmp eax, 1
je 0x4138c8
cmp eax, ebp
jne 0x4138e2
mov ebx, dword [edi + 0x194]
mov cx, word [edi + 0x198]
mov dword [esp + 0x50], ebx
mov word [esp + 0x54], cx
cmp eax, ebp
je 0x4138ee
mov edi, dword [edi]
cmp edi, ebp
jne 0x4138b3
jmp 0x4138ee
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
movzx ecx, byte [esp + 0x54]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
shr edx, 8
movzx eax, dl
push eax
push ecx
mov eax, ebx
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
push edx
movzx ecx, al
movzx eax, byte [esp + 0x5c]
push ecx
shr ebx, 8
movzx edx, bl
push edx
push eax
lea eax, [esi + 0x400]
push str._02X__02X__02X__02X__02X__02X
push eax
call edi
add esp, 0x20
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x4c]
push ecx
push ebp
push ebp
push 0x4baf14
mov dword [esp + 0x5c], ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x413966
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esi + 0x1200]
push str._08X
push eax
call edi
add esp, 0xc
push 0x206
lea ecx, [esp + 0x266]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x26c], ax
call fcn.0044b5c0
push 0x206
lea eax, [esp + 0x6a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x70], dx
call fcn.0044b5c0
add esp, 0x18
lea ecx, [esp + 0x260]
push ecx
push ebp
push ebp
push 0x25
push ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x413b5f
push 0x4bac34
lea edx, [esp + 0x264]
push edx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x413a59
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocStringLen
lea ecx, [esp + 0x70]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x413a59
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x413a52
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x44], ebp
call fcn.0044cab0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.user32.dll
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x413adc
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocStringLen
lea edx, [esp + 0x70]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x413adc
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x413ad5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x44], ebp
call fcn.0044cab0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.notepad.exe
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x413b5f
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocStringLen
lea eax, [esp + 0x70]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x413b5f
push ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x413b58
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x44], ebp
call fcn.0044cab0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str._llu__llu__llu
lea eax, [esi + 0x1400]
push 0x100
push eax
call fcn.0044cb18
mov ecx, dword [esp + 0x68c]
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bc4c
add esp, 0x65c
ret