Function at 0x140021af0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get file attributes
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 - 0x90]
sub rsp, 0x190
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
jne 0x140021b46
lea rcx, [0x140029590]
call fcn.1400220ef
xor al, al
jmp 0x140042e67
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call 0x14004463c
mov r8d, 0x24
mov rdx, rbx
lea rcx, [rsp + 0x60]
call 0x14002b5fb
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov edx, dword [rsp + rcx + 0x70]
test dl, 6
je 0x140021b8c
lea rcx, str.__ERROR__Opening_the_file_failed:__X_n
call fcn.14002213a
jmp 0x140021bb8
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call qword [0x140025330]
mov rcx, qword [rbp + 0x70]
add rcx, qword [rbp + 0x78]
cmp rcx, 0x1000
jge 0x140021bf0
lea rcx, str.__ERROR__Filesize_is_invalid._n
call fcn.140022168
lea rcx, [rsp + 0x70]
call 0x14002dbc2
test rax, rax
jne 0x140021e72
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [0x140025210]
xor bl, bl
jmp 0x140042ec5
call 0x140043df1
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [0x140025328]
mov r8, qword [rbp + 0x78]
add r8, qword [rbp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call qword [0x140025320]
lea rcx, [rsp + 0x70]
call 0x14002dc28
test rax, rax
jne 0x140021c4b
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [0x140025210]
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140021c70
lea rcx, str.__ERROR__Invalid_file_n
call fcn.140022211
mov rcx, rsi
call 0x140043789
xor bl, bl
jmp 0x140042f45
movsxd r14, dword [rsi + 0x3c]
add r14, rsi
mov eax, 0x8664
cmp word [r14 + 4], ax
je 0x140021c9e
lea rcx, str.__ERROR__Your_computer_does_currently_not_support_Carbon_n_if_you_think_this_is_a_mistake_contact_support_https:__discord.gg_78k3GPc9NF
call fcn.14002223f
mov rcx, rsi
call 0x1400437b7
xor bl, bl
jmp 0x140042f73
mov r8d, dword [r14 + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [r14 + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140021d0d
mov r8d, dword [r14 + 0x50]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x140021d0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Memory_allocation_failed__ex__0x_X__nContact_support_https:__discord.gg_78k3GPc9NF__n
call fcn.1400222ae
mov rcx, rsi
call 0x140043826
xor bl, bl
jmp 0x140042fe2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x40], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
movzx ebx, word [r14 + 0x14]
add rbx, 0x28
xor r13d, r13d
mov r15d, r13d
cmp word [r14 + 6], r13w
je 0x140021d83
add rbx, r14
mov eax, dword [rbx]
test eax, eax
je 0x140021d72
mov r9d, eax
mov r8d, dword [rbx + 4]
add r8, rsi
mov edx, dword [rbx - 4]
add rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140021df8
inc r15d
add rbx, 0x28
movzx eax, word [r14 + 6]
cmp r15d, eax
jne 0x140021d46
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rsp + 0x50]
mov rcx, rsi
call 0x140043920
mov rdx, r12
jmp 0x140021e60