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

Disassembly:
push 0xffffffffffffffff
push 0x418878
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ebx, ecx
mov dword [esp + 0x2c], eax
xor edi, edi
mov dword [esp + 0x290], edi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x28]
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40a76b
push 4
push 0x1000
push 0x40
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push esi
call edi
push 4
push 0x1000
push 0x200
push 0
push esi
mov ebp, eax
call edi
push 4
push 0x1000
push 0x10
push 0
push esi
mov dword [esp + 0x34], eax
call edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x40a764
test ebp, ebp
je 0x40a764
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 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]
xor edi, edi
mov dword [esp + 0x30], eax
test eax, eax
jle 0x40a71c
push 0
push 0x40
lea edx, [esp + 0x4c]
push edx
push ebp
push esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebx + 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 esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x88]
call fcn.0040a850
mov ecx, dword [esp + 0x298]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40a684
mov eax, dword [esp + 0x1c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a646
test dx, dx
je 0x40a642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a646
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a620
xor eax, eax
jmp 0x40a64b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40a68e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a674
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 0x40a5ad
jmp 0x40a71c
push 0x80004005
call fcn.004044a0
mov edx, dword [esp + 0x18]
push 0
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
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 esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a71c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x4000
push 0x40
push ebp
push esi
call edi
mov ebx, dword [esp + 0x20]
push 0x4000
push 0x200
push ebx
push esi
call edi
push 0x8000
push 0
push ebp
push esi
call edi
push 0x8000
push 0
push ebx
push esi
call edi
mov ecx, dword [esp + 0x18]
push 0x8000
push 0
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x298]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a799
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0040b1c5
add esp, 0x280
ret 8