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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd rdi, dword [rcx + 0x3c]
xor ebx, ebx
mov rbp, rcx
add rdi, rcx
cmp dword [rdi], 0x4550
je 0x405026
movzx eax, word [rcx + 0xa]
mov ecx, 0x111
and ax, 0x11
cmp ax, cx
je 0x405026
lea rdx, [0x00401608]
jmp 0x405280
mov edx, dword [rdi + 0x50]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
cmp rax, rbx
jne 0x405079
lea rdx, [0x00401618]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00406030
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x00407060]
mov edx, eax
mov r8d, 0xa
call fcn.00405f80
jmp 0x405259
mov r8d, dword [rdi + 0x54]
mov rdx, rbp
mov rcx, rax
call qword [0x00407020]
movzx eax, word [rdi + 6]
movzx r11d, word [rdi + 0x14]
cmp eax, ebx
jbe 0x4050d7
lea r13, [r11 + rdi + 0x24]
lea r12, [r11 + rdi + 0x2c]
mov r14, rax
lea rdi, [r11 + rdi + 0x28]
cmp dword [r12], ebx
je 0x4050c5
mov edx, dword [r12]
mov ecx, dword [r13]
mov r8d, dword [rdi]
add rdx, rbp
add rcx, rsi
call qword [0x00407020]
add rdi, 0x28
add r12, 0x28
add r13, 0x28
sub r14, 1
jne 0x4050a8
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
call main
sub eax, dword [0x00407054]
cmp eax, 0x7fff
jbe 0x4050f7
xor eax, eax
jmp 0x40525c
mov edx, dword [rdi + 0xb4]
cmp edx, ebx
je 0x40515f
mov ecx, dword [rdi + 0xb0]
mov r9, rsi
sub r9, qword [rdi + 0x30]
add rcx, rsi
cmp edx, ebx
jbe 0x40515f
mov ebp, dword [rcx]
lea r11, [rcx + 4]
lea rcx, [rcx + 8]
mov r8d, dword [r11]
sub r8d, 8
je 0x40515a
movzx r10d, word [rcx]
mov eax, r10d
shr eax, 0xc
cmp eax, ebx
je 0x40514d
cmp eax, 0xa
jne 0x4051cd
and r10d, 0xfff
add r10d, ebp
add qword [r10 + rsi], r9
add r8d, 0xfffffffe
add rcx, 2
cmp r8d, ebx
ja 0x405128
sub edx, dword [r11]
jne 0x405115
cmp dword [rdi + 0x94], ebx
je 0x405256
mov edi, dword [rdi + 0x90]
add rdi, rsi
je 0x405256
mov eax, dword [rdi + 0xc]
cmp eax, ebx
je 0x405256
movabs r15, 0x8000000000000000
mov ebp, eax
add rbp, rsi
call main
sub eax, dword [0x00407054]
cmp eax, 0x7fff
ja 0x4050f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
cmp rax, rbx
je 0x405292
mov ebp, dword [rdi]
mov r12d, dword [rdi + 0x10]
add rbp, rsi
add r12, rsi
jmp 0x40523e
lea rdx, [0x00401630]
jmp 0x405280
mov rax, rcx
mov rdx, rbx
movzx r13d, bx
and rax, r15
cmp rax, r15
je 0x40520c
lea rcx, [rcx + rsi + 2]
mov qword [rsp + 0x28], rcx
call qword [0x00407028]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x20], ax
mov word [rsp + 0x22], ax
jmp 0x405211
mov r13w, word [rbp]
lea r9, [rsp + 0x60]
movzx r8d, r13w
mov rcx, r14
mov qword [rsp + 0x60], rbx
call qword [section..data]
mov r11, qword [rsp + 0x60]
cmp r11, rbx
je 0x405279
mov qword [r12], r11
add rbp, 8
add r12, 8
mov rcx, qword [rbp]
cmp rcx, rbx
jne 0x4051d9
mov eax, dword [rdi + 0x20]
add rdi, 0x14
cmp eax, ebx
jne 0x40518f
mov rbx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, [0x00401650]
lea rcx, [0x00407060]
or r8d, 0xffffffff
call fcn.00406030
jmp 0x405259
lea rdx, [0x00401640]
jmp 0x405280