Function at 0x14000a900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1400]
mov eax, 0x1500
call fcn.14004a8a0
sub rsp, rax
mov rax, qword [0x140075270]
xor rax, rsp
mov qword [rbp + 0x13f0], rax
xor edi, edi
mov dword [rsp + 0x20], edi
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
movabs rax, 0x5555555555555555
mov qword [rbp + 0x13e8], rax
mov qword [rbp + 0x68], rdx
lea eax, [rdi + 1]
movabs r8, 0x5851f42d4c957f2d
nop word [rax + rax]
mov rcx, rdx
shr rcx, 0x3e
xor rdx, rcx
imul rdx, r8
add rdx, rax
mov qword [rbp + rax*8 + 0x68], rdx
inc rax
cmp rax, 0x138
jb 0x14000a970
mov dword [rbp + 0x60], 0x138
lea rax, [0x14004db10]
mov qword [rsp + 0x40], rax
lea rax, [0x14004db18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x40], rsi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x38], edi
lea rdx, [0x14004db20]
lea rcx, [rsp + 0x50]
call fcn.140002230
lea rdx, [0x14000b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x14000abf0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0x40
mov qword [rsp + 0x38], 0xffffffffffffffff
movabs rdx, 0xfffffffff
lea rcx, [rsp + 0x28]
call fcn.140004540
lea rdx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_long_unsigned___int64_____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x14004dcb0]
movdqu xmmword [rbp + 0x50], xmm1
mov word [rbp + 0x40], di
mov dword [rsp + 0x20], 5
movups xmmword [rsp + 0x28], xmm0
mov ecx, dword [rbp - 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14000aae3
mov rax, qword [rbp - 0x68]
mov r8, qword [rax]
test r8, r8
je 0x14000aae3
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x40]
cmovb r8, qword [rbp - 0x40]
sub r8, rdx
sar r8, 1
jmp 0x14000ab1b
test cl, 4
jne 0x14000ab11
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000ab11
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x14000ab1b
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14000ab2a
lea rcx, [rbp + 0x40]
call fcn.140009320
nop
lea rbx, [rbp + 0x40]
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
cmovae rbx, rcx
jb 0x14000ab76
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ab70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ab70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004a298
nop
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x40], rsi
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x3c], r8d
lea rcx, [rsp + 0x58]
call fcn.1400041d0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rbp + 0x13f0]
xor rcx, rsp
call fcn.14004a900
lea r11, [rsp + 0x1500]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret