Function at 0x140001380
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call fcn.140003200
nop
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x150]
call fcn.140003200
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400013fc
mov rdx, qword [rbx]
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.140003070
mov r8d, 2
lea rdx, str.encrypt
lea rcx, [rsp + 0x150]
call fcn.140003070
lea rdx, [0x1400012b0]
lea rcx, [rsp + 0x30]
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__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [rbp + 4]
call fcn.1400038a0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x1400014c2
mov edi, esi
not edi
nop word [rax + rax]
movsx r8d, byte [rbp + 4]
mov ecx, r8d
not ecx
and ecx, esi
mov eax, edi
and eax, r8d
add ecx, eax
lea edx, [rcx + rcx*2]
mov eax, r8d
xor eax, esi
not eax
and r8d, esi
add eax, r8d
lea edx, [rdx + rax*2]
add edx, 2
lea rcx, [rsp + 0x160]
call fcn.140003960
lea rdx, [0x1400012b0]
lea rcx, [rsp + 0x30]
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__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [rbp + 4]
call fcn.1400038a0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140001460
lea rcx, [rsp + 0x48]
call fcn.1400037f0
test rax, rax
jne 0x1400014ef
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
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]
lea rcx, [rsp + 0x168]
call fcn.1400037f0
test rax, rax
jne 0x140001526
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x150]
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]
nop
lea rcx, [rsp + 0x150]
call fcn.1400012c0
nop
lea rcx, [rsp + 0x30]
call fcn.1400012c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001575
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001570
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400015ab
mov rcx, r8
call fcn.1400041cc
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140003f20
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3