Function at 0x4023d0
Capabilities:
Enumerate files on windows
Enumerate processes
Enumerate services
Get disk size
Get memory capacity
Get number of processors
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404930
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x320]
xor esi, esi
push eax
push 8
mov dword [ebp - 0x320], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4025b4
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x31c], esi
push eax
push 4
lea eax, [ebp - 0x324]
push eax
push 0x14
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40245a
cmp dword [ebp - 0x31c], 4
cmove esi, dword [ebp - 0x324]
push dword [ebp - 0x320]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x4025b4
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4025b4
push str.___Admin_n
call fcn.00401040
call fcn.00401360
test eax, eax
mov edx, str.____checkCPUTemperature___VM_n
mov ecx, str.___checkCPUTemperature___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
add esp, 8
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40253b
push eax
call edi
xor ecx, ecx
test ecx, ecx
mov edx, str.____checkPhyDisk___VM_n
mov eax, str.___checkPhyDisk___not_VM_n
cmovne eax, edx
push eax
call fcn.00401040
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x324]
add esp, 4
push eax
push str.ApplicationsVMwareHostOpen.exe
push SysReAllocString
call esi
test eax, eax
je 0x402597
lea eax, [ebp - 0x324]
push eax
push str.SOFTWAREOracleVirtualBox_Guest_Additions
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x402597
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push str.C:Program_FilesVMwareVMware_Tools_
call esi
test eax, eax
je 0x402597
push str.C:Program_FilesOracleVirtualBox_Guest_Additions_
call esi
test eax, eax
je 0x402597
xor eax, eax
jmp 0x40259c
push 0
lea eax, [ebp - 0x32c]
push eax
push 8
lea eax, [ebp - 0x328]
push eax
push 0
push 0
push 0x7405c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call edi
push 0
push 0x40000000
push dword [ebp - 0x324]
push dword [ebp - 0x328]
call fcn.00404670
test edx, edx
jg 0x4024c9
jl 0x40258d
cmp eax, 0xfa
jae 0x4024c9
mov ecx, 1
jmp 0x4024cb
mov eax, 1
test eax, eax
je 0x4025a7
push str.____checkPath___VM_n
jmp 0x4025ac
push str.___checkPath___not_VM_n
call fcn.00401040
add esp, 4
push str.___Not_Admin_n
call fcn.00401040
add esp, 4
mov dword [ebp - 0x31c], 0
mov eax, dword fs:[0x18]
mov eax, dword ds:[eax + 0x30]
mov eax, dword ds:[eax + 0x64]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 4
mov ecx, str.___checkCPUCores___not_VM_n
mov eax, str.____checkCPUCores___VM_n
cmovge eax, ecx
push eax
call fcn.00401040
add esp, 4
lea eax, [ebp - 0x31c]
xor ebx, ebx
mov dword [ebp - 0x31c], ebx
push eax
push 0x64
push ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x40268c
mov eax, dword [ebp - 0x31c]
push 0x1f4
push dword [eax + 8]
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
mov ax, word [0x4053d0]
lea ecx, [ebp - 0x5c4]
movq xmm0, qword [str.WORKGROUP]
add esp, 0xc
mov word [ebp - 0x5bc], ax
lea eax, [ebp - 0x318]
movq qword [ebp - 0x5c4], xmm0
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402680
test dl, dl
je 0x40267c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402680
add eax, 2
add ecx, 2
test dl, dl
jne 0x402660
xor eax, eax
jmp 0x402685
sbb eax, eax
or eax, 1
xor ebx, ebx
test eax, eax
setne bl
mov ecx, str.____checkDomain___VM_n
test ebx, ebx
mov eax, str.___checkDomain___not_VM_n
cmovne eax, ecx
push eax
call fcn.00401040
call fcn.00401720
test eax, eax
mov edx, str.____checkMAC___VM_n
mov ecx, str.___checkMAC___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
add esp, 8
mov dword [ebp - 0x388], 0x40
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [ebp - 0x37c]
mov ecx, dword [ebp - 0x380]
call fcn.00404720
mulsd xmm0, qword [0x405a08]
xor ecx, ecx
mov edx, str.____checkMemory___VM_n
mov eax, str.___checkMemory___not_VM_n
movsd xmm1, qword [0x405a10]
comisd xmm1, xmm0
seta cl
test ecx, ecx
cmovne eax, edx
push eax
call fcn.00401040
add esp, 4
mov dword [ebp - 0x33c], str.VBoxService.exe
mov dword [ebp - 0x338], str.VBoxTray.exe
mov dword [ebp - 0x334], str.vmware.exe
mov dword [ebp - 0x330], str.vmtoolsd.exe
push 0
push 2
mov dword [ebp - 0x5b8], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x5b8]
mov dword [ebp - 0x324], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402816
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x594]
push eax
push 0
push 0
call ebx
xor esi, esi
nop word [eax + eax]
mov ecx, dword [ebp + esi*4 - 0x33c]
lea eax, [ebp - 0x118]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4027f0
test dl, dl
je 0x4027ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4027f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4027d0
xor eax, eax
jmp 0x4027f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402850
inc esi
cmp esi, 4
jl 0x4027c0
lea eax, [ebp - 0x5b8]
push eax
push dword [ebp - 0x324]
call edi
test eax, eax
jne 0x402780
xor ecx, ecx
test ecx, ecx
mov edx, str.____checkProcess___VM_n
mov eax, str.___checkProcess___not_VM_n
cmovne eax, edx
push eax
call fcn.00401040
add esp, 4
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
jne 0x402857
or ecx, 0xffffffff
jmp 0x402930
mov ecx, 1
jmp 0x402818
push 0x10000
push 0x40
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x324], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0x10000
push esi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x4028b3
or ecx, 0xffffffff
jmp 0x402930
xor ebx, ebx
cmp dword [ebp - 0x320], ebx
jbe 0x402922
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
add esi, 4
push str.VMware_Tools
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x4029f0
push 0x405530
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x4029f0
push str.Virtual_Machine
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x4029f0
push str.VirtualBox_Guest
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x4029f0
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0x320]
jb 0x4028c6
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ecx, ecx
test ecx, ecx
mov edx, str.____checkSerivce___VM_n
mov eax, str.___checkSerivce___not_VM_n
cmovne eax, edx
push eax
call fcn.00401040
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x36ee80
mov edx, str.____checkUptime___VM_n
mov ecx, str.___checkUptime___not_VM_n
cmovb ecx, edx
push ecx
call fcn.00401040
call fcn.004018c0
test eax, eax
mov edx, str.____checkCPUID___VM_n
mov ecx, str.___checkCPUID___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
push 0x104
xor edi, edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0xc
mov esi, eax
push 0x104
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
lea ecx, [ebp - 0x344]
call fcn.00402f40
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x330]
mov eax, edx
mov ecx, dword [ebp - 0x334]
sub eax, ecx
cmp eax, 2
jb 0x4029fa
lea eax, [ecx + 2]
cmp edx, 0xf
mov dword [ebp - 0x334], eax
mov edx, 0x2a5c
lea eax, [ebp - 0x344]
cmova eax, dword [ebp - 0x344]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x402a17
mov ecx, 1
jmp 0x402930
push 2
push ecx
mov byte [ebp - 0x32c], 0
lea ecx, [ebp - 0x344]
push dword [ebp - 0x32c]
push 2
call fcn.00403350
cmp dword [ebp - 0x330], 0xf
lea ecx, [ebp - 0x4d0]
lea eax, [ebp - 0x344]
cmova eax, dword [ebp - 0x344]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402aa2
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x4d0]
inc edi
push eax
push esi
call ebx
test eax, eax
jne 0x402a46
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x1e
jl 0x402aa2
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x330]
cmp ecx, 0xf
jbe 0x402a9e
mov edx, dword [ebp - 0x344]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ad5
push ecx
push edx
call fcn.00403900
add esp, 8
xor ecx, ecx
jmp 0x402aea
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x330]
cmp ecx, 0xf
jbe 0x402ae5
mov edx, dword [ebp - 0x344]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402adb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402adb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403900
add esp, 8
mov ecx, 1
test ecx, ecx
mov edx, str.____checkTempDir___VM_n
mov eax, str.___checkTempDir___not_VM_n
cmovne eax, edx
push eax
call fcn.00401040
call fcn.00401f90
test eax, eax
mov edx, str.____checkHardwareInfo___VM_n
mov ecx, str.___checkHardwareInfo___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
push 0xff
call fcn.00402250
test eax, eax
mov edx, str.____checkSpeed___VM_n
mov ecx, str.___checkSpeed___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
add esp, 0x10
mov dword [ebp - 0x320], 0
xor ecx, ecx
push edx
sidt [esp - 2]
pop edx
nop
mov dword [ebp - 0x320], edx
cmp dword [ebp - 0x320], 0xd0000000
mov eax, 1
cmova ecx, eax
push edx
sgdt [esp - 2]
pop edx
nop
mov dword [ebp - 0x320], edx
cmp dword [ebp - 0x320], 0xd0000000
jbe 0x402b82
inc ecx
test ecx, ecx
mov edx, str.____checkNoPill___VM_n
mov eax, str.___checkNoPill___not_VM_n
cmovne eax, edx
push eax
call fcn.00401040
call fcn.00402270
test eax, eax
mov edx, str.____checkIOPort___VM_n
mov ecx, str.___checkIOPort___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
add esp, 8
mov dword [ebp - 0x31c], 0
str word [ebp - 0x31c]
mov eax, dword [ebp - 0x31c]
test al, al
jne 0x402bdd
shr eax, 8
cmp al, 0x40
jne 0x402bdd
mov ecx, 1
jmp 0x402bdf
xor ecx, ecx
test ecx, ecx
mov edx, str.____checkTSS___VM_n
mov eax, str.___checkTSS___not_VM_n
cmovne eax, edx
push eax
call fcn.00401040
call fcn.00402310
test eax, eax
mov edx, str.____checkUnISA___VM_n
mov ecx, str.___checkUnISA___not_VM_n
cmovne ecx, edx
push ecx
call fcn.00401040
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004038f2
mov esp, ebp
pop ebp
ret