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

Disassembly:
push 0xffffffffffffffff
push 0x409c08
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40f01c]
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 + 0x24], ebx
mov dword [esp + 0x30], 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 + 0x20], 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 0x408043
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 + 0x28], eax
call edi
mov dword [esp + 0x20], eax
test eax, eax
je 0x408038
test ebp, ebp
je 0x408038
mov eax, dword [esp + 0x14]
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 + 0x2c], eax
test eax, eax
jle 0x407ff0
jmp 0x407e97
mov ebx, dword [esp + 0x24]
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 + 0x14]
push 0
push 0x200
lea ecx, [esp + 0x8c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ebx, [esp + 0x84]
lea eax, [esp + 0x1c]
call fcn.00408130
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x298]
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f26
test dx, dx
je 0x407f22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f26
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f00
xor eax, eax
jmp 0x407f2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407f60
lea eax, [ebx - 0xc]
cmp eax, 0x40f084
je 0x407f50
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407f50
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x407e93
jmp 0x407ff0
mov ebx, dword [esp + 0x20]
push 0
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push ebx
push esi
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
push ebx
push edi
push 0x100e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x10
lea ecx, [esp + 0x3c]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
mov dword [esp + 0x18], 1
cmp edx, 0x40f084
je 0x407ff0
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407ff0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x4000
push 0x40
push ebp
push esi
call edi
mov ebx, dword [esp + 0x14]
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 eax, dword [esp + 0x20]
push 0x8000
push 0
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x298]
lea ecx, [eax - 0xc]
cmp ecx, 0x40f084
je 0x408076
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408076
mov edx, dword [esp + 0x298]
add edx, 0xfffffff4
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
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.00408c54
add esp, 0x280
ret 8