Function at 0x401c10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x224], esi
call fcn.00401820
mov edi, eax
cmp dword [0x408904], edi
je 0x401d31
mov eax, dword [0x408914]
mov dword [0x408904], edi
cmp eax, esi
je 0x401c6c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x220]
push eax
push edi
mov dword [ebp - 0x220], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x220]
push ecx
push esi
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x408914], eax
cmp eax, esi
je 0x401f22
mov ecx, dword [0x408908]
cmp ecx, esi
je 0x401ce7
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push esi
push ecx
push eax
call ebx
mov edx, dword [0x40890c]
mov eax, dword [0x408914]
push 0x8000
push esi
push edx
push eax
call ebx
mov ecx, dword [0x408910]
mov edx, dword [0x408914]
push 0x8000
push esi
push ecx
push edx
call ebx
mov eax, dword [0x408914]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x1000
push 0x40
push esi
push eax
call ebx
push 4
push 0x1000
push 0x200
mov dword [0x408908], eax
mov eax, dword [0x408914]
push esi
push eax
call ebx
mov ecx, dword [0x408914]
push 4
push 0x1000
push 0x10
push esi
push ecx
mov dword [0x40890c], eax
call ebx
mov dword [0x408910], eax
xor eax, eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
cmp dword [0x408910], esi
je 0x401f22
cmp dword [0x408908], esi
je 0x401f22
push 0x3c
lea edx, [ebp - 0x270]
push esi
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [0x40890c]
add esp, 0xc
push esi
push esi
cdq
push 0x1004
push edi
mov dword [ebp - 0x274], 1
mov dword [ebp - 0x264], 0xffffffff
mov dword [ebp - 0x254], 0x200
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x220], eax
cmp eax, esi
jle 0x401f0b
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x401dd0
mov ecx, dword [0x408908]
mov edx, dword [0x408914]
push 0
push 0x40
lea eax, [ebp - 0x274]
push eax
push ecx
push edx
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], 0
call ebx
mov ecx, dword [0x408910]
mov edx, dword [0x408914]
push 0
push 0x10
lea eax, [ebp - 0x21c]
push eax
push ecx
push edx
call ebx
mov eax, dword [0x408908]
push eax
push esi
push 0x102d
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x40890c]
mov eax, dword [0x408914]
push 0
push 0x200
lea ecx, [ebp - 0x20c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
jne 0x401e89
inc esi
cmp esi, dword [ebp - 0x220]
jl 0x401dd0
mov eax, dword [ebp - 0x224]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004034b4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x408910]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
push 0x100e
push edi
call ebx
mov edx, dword [0x408910]
mov eax, dword [0x408914]
push 0
push 0x10
lea ecx, [ebp - 0x21c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x218]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x214]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x210]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [ebp - 0x224], 1
je 0x401f0b
push 0xffffffffffffffff
push esi
push 0x102c
push edi
call ebx
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x224]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004034b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004034b4
mov esp, ebp
pop ebp
ret