Function at 0x401cb0
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
call fcn.0041634f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
lea esi, [eax + 1]
push ebx
call fcn.0041634f
add esp, 4
cmp eax, esi
jl 0x4020a0
push 0xe47314
push 0xe4e668
call fcn.00403690
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402b00
mov ecx, esi
call fcn.00402c70
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
call fcn.004013d0
add esp, 4
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x401d39
mov eax, 0x4396f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401eb0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00401170
add esp, 4
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x5c]
mov bl, 2
push edx
push eax
mov byte [ebp - 4], bl
call fcn.004019b0
add esp, 8
test al, al
jne 0x401db4
push 0
push 0xe4730c
push 0xe472fc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00402f00
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00402f00
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0x11]
push 0
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x4c]
call fcn.00402f00
mov edi, 0xe472d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0xe472d0
lea ecx, [ebp - 0x4c]
call fcn.00402fe0
mov dl, byte [ebp - 0x11]
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x3c], dl
call fcn.00402f00
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.00401610
add esp, 8
test al, al
jne 0x401e1b
push 0
push 0xe4730c
push 0xe472bc
jmp 0x401e4a
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x401e27
mov eax, 0x4396f0
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
push edx
push eax
mov eax, dword [ebp - 0x34]
push eax
push 0
call fcn.00403950
test eax, eax
je 0x401e72
push 0
push 0xe4730c
push 0xe4729c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00402f00
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00402f00
jmp 0x401d82
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00402f00
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00402f00
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x401eb0
mov al, byte [ecx - 1]
test al, al
je 0x401ea6
cmp al, 0xff
je 0x401ea6
dec al
mov byte [ecx - 1], al
jmp 0x401eb0
dec ecx
push ecx
call fcn.0042a51d
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x401ebc
mov eax, 0x4396f0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x401f29
push 0xe4730c
push 0xe4728c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40206e
mov al, byte [ecx - 1]
test al, al
je 0x402064
cmp al, 0xff
je 0x402064
dec al
mov byte [ecx - 1], al
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401f54
push 0
push 0xe4730c
push 0xe47278
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401ef0
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x401fc1
push 0xe4730c
push 0xe47268
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40206e
mov al, byte [ecx - 1]
test al, al
je 0x402064
cmp al, 0xff
je 0x402064
dec al
mov byte [ecx - 1], al
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40203d
cmp dword [ebp - 0x18], edi
jne 0x40203d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x1c]
call eax
popal
mov edx, dword [ebp - 0x1c]
push 0x8000
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40202a
mov al, byte [ecx - 1]
test al, al
je 0x402020
cmp al, 0xff
je 0x402020
dec al
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.0042a51d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0xe4730c
push 0xe47258
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401f81
dec ecx
push ecx
call fcn.0042a51d
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3e8
call edi
jmp 0x401ce5