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

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
movzx ebx, r8b
movzx ebp, dl
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov byte [rcx + 0x38], al
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov rcx, qword [0x1401dd8a8]
test rcx, rcx
jne 0x1400df311
mov ecx, pe_nt_image_headers64
call fcn.140128f74
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.14005bf70
mov rcx, rax
mov qword [0x1401dd8a8], rax
mov rax, qword [rcx]
call qword [rax + 0x60]
mov byte [rsi + 0x38], al
mov rcx, qword [0x1401dd8a8]
test rcx, rcx
jne 0x1400df347
mov ecx, pe_nt_image_headers64
call fcn.140128f74
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.14005bf70
mov rcx, rax
mov qword [0x1401dd8a8], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
mov byte [rsi + 0x39], al
mov rcx, qword [0x1401dd8a8]
test rcx, rcx
jne 0x1400df37d
mov ecx, pe_nt_image_headers64
call fcn.140128f74
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.14005bf70
mov rcx, rax
mov qword [0x1401dd8a8], rax
mov rax, qword [rcx]
call qword [rax + 0x30]
mov byte [rsi + 0x3a], al
mov byte [rsi + 0x3b], 0
test bl, bl
je 0x1400df413
mov eax, dword [0x1401cf814]
test eax, eax
jle 0x1400df3a2
mov byte [rsi + 0x3b], 1
jmp 0x1400df413
jns 0x1400df413
call fcn.140051430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xc8]
mov ebx, eax
call fcn.140051430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_htonl]
cmp ebx, 1
je 0x1400df3df
cmp ebx, 2
jne 0x1400df413
sub eax, 3
je 0x1400df3df
cmp eax, 1
je 0x1400df39c
mov byte [rsi + 0x3b], 0
jmp 0x1400df413
call fcn.140051430
mov rbx, rax
call fcn.140051430
mov rdi, rax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0xa0]
mov rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x80]
cmp rbx, rax
sete al
mov byte [rsi + 0x3b], al
cmp byte [rsi + 0x3a], 0
jne 0x1400df41d
mov byte [rsi + 0x3b], 0
mov rcx, qword [0x1401dd8a8]
test rcx, rcx
jne 0x1400df44a
mov ecx, pe_nt_image_headers64
call fcn.140128f74
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.14005bf70
mov rcx, rax
mov qword [0x1401dd8a8], rax
mov rax, qword [rcx]
call qword [rax + 0x50]
mov byte [rsi + 0x3c], al
mov ebx, 0x20000
mov eax, 0x40000
cmp byte [rsi + 0x3b], 0
cmovne ebx, eax
mov qword [rsi + 0x48], rbx
cmp byte [0x1401d8e3c], 0
je 0x1400df492
test bpl, bpl
je 0x1400df492
mov edx, 0x200000
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x20003000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1400df4b2
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400df58a
mov qword [rsi + 0x40], rax
mov eax, 0xec0
lock xadd qword [0x1401dd8c8], rax
movzx ecx, ax
add rcx, qword [rsi + 0x40]
mov qword [rsi + 0x20], rcx
lea r14, [0x1404761c0]
mov r8, r14
lea rbp, [0x140476040]
sub r8, rbp
mov rdx, rbp
call fcn.140147a90
lea r15, [0x1404761c1]
lea rdi, [0x1404762b1]
lea rbx, [0x140476241]
mov rcx, qword [rsi + 0x20]
sub rcx, rbp
add rcx, r14
cmp byte [rsi + 0x3c], 0
je 0x1400df51b
mov r8, rdi
sub r8, rbx
mov rdx, rbx
jmp 0x1400df524
mov r8, rbx
sub r8, r15
mov rdx, r15
call fcn.140147a90
lea rax, [0x140476ac0]
mov r8, rax
lea rdx, [0x1404769f0]
sub r8, rdx
mov rcx, rdx
sub rcx, rax
add rcx, 0x10000
and rcx, 0xffffffffffffffc0
add rcx, qword [rsi + 0x20]
call fcn.140147a90
mov rax, rbx
sub eax, r15d
sub edi, ebx
cmp byte [rsi + 0x3c], 0
cmove edi, eax
sub edi, ebp
add edi, r14d
mov dword [rsi + 0x2c], edi
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
lea rdx, str.Failed_to_allocate_executable_memory
lea rcx, [rsp + 0x28]
call fcn.140002af0
lea rdx, [0x1401cb380]
lea rcx, [rsp + 0x28]
call fcn.140148090
int3