Function at 0x140005450
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
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov r8d, 0x800
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
lea rax, [rbp + 0xc0]
mov rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x1400054c5
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
ja 0x140005a3f
mov ecx, 0xa
mov r15d, 7
mov qword [rsp + 0x70], r15
cmp rbx, 8
jae 0x14000551c
mov qword [rsp + 0x68], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.14000ee40
mov word [rsp + rbx + 0x58], r12w
jmp 0x14000556d
mov r14, rbx
or r14, r15
cmp r14, rax
jbe 0x14000552c
mov r14, rax
jmp 0x140005533
cmp r14, rcx
cmovb r14, rcx
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x58]
call fcn.140002f80
mov rdi, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.14000ee40
mov word [rbx + rdi], r12w
lea rdi, [rsp + 0x58]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x70]
cmp r13, 8
cmovae rdi, r14
mov r12, qword [rsp + 0x68]
test r12, r12
je 0x14000565f
mov ebx, 0x100
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.14000f4f0
lea rcx, [0x14003ab0c]
lea rdx, [0x14003ab0e]
movzx eax, word [rcx]
cmp ax, bx
jae 0x1400055fe
movzx eax, al
mov byte [rbp + rax - 0x40], 1
add rcx, 2
cmp rcx, rdx
jne 0x1400055b3
lea rcx, [r12 - 1]
mov rax, rsi
cmp rcx, rax
cmovb rax, rcx
lea rbx, [rdi + rax*2]
mov ecx, 0x100
movzx eax, word [rbx]
cmp ax, cx
jae 0x1400055f3
cmp byte [rbp + rax - 0x40], 0
jne 0x140005657
cmp rbx, rdi
je 0x14000565f
sub rbx, 2
jmp 0x1400055e4
lea rcx, [r12 - 1]
mov rax, rsi
cmp rcx, rax
cmovb rax, rcx
lea rbx, [rdi + rax*2]
mov r8d, 0x5c
nop word [rax + rax]
mov ecx, 1
movzx edx, word [rbx]
lea rax, [0x14003ab0c]
cmp r8w, dx
je 0x140005657
cmp rcx, 1
je 0x14000564c
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140005635
test rax, rax
jne 0x140005657
cmp rbx, rdi
je 0x14000565f
sub rbx, 2
jmp 0x140005620
sub rbx, rdi
sar rbx, 1
jmp 0x140005662
mov rbx, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
cmp r12, rbx
cmovb rbx, r12
lea r12, [rsp + 0x58]
cmp r13, 8
cmovae r12, r14
movabs rdi, 0x7ffffffffffffffe
cmp rbx, rdi
ja 0x140005a39
cmp rbx, 8
jae 0x1400056b9
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], r15
add rbx, rbx
mov r8, rbx
mov rdx, r12
lea rcx, [rbp - 0x68]
call fcn.14000ee40
xor eax, eax
mov word [rbp + rbx - 0x68], ax
jmp 0x14000571e
mov r14, rbx
or r14, 7
cmp r14, rdi
jbe 0x1400056ca
mov r14, rdi
jmp 0x1400056d7
cmp r14, 0xa
mov eax, 0xa
cmovb r14, rax
lea rdx, [r14 + 1]
lea rcx, [rbp - 0x68]
call fcn.140002f80
mov rdi, rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], r14
add rbx, rbx
mov r8, rbx
mov rdx, r12
mov rcx, rax
call fcn.14000ee40
xor eax, eax
mov word [rbx + rdi], ax
mov r13, qword [rsp + 0x70]
mov r14, qword [rsp + 0x58]
movabs rdi, 0x7ffffffffffffffe
cmp r13, 8
jb 0x140005759
lea rdx, [r13*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140005751
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a45
mov rcx, r14
call fcn.14000cfc4
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rsp + 0x68], xmm1
movq rbx, xmm1
mov rax, rdi
sub rax, rbx
cmp rax, 8
jb 0x140005a39
lea r12, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r12, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
lea r14, [rbx + 8]
lea rdi, [rsp + 0x78]
cmp r14, 7
jbe 0x1400057ee
mov r15, r14
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
jbe 0x1400057cb
mov r15, rax
jmp 0x1400057d8
cmp r15, 0xa
mov eax, 0xa
cmovb r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x78]
call fcn.140002f80
mov rdi, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r15
add rbx, rbx
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call fcn.14000ee40
movups xmm0, xmmword [0x14003ab10]
movups xmmword [rbx + rdi], xmm0
xor r15d, r15d
mov word [rdi + r14*2], r15w
mov rdx, qword [str.ntleak.dll]
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x140005821
mov r8, rsi
lea rcx, [rsp + 0x78]
call fcn.140005c60
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [rbp - 0x78], 0
jne 0x140005865
mov ebx, 0xffffd8ea
jmp 0x140005975
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rbp + 0xc2]
lea rdi, [rdi + rcx*2]
mov rsi, qword [rsp + 0x48]
lea rdx, [rsi + 0x14]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsi + 0x14]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd rcx, eax
add rcx, rdi
mov eax, dword [rsi]
mov dword [rcx], eax
mov eax, dword [rsi + 4]
mov dword [rcx + 4], eax
mov eax, dword [rsi + 8]
mov dword [rcx + 8], eax
mov eax, dword [rsi + 0xc]
mov dword [rcx + 0xc], eax
lea eax, [rcx + 0x10]
lea rcx, [rbp + 0xc0]
sub eax, ecx
mov edi, eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov r14, qword [rsp + 0x50]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x1400058f8
mov ebx, 0xffffd8e9
jmp 0x140005975
mov rax, qword [rsi + 0x48]
mov qword [rax], rbx
mov qword [rsp + 0x20], r15
mov r9, rdi
lea r8, [rbp + 0xc0]
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
mov ebx, dword [rsp + 0x40]
mov ecx, 2
call fcn.1400147c8
mov r9d, ebx
mov r8, rdi
lea rdx, str.remote_thread_handle_:_0x_p__threadid_:__u_n
mov rcx, rax
call fcn.140006010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, r15d
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400059b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a45
call fcn.14000cfc4
movdqa xmm0, xmmword [0x14003ae70]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r15w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140005a07
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a33
call fcn.14000cfc4
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14000d0e0
mov rbx, qword [rsp + 0x460]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140013820
nop
call fcn.140002f00
nop
call fcn.140002f00
nop
call fcn.140013820
int3