Function at 0x4a05de
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, 0x664
mov eax, dword [0x64006c]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
push 0x1800
xor ebx, ebx
push ebx
push 0xa3d448
call fcn.0050ba40
add esp, 0xc
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
js 0x4a0ad3
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ebx
push eax
push 0x5fe0e0
push 1
push ebx
push 0x5fe0d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4a0ad3
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4a0ac9
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esp + 0x44]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4a0abf
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push 0x627d5c
push eax
call dword [ecx + pe_nt_image_headers32]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x4a0748
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x4c]
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a073e
cmp dword [esp + 0x4c], 0
jbe 0x4a073e
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
lea edx, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.UUID
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0734
push 0x100
push dword [esp + 0x3c]
push 0xa3da48
call esi
lea eax, [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
xor edi, edi
push edi
mov ecx, dword [eax]
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
push 0x627d5c
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a07f0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x50], edi
push edx
push 1
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a07e6
cmp dword [esp + 0x4c], edi
jbe 0x4a07e6
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
lea edx, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.Name
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a07dc
push 0x100
push dword [esp + 0x3c]
push 0xa3dc48
call esi
lea eax, [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push edi
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_OperatingSystem
push 0x627d5c
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a0897
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x50], edi
push edx
push 1
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a088d
cmp dword [esp + 0x4c], 0
jbe 0x4a088d
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
lea edx, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.SerialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0883
push 0x100
push dword [esp + 0x3c]
push 0xa3de48
call esi
lea eax, [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push edi
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_OperatingSystem
push 0x627d5c
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a096f
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x50], edi
push edx
push 1
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0965
cmp dword [esp + 0x4c], 0
jbe 0x4a0965
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
lea edx, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.InstallDate
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a095b
push 0x100
push dword [esp + 0x3c]
push 0xa3e048
call esi
mov edx, edi
cmp word [0xa3e048], dx
je 0x4a0954
mov eax, 0xa3e048
mov ecx, eax
cmp word [eax], 0x2e
jne 0x4a0944
xor eax, eax
mov word [ecx], ax
inc edx
add ecx, 2
lea eax, [edx*2 + 0xa3e048]
cmp word [eax], di
jne 0x4a0939
lea eax, [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push edi
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_BIOS
push 0x627d5c
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a0a16
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x50], edi
push edx
push 1
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0a0c
cmp dword [esp + 0x4c], 0
jbe 0x4a0a0c
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
lea edx, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.SerialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0a02
push 0x100
push dword [esp + 0x3c]
push 0xa3e248
call esi
lea eax, [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push edi
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_BIOS
push 0x627d5c
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a0abd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x50], edi
push edx
push 1
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0ab3
cmp dword [esp + 0x4c], 0
jbe 0x4a0ab3
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], ax
lea edx, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
push edx
mov ecx, dword [eax]
push edi
push str.SMBIOSBIOSVersion
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4a0aa9
push 0x100
push dword [esp + 0x3c]
push 0xa3e448
call esi
lea eax, [esp + 0x30]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor ebx, ebx
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esp + 0x18]
push str._08X_08X
push 0xa3d448
call edi
add esp, 0x10
xor ebx, ebx
mov esi, ebx
push 0x200
lea eax, [esp + 0x46c]
push ebx
push eax
call fcn.0050ba40
add esp, 0xc
lea edx, [esp + 0x468]
mov ecx, esi
call fcn.004a032d
test eax, eax
jne 0x4a0b3d
inc esi
cmp esi, 0xa
jl 0x4a0b0d
jmp 0x4a0b50
lea eax, [esp + 0x468]
push eax
push 0xa3d648
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
push eax
push ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x55], ebx
mov byte [esp + 0x59], bl
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
call ebx
push dword [esp + 0x48]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4a0bc5
lea eax, [esp + 0x48]
push eax
push esi
call ebx
test eax, eax
jne 0x4a0bc5
mov ebx, dword [esp + 0x4c]
lea ecx, [esi + 8]
call fcn.004a04a3
mov ecx, eax
cmp ecx, 1
je 0x4a0ba3
test ecx, ecx
jne 0x4a0bbd
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], ax
test ecx, ecx
je 0x4a0bc9
mov esi, dword [esi]
test esi, esi
jne 0x4a0b90
jmp 0x4a0bc9
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [esp + 0x54]
push eax
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr ebx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, byte [esp + 0x60]
push eax
push str._02X__02X__02X__02X__02X__02X
push 0xa3d848
call edi
add esp, 0x20
lea eax, [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x54], ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push 0x61fd24
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a0c38
push dword [esp + 0x54]
push str._08X
push 0xa3e648
call edi
add esp, 0xc
mov esi, 0x208
lea eax, [esp + 0x260]
push esi
push ebx
push eax
call fcn.0050ba40
add esp, 0xc
lea eax, [esp + 0x58]
push esi
push ebx
push eax
call fcn.0050ba40
add esp, 0xc
lea eax, [esp + 0x260]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x18], xmm0
push eax
push ebx
push ebx
push 0x25
push ebx
movlpd qword [esp + 0x54], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4a0e1d
push str.kernel32.dll
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a0d1b
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push bind
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a0d1b
xor eax, eax
push eax
push eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push esi
call ebx
test eax, eax
je 0x4a0d18
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov eax, dword [esp + 0x50]
add ecx, 0x2ac18000
push edx
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.004c2ac0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
push esi
call edi
push str.user32.dll
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4a0d9c
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push bind
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a0d9c
xor eax, eax
push eax
push eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push esi
call ebx
test eax, eax
je 0x4a0d99
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov eax, dword [esp + 0x50]
add ecx, 0x2ac18000
push edx
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.004c2ac0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
push esi
call edi
push str.notepad.exe
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4a0e1d
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push bind
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a0e1d
xor eax, eax
push eax
push eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push esi
call ebx
test eax, eax
je 0x4a0e1a
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov eax, dword [esp + 0x50]
add ecx, 0x2ac18000
push edx
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.004c2ac0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
push esi
call edi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push str._llu__llu__llu
push 0x100
push 0xa3e848
call fcn.004a0ea2
mov ecx, dword [esp + 0x690]
add esp, 0x24
mov eax, 0xa3d448
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2344
mov esp, ebp
pop ebp
ret