Function at 0x4112d0
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 [0x4d87a0]
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.0044a4d0
push 0x200
lea eax, [esi + 0x200]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0x400]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea edi, [esi + 0x600]
push ebp
push edi
call fcn.0044a4d0
push 0x200
lea ebx, [esi + 0x800]
push ebp
push ebx
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0xa00]
push ebp
push eax
call fcn.0044a4d0
add esp, 0x48
push 0x200
lea eax, [esi + 0xc00]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0xe00]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0x1000]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0x1200]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0x1400]
push ebp
push eax
call fcn.0044a4d0
push 0x200
lea eax, [esi + 0x1600]
push ebp
push eax
call fcn.0044a4d0
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 0x41194e
lea ecx, [esp + 0x40]
push ecx
push 0x4c5c04
push 1
push ebp
push 0x4c5cd4
mov dword [esp + 0x54], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41194e
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 0x411942
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 0x411936
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 0x4b6088
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x41154f
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 0x41153b
cmp dword [esp + 0x50], ebp
jbe 0x41153b
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 0x41151b
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 0x411555
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 0x411555
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 0x411555
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 0x4b6088
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x41160e
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 0x411602
cmp dword [esp + 0x50], ebp
jbe 0x411602
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 0x4115f6
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 0x4b6088
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4116cd
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 0x4116c1
cmp dword [esp + 0x50], ebp
jbe 0x4116c1
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 0x4116b5
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 0x4b6088
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4117b8
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 0x4117ac
cmp dword [esp + 0x50], ebp
jbe 0x4117ac
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 0x4117a0
mov eax, dword [esp + 0x28]
push 0x100
push eax
lea ebx, [esi + 0xc00]
push ebx
call edi
cmp word [ebx], bp
je 0x411795
mov ecx, ebx
mov eax, ebx
lea ebx, [ebx]
cmp word [ecx], 0x2e
jne 0x41178b
xor edx, edx
mov word [ecx], dx
add eax, 2
mov ecx, eax
cmp word [eax], bp
jne 0x411780
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 0x4b6088
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x411877
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 0x41186b
cmp dword [esp + 0x50], ebp
jbe 0x41186b
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 0x41185f
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 0x4b6088
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x411936
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 0x41192a
cmp dword [esp + 0x50], ebp
jbe 0x41192a
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 0x41191e
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 0x411990
push 0x1fe
lea eax, [esp + 0x46e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x474], dx
call fcn.0044a4d0
lea ecx, [esp + 0x474]
push ecx
push edi
call fcn.00410fe0
add esp, 0x14
test eax, eax
jne 0x4119ca
inc edi
cmp edi, 0xa
jl 0x411990
jmp 0x4119df
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 0x411a5a
lea edx, [esp + 0x38]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x411a5a
mov ebx, dword [esp + 0x50]
lea eax, [edi + 8]
push eax
call fcn.00411180
add esp, 4
cmp eax, 1
je 0x411a38
cmp eax, ebp
jne 0x411a52
mov ebx, dword [edi + 0x194]
mov cx, word [edi + 0x198]
mov dword [esp + 0x50], ebx
mov word [esp + 0x54], cx
cmp eax, ebp
je 0x411a5e
mov edi, dword [edi]
cmp edi, ebp
jne 0x411a23
jmp 0x411a5e
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 0x4b5f44
mov dword [esp + 0x5c], ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x411ad6
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.0044a4d0
push 0x206
lea eax, [esp + 0x6a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x70], dx
call fcn.0044a4d0
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 0x411ccf
push str.kernel32.dll
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 0x411bc9
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 0x411bc9
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 0x411bc2
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.0044bac0
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 0x411c4c
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 0x411c4c
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 0x411c45
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.0044bac0
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 0x411ccf
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 0x411ccf
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 0x411cc8
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.0044bac0
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.0044bb28
mov ecx, dword [esp + 0x68c]
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ab5c
add esp, 0x65c
ret