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

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
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 dword [rcx + 0x30], eax
mov qword [rcx + 0x34], 0xffffffffffffffff
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov byte [rcx + 0x50], al
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov dword [rcx + 0x70], eax
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x1401500e8
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + 0x68]
mov byte [rsi + 0x50], al
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x14015011e
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + 0x30]
mov byte [rsi + 0x51], al
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x140150154
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + gethostname]
mov byte [rsi + 0x52], al
mov byte [rsi + 0x53], 0
test bl, bl
je 0x14015021e
mov eax, dword [0x140496b30]
test eax, eax
jle 0x14015017c
mov byte [rsi + 0x53], 1
jmp 0x14015021e
jns 0x14015021e
call fcn.140071410
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xd0]
mov ebx, eax
call fcn.140071410
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_htonl]
cmp ebx, 1
jne 0x1401501d5
call fcn.140071410
mov rdi, rax
call fcn.140071410
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x88]
mov rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0xa8]
cmp rax, rbx
jmp 0x140150218
cmp ebx, 2
jne 0x14015021e
sub eax, 3
je 0x1401501ea
sub eax, 1
je 0x140150173
mov byte [rsi + 0x53], 0
jmp 0x14015021e
call fcn.140071410
mov rbx, rax
call fcn.140071410
mov rdi, rax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0xa8]
mov rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x88]
cmp rbx, rax
sete al
mov byte [rsi + 0x53], al
cmp byte [rsi + 0x52], 0
jne 0x140150228
mov byte [rsi + 0x53], 0
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x140150255
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x70], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + 0x58]
mov byte [rsi + 0x54], al
mov ebx, 0x20000
mov eax, 0x40000
cmp byte [rsi + 0x53], 0
cmovne ebx, eax
mov qword [rsi + 0x60], rbx
cmp byte [0x1404a2447], 0
je 0x14015029d
test bpl, bpl
je 0x14015029d
mov edx, 0x200000
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x20003000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1401502bd
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1401503b0
mov qword [rsi + 0x58], rax
mov eax, 0xec0
lock xadd qword [0x1404a4990], rax
movzx ecx, ax
add rcx, qword [rsi + 0x58]
mov qword [rsi + 0x20], rcx
lea r15, [0x14075b280]
mov r8, r15
lea r14, [0x14075b040]
sub r8, r14
mov rdx, r14
call fcn.14032fed0
lea r12, [0x14075b281]
lea rbp, [0x14075b371]
lea rdi, [0x14075b301]
mov rcx, qword [rsi + 0x20]
sub rcx, r14
add rcx, r15
cmp byte [rsi + 0x54], 0
je 0x140150326
mov r8, rbp
sub r8, rdi
mov rdx, rdi
jmp 0x14015032f
mov r8, rdi
sub r8, r12
mov rdx, r12
call fcn.14032fed0
lea rdx, [0x14075ba70]
mov rbx, rdx
lea r8, [0x14075bb40]
sub rbx, r8
add rbx, 0x10000
and rbx, 0xffffffffffffffc0
sub r8, rdx
mov rcx, qword [rsi + 0x20]
add rcx, rbx
call fcn.14032fed0
mov rax, rdi
sub eax, r12d
sub ebp, edi
cmp byte [rsi + 0x54], 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 + 0x40], rax
lea rax, [rbx + rcx]
mov qword [rsi + 0x48], 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 + 0x28]
call fcn.140003de0
lea rdx, [0x14048ca78]
lea rcx, [rsp + 0x28]
call fcn.140330ac0
int3