Function at 0x1400057f0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14004b140]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r13, rdx
mov r12, rcx
xor ebx, ebx
mov r8d, 0x800
lea rdx, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rax, [rbp + 0xb0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x140005860
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140001190
nop
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140005970
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
lea rcx, [0x14003cc64]
lea r8, [0x14003cc66]
mov edx, 0x100
nop
movzx eax, word [rcx]
cmp ax, dx
jae 0x14000590b
movzx eax, al
mov byte [rbp + rax - 0x50], 1
add rcx, 2
cmp rcx, r8
jne 0x1400058c0
lea rcx, [rsi - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax + rax]
movzx eax, word [r8]
cmp ax, dx
jae 0x140005900
cmp byte [rbp + rax - 0x50], 0
jne 0x140005968
cmp r8, rbx
je 0x140005970
sub r8, 2
jmp 0x1400058f0
lea rcx, [rsi - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
mov r9d, 0x5c
nop dword [rax]
nop word [rax + rax]
mov ecx, 1
movzx edx, word [r8]
lea rax, [0x14003cc64]
cmp r9w, dx
je 0x140005968
cmp rcx, 1
je 0x14000595d
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140005946
test rax, rax
jne 0x140005968
cmp r8, rbx
je 0x140005970
sub r8, 2
jmp 0x140005930
sub r8, rbx
sar r8, 1
jmp 0x140005973
mov r8, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.140001190
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400059e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c81
call fcn.140025b04
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsp + 0x58], xmm1
lea r8, [0x14003cc68]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140004fd0
nop
mov r9, qword [str.ntleak.dll]
inc rdi
cmp word [r9 + rdi*2], 0
jne 0x140005a15
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x140005a68
lea rax, [rdi + rsi]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rcx, 7
cmova rbx, qword [rsp + 0x68]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.msvcrt.dll_memmove
lea rax, [rsi + rdi]
xor esi, esi
mov word [rbx + rax*2], si
jmp 0x140005a7f
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140005150
xor esi, esi
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rsp + 0x78], 0
jne 0x140005aad
mov ebx, 0xffffd8ea
jmp 0x140005bc2
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rbp + 0xb2]
lea rdi, [rdi + rcx*2]
lea rdx, [r12 + 0x14]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [r12 + 0x14]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov eax, dword [r12]
mov dword [rcx + rdi + 1], eax
mov eax, dword [r12 + 4]
mov dword [rcx + rdi + 5], eax
mov eax, dword [r12 + 8]
mov dword [rcx + rdi + 9], eax
mov eax, dword [r12 + 0xc]
mov dword [rcx + rdi + 0xd], eax
lea eax, [rcx + rdi]
add eax, 0x11
lea rcx, [rbp + 0xb0]
sub eax, ecx
mov edi, eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x140005b44
mov ebx, 0xffffd8e9
jmp 0x140005bc2
mov rax, qword [r12 + 0x48]
mov qword [rax], rbx
mov qword [rsp + 0x20], rsi
mov r9, rdi
lea r8, [rbp + 0xb0]
mov rdx, rbx
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
xor edx, edx
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
mov ebx, dword [rsp + 0x40]
mov ecx, 2
call fcn.140029cd0
mov r9d, ebx
mov r8, rdi
lea rdx, str.remote_thread_handle_:_0x_p__threadid_:__u_n
mov rcx, rax
call fcn.1400060d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140005c03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bfe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c81
call fcn.140025b04
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140005c53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c7b
call fcn.140025b04
mov eax, ebx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140025c20
mov rbx, qword [rsp + 0x440]
add rsp, 0x400
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140029ae0
nop
call fcn.140029ae0
nop
int3