Function at 0x140004fd8
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 0x140005026
movzx eax, word [rcx + 0xa]
mov ecx, 0x111
and ax, 0x11
cmp ax, cx
je 0x140005026
lea rdx, [0x140001608]
jmp 0x140005280
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 0x140005079
lea rdx, [0x140001618]
lea rcx, [0x140007060]
or r8d, 0xffffffff
call fcn.140006030
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140007060]
mov edx, eax
mov r8d, 0xa
call fcn.140005f80
jmp 0x140005259
mov r8d, dword [rdi + 0x54]
mov rdx, rbp
mov rcx, rax
call qword [0x140007020]
movzx eax, word [rdi + 6]
movzx r11d, word [rdi + 0x14]
cmp eax, ebx
jbe 0x1400050d7
lea r13, [r11 + rdi + 0x24]
lea r12, [r11 + rdi + 0x2c]
mov r14, rax
lea rdi, [r11 + rdi + 0x28]
cmp dword [r12], ebx
je 0x1400050c5
mov edx, dword [r12]
mov ecx, dword [r13]
mov r8d, dword [rdi]
add rdx, rbp
add rcx, rsi
call qword [0x140007020]
add rdi, 0x28
add r12, 0x28
add r13, 0x28
sub r14, 1
jne 0x1400050a8
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
call main
sub eax, dword [0x140007054]
cmp eax, 0x7fff
jbe 0x1400050f7
xor eax, eax
jmp 0x14000525c
mov edx, dword [rdi + 0xb4]
cmp edx, ebx
je 0x14000515f
mov ecx, dword [rdi + 0xb0]
mov r9, rsi
sub r9, qword [rdi + 0x30]
add rcx, rsi
cmp edx, ebx
jbe 0x14000515f
mov ebp, dword [rcx]
lea r11, [rcx + 4]
lea rcx, [rcx + 8]
mov r8d, dword [r11]
sub r8d, 8
je 0x14000515a
movzx r10d, word [rcx]
mov eax, r10d
shr eax, 0xc
cmp eax, ebx
je 0x14000514d
cmp eax, 0xa
jne 0x1400051cd
and r10d, 0xfff
add r10d, ebp
add qword [r10 + rsi], r9
add r8d, 0xfffffffe
add rcx, 2
cmp r8d, ebx
ja 0x140005128
sub edx, dword [r11]
jne 0x140005115
cmp dword [rdi + 0x94], ebx
je 0x140005256
mov edi, dword [rdi + 0x90]
add rdi, rsi
je 0x140005256
mov eax, dword [rdi + 0xc]
cmp eax, ebx
je 0x140005256
movabs r15, 0x8000000000000000
mov ebp, eax
add rbp, rsi
call main
sub eax, dword [0x140007054]
cmp eax, 0x7fff
ja 0x1400050f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
cmp rax, rbx
je 0x140005292
mov ebp, dword [rdi]
mov r12d, dword [rdi + 0x10]
add rbp, rsi
add r12, rsi
jmp 0x14000523e
lea rdx, [0x140001630]
jmp 0x140005280
mov rax, rcx
mov rdx, rbx
movzx r13d, bx
and rax, r15
cmp rax, r15
je 0x14000520c
lea rcx, [rcx + rsi + 2]
mov qword [rsp + 0x28], rcx
call qword [0x140007028]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x20], ax
mov word [rsp + 0x22], ax
jmp 0x140005211
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 0x140005279
mov qword [r12], r11
add rbp, 8
add r12, 8
mov rcx, qword [rbp]
cmp rcx, rbx
jne 0x1400051d9
mov eax, dword [rdi + 0x20]
add rdi, 0x14
cmp eax, ebx
jne 0x14000518f
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, [0x140001650]
lea rcx, [0x140007060]
or r8d, 0xffffffff
call fcn.140006030
jmp 0x140005259
lea rdx, [0x140001640]
jmp 0x140005280