Function at 0x140006370
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 [0x140042140]
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 0x1400063e0
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140005e00
nop
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x1400064f0
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
lea rcx, [0x140033b38]
lea r8, [0x140033b3a]
mov edx, 0x100
nop
movzx eax, word [rcx]
cmp ax, dx
jae 0x14000648b
movzx eax, al
mov byte [rbp + rax - 0x50], 1
add rcx, 2
cmp rcx, r8
jne 0x140006440
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 0x140006480
cmp byte [rbp + rax - 0x50], 0
jne 0x1400064e8
cmp r8, rbx
je 0x1400064f0
sub r8, 2
jmp 0x140006470
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, [0x140033b38]
cmp r9w, dx
je 0x1400064e8
cmp rcx, 1
je 0x1400064dd
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x1400064c6
test rax, rax
jne 0x1400064e8
cmp r8, rbx
je 0x1400064f0
sub r8, 2
jmp 0x1400064b0
sub r8, rbx
sar r8, 1
jmp 0x1400064f3
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.140005e00
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140006565
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006801
call fcn.140024988
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsp + 0x58], xmm1
lea r8, str.NTLEAS_
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140005c90
nop
mov r9, qword [str.ntleak.dll]
inc rdi
cmp word [r9 + rdi*2], 0
jne 0x140006595
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x1400065e8
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 0x1400065ff
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140005f30
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 0x14000662d
mov ebx, 0xffffd8ea
jmp 0x140006742
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 0x1400066c4
mov ebx, 0xffffd8e9
jmp 0x140006742
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.140028970
mov r9d, ebx
mov r8, rdi
lea rdx, str.remote_thread_handle_:_0x_p__threadid_:__u_n
mov rcx, rax
call fcn.140007130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140006783
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000677e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006801
call fcn.140024988
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400067d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400067ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067fb
call fcn.140024988
mov eax, ebx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140024ab0
mov rbx, qword [rsp + 0x440]
add rsp, 0x400
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140028790
nop
call fcn.140028790
nop
int3