Function at 0x140106910
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14012d010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rdx
mov qword [rsp + 0x68], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call fcn.14010fb17
lea rax, [0x1401208b8]
mov qword [rsp + 0x70], rax
lea rax, [0x140120820]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r15, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
mov dword [rsp + 0x20], 9
mov esi, r14d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xfe
sub ebx, eax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x28], 0x30
mov edx, 2
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rdx, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call r8
lea rdx, [0x140052350]
lea rcx, [rbp - 0x80]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
mov rcx, rax
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]
cmp esi, 5
je 0x140106acc
mov ecx, 1
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], 0x82ac
mov eax, r14d
nop word [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x2c]
add rdx, rcx
lea ecx, [rax - 0x7f]
xor byte [rdx], cl
inc eax
mov ecx, dword [rsp + 0x28]
cmp eax, ecx
jb 0x140106aa0
mov byte [rsp + rcx + 0x2c], 0
lea rdx, [rsp + 0x2c]
lea rcx, [rbp - 0x80]
call fcn.14004f570
inc esi
cmp esi, 6
jl 0x140106a07
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm6, xmmword [0x140120ac0]
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xd
movups xmmword [rsp + 0x50], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140106b2b
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140106b2b
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140106b5c
test cl, 4
jne 0x140106b52
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140106b52
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140106b5c
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140106b71
lea rcx, [rsp + 0x30]
call fcn.14010d110
movdqu xmm6, xmmword [rsp + 0x40]
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x140106bdb
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140106bb1
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140106bac
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140106bf7
mov rcx, r8
call fcn.14010ef38
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm6
movdqa xmm0, xmmword [0x140120ac0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14004f470
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140106bfe
mov rcx, qword [rdi]
mov rdx, rcx
jmp 0x140106c01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rbx, rcx
mov rsi, qword [rdi + 0x10]
add rsi, rdx
cmp rcx, rsi
je 0x140106c23
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rbx], al
inc rbx
cmp rbx, rsi
jne 0x140106c10
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x6c], r8d
mov qword [rbp - 0x78], r15
lea rcx, [rbp - 0x78]
call fcn.14010cd80
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14010e990
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret