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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
movzx ebx, r8b
movzx ebp, dl
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
xor eax, eax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov byte [rcx + 0x48], al
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x68], eax
mov rcx, qword [0x14062e1b8]
test rcx, rcx
jne 0x14010424f
mov ecx, 0x110
call fcn.140283d20
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1400777f0
mov rcx, rax
mov qword [0x14062e1b8], rax
mov rax, qword [rcx]
call qword [rax + 0x60]
mov byte [rsi + 0x48], al
mov rcx, qword [0x14062e1b8]
test rcx, rcx
jne 0x140104285
mov ecx, 0x110
call fcn.140283d20
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1400777f0
mov rcx, rax
mov qword [0x14062e1b8], rax
mov rax, qword [rcx]
call qword [rax + 0x28]
mov byte [rsi + 0x49], al
mov rcx, qword [0x14062e1b8]
test rcx, rcx
jne 0x1401042bb
mov ecx, 0x110
call fcn.140283d20
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1400777f0
mov rcx, rax
mov qword [0x14062e1b8], rax
mov rax, qword [rcx]
call qword [rax + 0x30]
mov byte [rsi + 0x4a], al
mov byte [rsi + 0x4b], 0
test bl, bl
je 0x1401043ae
mov eax, dword [0x14039745c]
test eax, eax
jle 0x1401042e3
mov byte [rsi + 0x4b], 1
jmp 0x1401043ae
jns 0x1401043ae
mov rcx, qword [0x14062e1b8]
test rcx, rcx
jne 0x140104316
mov ecx, 0x110
call fcn.140283d20
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1400777f0
mov rcx, rax
mov qword [0x14062e1b8], rax
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov ebx, eax
mov rcx, qword [0x14062e1b8]
test rcx, rcx
jne 0x14010434e
mov ecx, 0x110
call fcn.140283d20
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1400777f0
mov rcx, rax
mov qword [0x14062e1b8], rax
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp ebx, 1
jne 0x14010438c
call fcn.14006a030
mov rdi, rax
call fcn.14006a030
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x80]
mov rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0xa0]
cmp rax, rbx
sete al
mov byte [rsi + 0x4b], al
jmp 0x1401043ae
cmp ebx, 2
jne 0x1401043ae
sub eax, 1
je 0x1401043aa
sub eax, 1
je 0x1401043aa
sub eax, 1
je 0x140104359
cmp eax, 1
jne 0x1401043aa
mov byte [rsi + 0x4b], al
jmp 0x1401043ae
mov byte [rsi + 0x4b], 0
cmp byte [rsi + 0x4a], 0
jne 0x1401043b8
mov byte [rsi + 0x4b], 0
mov rcx, qword [0x14062e1b8]
test rcx, rcx
jne 0x1401043e5
mov ecx, 0x110
call fcn.140283d20
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.1400777f0
mov rcx, rax
mov qword [0x14062e1b8], rax
mov rax, qword [rcx]
call qword [rax + 0x50]
mov byte [rsi + 0x4c], al
mov ebx, 0x20000
mov eax, 0x40000
cmp byte [rsi + 0x4b], 0
cmovne ebx, eax
mov qword [rsi + 0x58], rbx
cmp byte [0x14062e200], 0
je 0x14010442d
test bpl, bpl
je 0x14010442d
mov edx, 0x200000
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x20003000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x14010444d
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140104540
mov qword [rsi + 0x50], rax
mov eax, 0xec0
lock xadd qword [0x14062e1f8], rax
movzx ecx, ax
add rcx, qword [rsi + 0x50]
mov qword [rsi + 0x20], rcx
lea r15, [0x140658280]
mov r8, r15
lea r14, [0x140658040]
sub r8, r14
mov rdx, r14
call fcn.140286390
mov rcx, qword [rsi + 0x20]
lea r12, [0x140658281]
lea rbp, [0x140658371]
lea rdi, [0x140658301]
sub rcx, r14
add rcx, r15
cmp byte [rsi + 0x4c], 0
je 0x1401044b6
mov r8, rbp
sub r8, rdi
mov rdx, rdi
jmp 0x1401044bf
mov r8, rdi
sub r8, r12
mov rdx, r12
call fcn.140286390
lea rdx, [0x140658ab0]
mov rbx, rdx
lea r8, [0x140658b80]
sub rbx, r8
add rbx, 0x10000
and rbx, 0xffffffffffffffc0
sub r8, rdx
mov rcx, qword [rsi + 0x20]
add rcx, rbx
call fcn.140286390
mov rax, rdi
sub eax, r12d
sub ebp, edi
cmp byte [rsi + 0x4c], 0
cmove ebp, eax
sub ebp, r14d
add ebp, r15d
mov dword [rsi + 0x2c], ebp
mov rcx, qword [rsi + 0x20]
mov rax, rcx
sub rax, r14
add rax, r15
mov qword [rsi + 0x38], rax
lea rax, [rbx + rcx]
mov qword [rsi + 0x40], rax
mov rax, rsi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Failed_to_allocate_executable_memory
lea rcx, [rsp + 0x20]
call fcn.140003000
lea rdx, [0x14038dd00]
lea rcx, [rsp + 0x20]
call fcn.1402871a0
int3