Function at 0x140005920
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 0x140005990
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.1400012c0
nop
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140005aa0
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
lea rcx, [0x14003cc84]
lea r8, [0x14003cc86]
mov edx, 0x100
nop
movzx eax, word [rcx]
cmp ax, dx
jae 0x140005a3b
movzx eax, al
mov byte [rbp + rax - 0x50], 1
add rcx, 2
cmp rcx, r8
jne 0x1400059f0
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 0x140005a30
cmp byte [rbp + rax - 0x50], 0
jne 0x140005a98
cmp r8, rbx
je 0x140005aa0
sub r8, 2
jmp 0x140005a20
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, [0x14003cc84]
cmp r9w, dx
je 0x140005a98
cmp rcx, 1
je 0x140005a8d
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140005a76
test rax, rax
jne 0x140005a98
cmp r8, rbx
je 0x140005aa0
sub r8, 2
jmp 0x140005a60
sub r8, rbx
sar r8, 1
jmp 0x140005aa3
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.1400012c0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140005b15
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005db1
call fcn.140025bb4
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsp + 0x58], xmm1
lea r8, [0x14003cc88]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140005100
nop
mov r9, qword [str.ntleak.dll]
inc rdi
cmp word [r9 + rdi*2], 0
jne 0x140005b45
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x140005b98
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 0x140005baf
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140005280
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 0x140005bdd
mov ebx, 0xffffd8ea
jmp 0x140005cf2
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 0x140005c74
mov ebx, 0xffffd8e9
jmp 0x140005cf2
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.140029d80
mov r9d, ebx
mov r8, rdi
lea rdx, str.remote_thread_handle_:_0x_p__threadid_:__u_n
mov rcx, rax
call fcn.140006200
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140005d33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005db1
call fcn.140025bb4
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140005d83
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005dab
call fcn.140025bb4
mov eax, ebx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140025cd0
mov rbx, qword [rsp + 0x440]
add rsp, 0x400
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140029b90
nop
call fcn.140029b90
nop
int3