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

Disassembly:
push 0xffffffffffffffff
push 0x411c28
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x41901c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov esi, ecx
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov dword [esp + 0x290], ebp
mov edx, dword [esi + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x28]
push eax
push ebp
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, ebp
je 0x40e5eb
push 4
push 0x1000
push 0x40
push ebp
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
call edi
mov ebp, eax
push 4
push 0x1000
push 0x200
push 0
push ebx
call edi
push 4
push 0x1000
push 0x10
push 0
push ebx
mov dword [esp + 0x34], eax
call edi
test eax, eax
mov dword [esp + 0x18], eax
je 0x40e5e4
or ebp, ebp
je 0x40e5e4
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push 0
push 0
cdq
push 0x1004
push ecx
mov dword [esp + 0x54], 1
mov dword [esp + 0x74], 0x200
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x30], eax
xor edi, edi
test eax, eax
jle 0x40e59c
push 0
push 0x40
lea edx, [esp + 0x4c]
push edx
push ebp
push ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esi + 4]
push ebp
push edi
push 0x102d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x20]
push 0
push 0x200
lea ecx, [esp + 0x8c]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x88]
call fcn.0040e6d0
xor eax, eax
mov ecx, dword [esp + 0x298]
test ecx, ecx
setne al
test eax, eax
je 0x40e504
mov eax, dword [esp + 0x1c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e4c6
or dx, dx
je 0x40e4c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e4c6
add eax, 4
sub ecx, 0xfffffffc
test dx, dx
jne 0x40e4a0
xor eax, eax
jmp 0x40e4cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
or al, al
jne 0x40e50e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x30]
jl 0x40e42d
jmp 0x40e59c
push 0x80004005
call fcn.00402290
mov edx, dword [esp + 0x18]
push 0
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push edx
push ebx
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
push eax
push edi
push 0x100e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x18]
push 0
push 0x10
lea edx, [esp + 0x3c]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [edi], ecx
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x40]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x1c]
sub eax, 0x10
lea ecx, [eax + 0xc]
mov dword [esp + 0x24], 1
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e59c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x4000
push 0x40
push ebp
push ebx
call esi
mov edi, dword [esp + 0x20]
push 0x4000
push 0x200
push edi
push ebx
call esi
push 0x8000
push 0
push ebp
push ebx
call esi
push 0x8000
push 0
push edi
push ebx
call esi
mov ecx, dword [esp + 0x18]
push 0x8000
push 0
push ecx
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x290], 0xffffffff
mov ebx, dword [esp + 0x298]
add ebx, 0xfffffff0
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
or ecx, ecx
jg 0x40e619
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x288]
mov eax, dword [esp + 0x24]
mov dword fs:[0], ebx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0041045c
sub esp, 0xfffffd80
ret 8