Function at 0x40ec80
Capabilities:
Enumerate processes
Get mac address on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5fcffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x22848]
call fcn.00413110
cmp al, 1
jne 0x40ecbe
push 9
push str.Parallels
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
push ebx
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push dword [ebp - 0x268]
call fcn.004246e5
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp byte [ebx + 0x194], 0
jne 0x40ed33
cmp byte [ebx + 0x195], 0x1c
jne 0x40ed33
cmp byte [ebx + 0x196], 0x42
jne 0x40ed33
push 0x288
push ebx
call fcn.0056ed8a
add esp, 8
lea ecx, [edi + 0x22848]
push 9
push str.Parallels
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40ed41
push 0x288
push ebx
call fcn.0056ed8a
add esp, 8
lea eax, [ebp - 0x268]
push eax
push 1
push 0
push str.HARDWAREACPIDSDTPRLS__PRLSACPI
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ed86
push dword [ebp - 0x268]
call ebx
push 9
push str.Parallels
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
lea eax, [ebp - 0x268]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetEnumPCIVEN_1AB8DEV_4005SUBSYS_04001AB8REV_00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40edc5
push dword [ebp - 0x268]
call ebx
push 9
push str.Parallels
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
mov ax, word [0x5d9eb8]
movups xmm0, xmmword [str.Oracle_VM_VirtualBox]
mov word [ebp - 8], ax
lea eax, [ebp - 0x268]
push eax
movups xmmword [ebp - 0x30], xmm0
push 1
movups xmm0, xmmword [0x5d9ea0]
push 0
push str.HARDWAREDESCRIPTIONSystem
movups xmmword [ebp - 0x20], xmm0
push reloc.OLEAUT32.dll_SysReAllocString
movq xmm0, qword [0x5d9eb0]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x38], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.VideoBiosVersion
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x268]
call ebx
lea ecx, [ebp - 0x238]
mov ebx, 0x24
lea edx, [ebp - 0x30]
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40ee79
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x40ee50
push 0xa
push str.VirtualBox
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
mov ecx, edi
call fcn.00413080
cmp al, 1
jne 0x40ee9c
push 0xa
push str.VirtualBox
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0
push str..VBoxMiniRdrDN
call ebx
cmp eax, 0xffffffff
jne 0x40eed2
push 0
push 0
push 3
push 0
push 0
push 0
push str..VBoxGuest
call ebx
cmp eax, 0xffffffff
je 0x40eeea
push 0xa
push str.VirtualBox
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push dword [ebp - 0x268]
call fcn.004246e5
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp byte [ebx + 0x194], 8
jne 0x40ef63
cmp byte [ebx + 0x195], 0
jne 0x40ef63
cmp byte [ebx + 0x196], 0x27
je 0x40ef3b
cmp byte [ebx + 0x196], 0x20
jne 0x40ef63
push 0x288
push ebx
call fcn.0056ed8a
add esp, 8
mov ecx, esi
push 0xa
push str.VirtualBox
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40ef71
push 0x288
push ebx
call fcn.0056ed8a
add esp, 8
movups xmm0, xmmword [str.VBoxTray.exe]
mov ax, word [0x5d9f78]
push 0
movups xmmword [ebp - 0x20], xmm0
push 2
movq xmm0, qword [0x5d9f70]
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.005711a0
add esp, 0xc
mov dword [ebp - 0x264], 0x22c
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [eax]
lea ecx, [ebp - 0x240]
mov esi, 0x14
lea edx, [ebp - 0x20]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f018
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40efe0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
lea ebx, [edi + 0x22848]
push str.VirtualBox
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40f037
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40efd0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [edi + 0x22848]
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetEnumPCIVEN_80EEDEV_BEEFSUBSYS_00000000REV_00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f074
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xa
push str.VirtualBox
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
push 0
push str.VBoxTrayToolWndClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40f09d
push 0xa
push str.VirtualBox
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
call fcn.00412ff0
cmp al, 1
jne 0x40f0be
push 9
push str.VirtualPC
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
push 0
push 0
push 3
push 0
push 0
push 0
push str..VMDRV
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40f0f2
push 9
push str.VirtualPC
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push dword [ebp - 0x268]
call fcn.004246e5
add esp, 4
mov esi, eax
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov al, byte [esi + 0x194]
test al, al
jne 0x40f4e2
mov al, byte [esi + 0x195]
cmp al, 3
jne 0x40f48f
cmp byte [esi + 0x196], 0xff
je 0x40f56c
cmp al, 0x1d
jne 0x40f4a4
cmp byte [esi + 0x196], 0xd8
je 0x40f56c
cmp al, 0x22
jne 0x40f4b9
cmp byte [esi + 0x196], 0x48
je 0x40f56c
cmp al, 0x17
jne 0x40f4ce
cmp byte [esi + 0x196], 0xfa
je 0x40f56c
cmp al, 0x50
jne 0x40f198
cmp byte [esi + 0x196], 0xf2
je 0x40f56c
push 0x288
push esi
call fcn.0056ed8a
add esp, 8
movups xmm0, xmmword [str.vmusrvc.exe]
push 0
push 2
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [0x5d9f8c]
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.005711a0
add esp, 0xc
mov dword [ebp - 0x264], 0x22c
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [eax + eax]
lea ecx, [ebp - 0x240]
mov esi, 0x12
lea edx, [ebp - 0x1c]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f22d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40f210
mov ax, word [ecx]
cmp ax, word [edx]
je 0x40f597
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40f200
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [edi + 0x22848]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetEnumPCIVEN_5333DEV_8811SUBSYS_00000000REV_00
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40f28b
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 9
push str.VirtualPC
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
movups xmm0, xmmword [str.VMware_Virtual_Platform]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x38], 0x200
push eax
movups xmmword [ebp - 0x34], xmm0
push 1
movups xmm0, xmmword [0x5d9e04]
push 0
push str.HARDWAREDESCRIPTIONSystemBIOS
movups xmmword [ebp - 0x24], xmm0
push reloc.OLEAUT32.dll_SysReAllocString
movups xmm0, xmmword [0x5d9e14]
movups xmmword [ebp - 0x14], xmm0
call esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.SystemProductName
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
mov esi, 0x2c
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f32d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40f304
push 6
push str.VMware
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
mov ecx, edi
call fcn.004130c0
cmp al, 1
jne 0x40f350
push 6
push str.VMware
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
call fcn.00412f60
cmp al, 1
jne 0x40f371
push 6
push str.VMware
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push dword [ebp - 0x268]
call fcn.004246e5
add esp, 4
mov esi, eax
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp byte [esi + 0x194], 0
jne 0x40f3d7
mov al, byte [esi + 0x195]
cmp al, 5
jne 0x40f5c1
cmp byte [esi + 0x196], 0x69
je 0x40f5e7
cmp al, 0x1c
jne 0x40f5d2
cmp byte [esi + 0x196], 0x14
je 0x40f5e7
push 0x288
push esi
call fcn.0056ed8a
add esp, 8
movups xmm0, xmmword [str.vmtoolsd.exe]
mov ax, word [0x5d9fac]
push 0
movups xmmword [ebp - 0x20], xmm0
push 2
movq xmm0, qword [0x5d9fa4]
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.005711a0
add esp, 0xc
mov dword [ebp - 0x264], 0x22c
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ecx, [ebp - 0x240]
mov esi, 0x14
lea edx, [ebp - 0x20]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f612
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40f450
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
lea esi, [edi + 0x22848]
push str.VMware
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40f635
cmp al, 0x12
jne 0x40f148
cmp byte [esi + 0x196], 0x5a
je 0x40f56c
cmp al, 0x15
jne 0x40f15d
cmp byte [esi + 0x196], 0x5d
je 0x40f56c
cmp al, 0xd
jne 0x40f172
cmp byte [esi + 0x196], 0x3a
je 0x40f56c
cmp al, 0x25
jne 0x40f187
cmp byte [esi + 0x196], 0xae
jmp 0x40f192
cmp al, 0x28
jne 0x40f4ff
cmp byte [esi + 0x195], 0x18
jne 0x40f198
cmp byte [esi + 0x196], 0x78
jmp 0x40f192
cmp al, 0x60
jne 0x40f51c
cmp byte [esi + 0x195], 0x45
jne 0x40f198
cmp byte [esi + 0x196], 0xbd
jmp 0x40f192
cmp al, 0x7c
jne 0x40f54a
mov al, byte [esi + 0x195]
cmp al, 0x1e
jne 0x40f536
cmp byte [esi + 0x196], 0x52
jmp 0x40f192
cmp al, 0xed
jne 0x40f198
cmp byte [esi + 0x196], 0x8d
jmp 0x40f192
cmp al, 0xdc
jne 0x40f198
cmp byte [esi + 0x195], 0xb4
jne 0x40f198
cmp byte [esi + 0x196], 0xc4
jne 0x40f198
push 0x288
push esi
call fcn.0056ed8a
add esp, 8
mov ecx, ebx
push 9
push str.VirtualPC
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40f1a6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 9
lea ebx, [edi + 0x22848]
push str.VirtualPC
mov ecx, ebx
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40f24c
cmp al, 0xc
jne 0x40f3c2
cmp byte [esi + 0x196], 0x29
je 0x40f5e7
cmp al, 0x50
jne 0x40f3d7
cmp byte [esi + 0x196], 0x56
jne 0x40f3d7
push 0x288
push esi
call fcn.0056ed8a
add esp, 8
mov ecx, ebx
push 6
push str.VMware
call fcn.00403260
mov dword [edi + 0x2283c], 1
jmp 0x40f3e5
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40f441
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 0x22848]
push 0
push str.VMSwitchUserControlClass
call dword [sym.imp.USER32.dll_FindWindowA]
pop ebx
test eax, eax
je 0x40f65f
push 6
push str.VMware
mov ecx, esi
call fcn.00403260
mov dword [edi + 0x2283c], 1
mov eax, dword [edi + 0x2283c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056eb08
mov esp, ebp
pop ebp
ret