Function at 0x40ea10
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 0x40ea5e
movzx eax, word [rcx + 0xa]
mov ecx, 0x111
and ax, 0x11
cmp ax, cx
je 0x40ea5e
lea rdx, [0x0040d750]
jmp 0x40ec9c
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
test rax, rax
jne 0x40ea9d
lea rdx, [0x0040d760]
call fcn.0040e804
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rsi + 0xa]
mov edx, eax
call fcn.0040e760
jmp 0x40ec75
mov r8d, dword [rdi + 0x54]
mov rdx, rbp
mov rcx, rax
call qword [0x00413040]
movzx ecx, word [rdi + 6]
movzx eax, word [rdi + 0x14]
test ecx, ecx
je 0x40eafc
lea r15, [rdi + 0x24]
lea r14, [rdi + 0x2c]
add rdi, 0x28
add r15, rax
add r14, rax
add rdi, rax
mov r12d, ecx
cmp dword [r14], ebx
je 0x40eaeb
mov edx, dword [r14]
mov ecx, dword [r15]
mov r8d, dword [rdi]
add rdx, rbp
add rcx, rsi
call qword [0x00413040]
add rdi, 0x28
add r14, 0x28
add r15, 0x28
dec r12
jne 0x40ead1
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
call fcn.0040fbcc
sub eax, dword [0x00413080]
cmp eax, 0x7fff
jbe 0x40eb1c
xor eax, eax
jmp 0x40ec78
mov edx, dword [rdi + 0xb4]
test edx, edx
je 0x40eb88
mov ecx, dword [rdi + 0xb0]
mov r10, rsi
sub r10, qword [rdi + 0x30]
add rcx, rsi
test edx, edx
je 0x40eb88
mov ebp, dword [rcx]
lea r11, [rcx + 4]
lea rcx, [rcx + 8]
mov r8d, dword [r11]
sub r8d, 8
je 0x40eb77
movzx eax, word [rcx]
mov r9d, eax
shr r9d, 0xc
test r9d, r9d
je 0x40eb6d
cmp r9d, 0xa
jne 0x40eb7c
and eax, 0xfff
add eax, ebp
add qword [rax + rsi], r10
add rcx, 2
add r8d, 0xfffffffe
jne 0x40eb4d
sub edx, dword [r11]
jmp 0x40eb38
lea rdx, [0x0040d778]
jmp 0x40ec9c
cmp dword [rdi + 0x94], ebx
je 0x40ec72
mov edi, dword [rdi + 0x90]
add rdi, rsi
je 0x40ec72
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x40ec72
movabs r13, 0x8000000000000000
mov ebp, eax
add rbp, rsi
call fcn.0040fbcc
sub eax, dword [0x00413080]
cmp eax, 0x7fff
ja 0x40eb15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x40eca3
mov r14d, dword [rdi]
mov r15d, dword [rdi + 0x10]
add r14, rsi
add r15, rsi
jmp 0x40ec5b
mov rax, rcx
mov rdx, rbx
movzx ebp, bx
and rax, r13
cmp rax, r13
je 0x40ec2b
add rcx, 2
add rcx, rsi
mov qword [rsp + 0x28], rcx
call qword [0x00413030]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x20], ax
mov word [rsp + 0x22], ax
jmp 0x40ec2f
movzx ebp, word [r14]
lea r9, [rsp + 0x60]
movzx r8d, bp
mov rcx, r12
mov qword [rsp + 0x60], rbx
call qword [0x00413068]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x40ec95
mov qword [r15], rax
add r14, 8
add r15, 8
mov rcx, qword [r14]
test rcx, rcx
jne 0x40ebf7
mov eax, dword [rdi + 0x20]
add rdi, 0x14
test eax, eax
jne 0x40ebb8
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, [0x0040d798]
call fcn.0040e804
jmp 0x40ec75
lea rdx, [0x0040d788]
jmp 0x40ec9c