Function at 0x140001300
Capabilities:
Allocate or change rwx memory
Check if file exists
Create thread
Get file attributes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rdi, rcx
lea rcx, str.C:_ac.dll
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001360
lea rcx, str.File_doesnt_exist_n
call fcn.140001020
xor al, al
jmp 0x140001722
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x60]
call fcn.140002680
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov edx, dword [rsp + rcx + 0x70]
test dl, 6
je 0x14000139d
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.140001020
jmp 0x1400013c9
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rbp + 0x70]
add rcx, qword [rbp + 0x78]
cmp rcx, 0x1000
jge 0x140001401
lea rcx, str.Filesize_is_invalid._n
call fcn.140001020
lea rcx, [rsp + 0x70]
call fcn.140002aa0
test rax, rax
jne 0x1400016ab
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 [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor bl, bl
jmp 0x140001715
call fcn.1400030a4
mov r14, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rbp + 0x78]
add r8, qword [rbp + 0x70]
mov rdx, r14
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x70]
call fcn.140002aa0
test rax, rax
jne 0x14000145c
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 [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov eax, 0x5a4d
cmp word [r14], ax
je 0x140001482
lea rcx, str.Invalid_file_n
call fcn.140001020
mov rcx, r14
call fcn.140003060
xor bl, bl
jmp 0x140001715
movsxd rsi, dword [r14 + 0x3c]
add rsi, r14
mov eax, 0x8664
cmp word [rsi + 4], ax
je 0x1400014af
lea rcx, str.Invalid_platform_n
call fcn.140001020
mov rcx, r14
call fcn.140003060
xor bl, bl
jmp 0x140001715
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x14000151e
mov r8d, dword [rsi + 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 0x14000151e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_allocation_failed__ex__0x_X_n
call fcn.140001020
mov rcx, r14
call fcn.140003060
xor bl, bl
jmp 0x140001715
xor r13d, r13d
mov qword [rsp + 0x50], r13
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 [rsi + 0x14]
add rbx, 0x28
mov r15d, r13d
cmp word [rsi + 6], r13w
je 0x14000158f
add rbx, rsi
mov eax, dword [rbx]
test eax, eax
je 0x14000157f
mov r9d, eax
mov r8d, dword [rbx + 4]
add r8, r14
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 0x140001609
inc r15d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r15d, eax
jne 0x140001553
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [r14 + 0x10], xmm1
mov qword [rsp + 0x20], r13
mov r9d, 0x1000
mov r8, r14
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, r14
call fcn.140003060
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x14000162a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_allocation_failed__1___ex__0x_X_n
call fcn.140001020
mov rdx, r12
jmp 0x140001699
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_map_sections:_0x_x_n
call fcn.140001020
mov rcx, r14
call fcn.140003060
mov rdx, r12
jmp 0x140001699
mov qword [rsp + 0x20], r13
mov r9d, 0x1000
lea r8, [0x140001820]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400016af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread_creation_failed_0x_X_n
call fcn.140001020
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rdx, rsi
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor bl, bl
jmp 0x140001715
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], r13
lea r9d, [rax + 0x18]
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsp + 0x50]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1400016c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.140001760
movzx eax, bl
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.140003040
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret