Function at 0x4080e0
Capabilities:
Check if file exists
Create http request
Enumerate processes
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4929d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x4b14c0]
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
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov eax, 1
mov dword [ebp - 4], 0
xor ecx, ecx
lea edi, [ebp - 0x2a4]
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
xor al, al
mov dword [edi + 4], esi
lea esi, [ebp - 0x1c]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov byte [ebp - 0x2b5], al
mov dword [ebp - 0x1c], 0x4ab3f8
mov dword [ebp - 0x18], str.VIRTUAL
mov dword [ebp - 0x14], str.EMULATOR
nop dword [eax]
push 0
push 0
push dword [esi]
call edi
test eax, eax
jne 0x408198
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x408180
jmp 0x40819f
mov byte [ebp - 0x2b5], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], str.C:_sample.exe
mov dword [ebp - 0x24], str.C:_sandbox_sample.exe
mov dword [ebp - 0x20], str.C:_analysis_sample.exe
nop dword [eax]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x4081db
add esi, 4
lea eax, [ebp - 0x1c]
cmp esi, eax
jne 0x4081c0
mov al, byte [ebp - 0x2b5]
jmp 0x4081dd
mov al, 1
push str.Virtualization
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 1
call fcn.004053a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x408254
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x40826a
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4082a8
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40829e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
mov dword [ebp - 0x2b0], 2
push str.Debugger
lea ecx, [ebp - 0x2ac]
setne byte [ebp - 0x2b4]
call fcn.004053a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x408328
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x40833e
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40837c
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408372
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], str.HARDWAREDEVICEMAPScsiScsi_Port_0Scsi_Bus_0Target_Id_0Logical_Unit_Id_0
mov dword [ebp - 0x38], str.SYSTEMCurrentControlSetEnumSCSIDiskVen_VMwareProd_VMware_Virtual_S
mov dword [ebp - 0x34], str.SYSTEMCurrentControlSetControlVirtualDeviceDrivers
mov dword [ebp - 0x30], str.SOFTWAREVMware__Inc.VMware_Tools
mov dword [ebp - 0x2c], str.SOFTWAREOracleVirtualBox_Guest_Additions
nop dword [eax + eax]
lea eax, [ebp - 0x298]
push eax
push 0x20019
push 0
push dword [esi]
push reloc.WS2_32.dll_bind
call edi
test eax, eax
je 0x4083d9
add esi, 4
lea eax, [ebp - 0x28]
cmp esi, eax
jne 0x4083b0
xor al, al
jmp 0x4083e7
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
push str.Sandbox_Registry_Keys
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 3
call fcn.004053a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x40845e
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x408474
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4084b2
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4084a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
push 0
push 2
mov dword [ebp - 0x5c], str.vboxservice.exe
mov dword [ebp - 0x58], str.vboxtray.exe
mov dword [ebp - 0x54], str.vmtoolsd.exe
mov dword [ebp - 0x50], str.vmwaretray.exe
mov dword [ebp - 0x4c], str.vmwareuser.exe
mov dword [ebp - 0x48], str.VGAuthService.exe
mov dword [ebp - 0x44], str.vmacthlp.exe
mov dword [ebp - 0x40], str.vmsrvc.exe
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40855f
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408558
nop word [eax + eax]
lea esi, [ebp - 0x5c]
push dword [esi]
lea eax, [ebp - 0x270]
push eax
call fcn.0046f630
add esp, 8
test eax, eax
je 0x4085d8
add esi, 4
lea eax, [ebp - 0x3c]
cmp esi, eax
jne 0x408523
lea eax, [ebp - 0x294]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408520
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
push str.Suspicious_Processes
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 2
call fcn.004053a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x4085e6
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x4085fc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x408561
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40863a
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408630
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
call fcn.00407cf0
push str.Suspicious_MAC_Address
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 2
call fcn.004053a0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x4086b6
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x4086cc
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40870a
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408700
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
call fcn.00407e30
push str.Suspicious_PE_File_Name
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 1
call fcn.004053a0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x408786
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x40879c
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4087da
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4087d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
call fcn.00407f90
push str.Suspicious_Hostname
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 1
call fcn.004053a0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x408856
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x40886c
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4088aa
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4088a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
push 0
push 0
push 0
push 1
push str.SandboxDetection
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x4088f5
push 0
push bind
push 0
push 0
push str.http:__thisshouldnotexist12345.com
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x4088ee
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
mov al, 1
jmp 0x4088f7
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
push str.Web_Request_to_Non_existing_Domain
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 3
call fcn.004053a0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x40896e
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
add dword [ebp - 0x64], 0x20
jmp 0x408984
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov ecx, dword [ebp - 0x298]
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x4089c2
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4089b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
push 0xbb8
mov edi, eax
mov dword [ebp - 0x298], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
sbb edx, dword [ebp - 0x298]
mov dword [ebp - 0x298], edx
jne 0x4089fc
jb 0x4089f8
cmp eax, 0xb54
jae 0x4089fc
mov al, 1
jmp 0x4089fe
xor al, al
push str.Sleep_Function_Acceleration
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 0x2b4], al
mov dword [ebp - 0x2b0], 2
call fcn.004053a0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x60]
je 0x408a7a
mov al, byte [ebp - 0x2b4]
movups xmm0, xmmword [ebp - 0x2ac]
mov byte [ecx], al
mov eax, dword [ebp - 0x2b0]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
mov word [ebp - 0x2ac], ax
movq xmm0, qword [ebp - 0x29c]
movq qword [ecx + 0x18], xmm0
mov ecx, 7
mov esi, dword [ebp - 0x64]
add esi, 0x20
mov dword [ebp - 0x64], esi
jmp 0x408a93
lea eax, [ebp - 0x2b4]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408d90
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x298]
cmp ecx, 7
jbe 0x408ad0
mov edx, dword [ebp - 0x2ac]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408ac3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
mov esi, dword [ebp - 0x64]
add esp, 8
mov eax, dword [ebp - 0x68]
xor edi, edi
mov ecx, eax
xor edx, edx
cmp ecx, esi
je 0x408af9
nop dword [eax]
mov eax, dword [ecx + 4]
add edi, eax
add eax, edx
cmp byte [ecx], 0
cmove eax, edx
add ecx, 0x20
mov edx, eax
cmp ecx, esi
jne 0x408ae0
mov eax, dword [ebp - 0x68]
movd xmm1, edx
movd xmm0, edi
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x4ac4f4]
comiss xmm1, dword [0x4ac4f0]
setae cl
mov byte [ebp - 0x2b5], cl
test eax, eax
je 0x408b69
push ecx
mov edx, esi
mov ecx, eax
call fcn.00408d20
mov ecx, dword [ebp - 0x60]
add esp, 4
mov edx, dword [ebp - 0x68]
sub ecx, edx
and ecx, 0xffffffe0
mov eax, edx
cmp ecx, 0x1000
jb 0x408b59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408b87
push ecx
push edx
call fcn.00468192
mov cl, byte [ebp - 0x2b5]
add esp, 8
mov al, cl
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.0046814f
mov esp, ebp
pop ebp
ret
call fcn.0046f563
int3