Function at 0x4a04ad
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 [0x64106c]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
push 0x1800
xor ebx, ebx
push ebx
push 0xa3dc48
call fcn.0050b930
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 0x4a09a2
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ebx
push eax
push 0x5fe0c0
push 1
push ebx
push 0x5fe0b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4a09a2
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 0x4a0998
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 0x4a098e
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 0x627dc8
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 0x4a0617
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 0x4a060d
cmp dword [esp + 0x4c], 0
jbe 0x4a060d
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 0x4a0603
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
xor edi, edi
push edi
mov ecx, dword [eax]
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
push 0x627dc8
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a06bf
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 0x4a06b5
cmp dword [esp + 0x4c], edi
jbe 0x4a06b5
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 0x4a06ab
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]
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 0x627dc8
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a0766
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 0x4a075c
cmp dword [esp + 0x4c], 0
jbe 0x4a075c
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 0x4a0752
push 0x100
push dword [esp + 0x3c]
push 0xa3e648
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 0x627dc8
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a083e
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 0x4a0834
cmp dword [esp + 0x4c], 0
jbe 0x4a0834
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 0x4a082a
push 0x100
push dword [esp + 0x3c]
push 0xa3e848
call esi
mov edx, edi
cmp word [0xa3e848], dx
je 0x4a0823
mov eax, 0xa3e848
mov ecx, eax
cmp word [eax], 0x2e
jne 0x4a0813
xor eax, eax
mov word [ecx], ax
inc edx
add ecx, 2
lea eax, [edx*2 + 0xa3e848]
cmp word [eax], di
jne 0x4a0808
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 0x627dc8
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a08e5
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 0x4a08db
cmp dword [esp + 0x4c], 0
jbe 0x4a08db
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 0x4a08d1
push 0x100
push dword [esp + 0x3c]
push 0xa3ea48
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 0x627dc8
push eax
call dword [ecx + pe_nt_image_headers32]
test eax, eax
js 0x4a098c
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 0x4a0982
cmp dword [esp + 0x4c], 0
jbe 0x4a0982
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 0x4a0978
push 0x100
push dword [esp + 0x3c]
push 0xa3ec48
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 0xa3dc48
call edi
add esp, 0x10
xor ebx, ebx
mov esi, ebx
push 0x200
lea eax, [esp + 0x46c]
push ebx
push eax
call fcn.0050b930
add esp, 0xc
lea edx, [esp + 0x468]
mov ecx, esi
call fcn.004a01fc
test eax, eax
jne 0x4a0a0c
inc esi
cmp esi, 0xa
jl 0x4a09dc
jmp 0x4a0a1f
lea eax, [esp + 0x468]
push eax
push 0xa3de48
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 0x4a0a94
lea eax, [esp + 0x48]
push eax
push esi
call ebx
test eax, eax
jne 0x4a0a94
mov ebx, dword [esp + 0x4c]
lea ecx, [esi + 8]
call fcn.004a0372
mov ecx, eax
cmp ecx, 1
je 0x4a0a72
test ecx, ecx
jne 0x4a0a8c
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], ax
test ecx, ecx
je 0x4a0a98
mov esi, dword [esi]
test esi, esi
jne 0x4a0a5f
jmp 0x4a0a98
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 0xa3e048
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 0x61fd30
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a0b07
push dword [esp + 0x54]
push str._08X
push 0xa3ee48
call edi
add esp, 0xc
mov esi, 0x208
lea eax, [esp + 0x260]
push esi
push ebx
push eax
call fcn.0050b930
add esp, 0xc
lea eax, [esp + 0x58]
push esi
push ebx
push eax
call fcn.0050b930
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 0x4a0cec
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 0x4a0bea
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 0x4a0bea
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 0x4a0be7
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.004c29b0
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 0x4a0c6b
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 0x4a0c6b
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 0x4a0c68
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.004c29b0
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 0x4a0cec
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 0x4a0cec
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 0x4a0ce9
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.004c29b0
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 0xa3f048
call fcn.004a0d71
mov ecx, dword [esp + 0x690]
add esp, 0x24
mov eax, 0xa3dc48
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2233
mov esp, ebp
pop ebp
ret