Function at 0x1400ae090
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x218
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
movaps xmmword [rax - 0xc8], xmm14
movaps xmmword [rax - 0xd8], xmm15
movzx r15d, r9b
mov rdi, r8
movaps xmm11, xmm1
mov rsi, rcx
mov dword [rbp + 0x168], 0
xorps xmm15, xmm15
test r8, r8
js 0x1400ae113
cvtsi2ss xmm15, r8
jmp 0x1400ae12c
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2ss xmm15, rcx
addss xmm15, xmm15
movaps xmm7, xmm15
mulss xmm7, xmm11
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x310]
movss xmm0, dword [rax + 0x34]
movss dword [rbp + 0x168], xmm0
xor r14d, r14d
movaps xmm9, xmm7
movss xmm10, dword [0x140298310]
xorps xmm9, xmm10
movss xmm13, dword [0x1402a0a2c]
movss xmm12, dword [0x140292e10]
movss xmm14, dword [0x140293808]
xorps xmm8, xmm8
xor ebx, ebx
xorps xmm6, xmm6
test rbx, rbx
js 0x1400ae197
cvtsi2ss xmm6, rbx
jmp 0x1400ae1af
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm6, rcx
addss xmm6, xmm6
mulss xmm6, xmm11
cmp rbx, rdi
je 0x1400ae1d5
test rbx, rbx
je 0x1400ae1d5
mov rcx, qword [rsi]
mov rax, qword [rcx]
test bl, 1
jne 0x1400ae1cf
movaps xmm1, xmm13
jmp 0x1400ae1df
movaps xmm1, xmm12
jmp 0x1400ae1df
mov rcx, qword [rsi]
mov rax, qword [rcx]
movaps xmm1, xmm14
call qword [rax + 0x200]
mov rcx, qword [rsi]
mov rax, qword [rcx]
movaps xmm1, xmm8
test r14d, r14d
jne 0x1400ae235
movss dword [rsp + 0x30], xmm7
movss dword [rsp + 0x28], xmm6
movss dword [rsp + 0x20], xmm8
movaps xmm3, xmm9
movaps xmm2, xmm6
call qword [rax + 0x2d0]
ucomiss xmm6, xmm8
jp 0x1400ae21c
je 0x1400ae28b
xorps xmm6, xmm10
movss dword [rsp + 0x30], xmm7
movss dword [rsp + 0x28], xmm6
movaps xmm3, xmm9
movaps xmm2, xmm6
jmp 0x1400ae274
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm8
movaps xmm3, xmm6
movaps xmm2, xmm9
call qword [rax + 0x2d0]
ucomiss xmm6, xmm8
jp 0x1400ae25d
je 0x1400ae28b
xorps xmm6, xmm10
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x28], xmm7
movaps xmm3, xmm6
movaps xmm2, xmm9
mov rcx, qword [rsi]
movss dword [rsp + 0x20], xmm8
mov rax, qword [rcx]
movaps xmm1, xmm8
call qword [rax + 0x2d0]
inc rbx
cmp rbx, rdi
jbe 0x1400ae188
inc r14d
cmp r14d, 2
jl 0x1400ae186
mov rcx, qword [rsi]
mov rax, qword [rcx]
movss xmm1, dword [rbp + 0x168]
call qword [rax + 0x200]
test r15b, r15b
je 0x1400ae554
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x310]
mov ecx, dword [rax + 8]
mov dword [rbp + 0x150], ecx
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x310]
mov r14d, dword [rax + 0x1c]
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov edx, 0xff
mov r9d, edx
mov r8d, edx
call qword [rax + 0x258]
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov edx, 4
call qword [rax + 0x268]
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x300]
lea rax, [0x140293310]
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 [rbp + 0x168], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], r15
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], 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 rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], 4
xor edx, edx
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___int____ptr64]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14000cc40
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r15
mov rax, qword [rbp - 0x80]
movsxd rdx, dword [rax + 4]
lea r8d, [rdx - 0x88]
mov dword [rsp + rdx + 0x7c], r8d
lea rcx, [rbp - 0x78]
call fcn.1400082d0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_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]
movss dword [rsp + 0x20], xmm8
movaps xmm3, xmm8
movaps xmm2, xmm8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rbx
movaps xmm9, xmm12
comiss xmm15, xmm12
jb 0x1400ae532
movaps xmm7, xmm9
mulss xmm7, xmm11
movss dword [rbp + 0x168], xmm7
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x300]
lea rdx, [rbp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.140023810
movss dword [rsp + 0x20], xmm8
movaps xmm3, xmm7
movaps xmm2, xmm8
mov rdx, rax
mov rcx, rdi
call rbx
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x300]
movaps xmm6, xmm7
xorps xmm6, xmm10
movaps xmm0, xmm7
xorps xmm0, xmm10
movss dword [rbp + 0x158], xmm0
lea rdx, [rbp + 0x158]
lea rcx, [rsp + 0x40]
call fcn.140023810
movss dword [rsp + 0x20], xmm8
movaps xmm3, xmm6
movaps xmm2, xmm8
mov rdx, rax
mov rcx, rdi
call rbx
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x300]
lea rdx, [rbp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.140023810
movss dword [rsp + 0x20], xmm7
movaps xmm3, xmm8
movaps xmm2, xmm8
mov rdx, rax
mov rcx, rdi
call rbx
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x300]
movss dword [rbp + 0x168], xmm6
lea rdx, [rbp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.140023810
movss dword [rsp + 0x20], xmm6
movaps xmm3, xmm8
movaps xmm2, xmm8
mov rdx, rax
mov rcx, rdi
call rbx
addss xmm9, xmm12
comiss xmm15, xmm9
jae 0x1400ae424
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
call qword [rax + 0x248]
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov edx, r14d
call qword [rax + 0x268]
lea r11, [rsp + 0x218]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
movaps xmm12, xmmword [r11 - 0x78]
movaps xmm13, xmmword [r11 - 0x88]
movaps xmm14, xmmword [r11 - 0x98]
movaps xmm15, xmmword [r11 - 0xa8]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret