Function at 0x140104530
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1401a4028]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
lea rcx, [rbp - 0x50]
call fcn.140103330
nop
lea rcx, [rbp - 0x70]
call fcn.1401036c0
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14010458f
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1401045a0
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400efbd0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.1401028a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400e5330
nop
lea rcx, [rbp - 0x70]
call fcn.1400d96a0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x30]
call fcn.140127e40
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400f8b40
nop
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
mov r15d, 2
mov r8d, r15d
lea rcx, [rbp - 0x30]
call fcn.1401053a0
nop
lea rcx, [rbp - 0x70]
call fcn.1400d96a0
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400f8b40
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1401046a2
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400efbd0
nop
lea rcx, [rsp + 0x60]
call fcn.1400db4d0
movzx ebx, al
lea rcx, [rsp + 0x60]
call fcn.1400e5330
nop
lea rcx, [rsp + 0x40]
call fcn.1400d96a0
test bl, bl
jne 0x140104779
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140174ff5]
mov rcx, rsi
call fcn.1400d9d80
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.1400e2e30
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rcx, qword [rbp - 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rbp + rdx - 0x34], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.140123798
nop
jmp 0x140104915
lea rcx, [rbp - 0x28]
call fcn.1400e4a20
test rax, rax
jne 0x1401047b5
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0x18], 0
cmovne eax, r15d
or eax, dword [rbp + rcx - 0x20]
and eax, 0x17
mov dword [rbp + rcx - 0x20], eax
mov edx, dword [rbp + rcx - 0x1c]
and edx, eax
jne 0x14010494d
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400f8b40
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
nop
inc rdi
cmp byte [rdx + rdi], 0
jne 0x140104810
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.1400d9d80
mov r9d, r14d
cmp qword [rsp + 0x50], r9
jbe 0x140104874
mov r8, r14
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x1401a82a8]
movzx edx, word [rax + 0x80]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
xor byte [r8 + rcx], dl
inc r9d
lea r8, [r8 + 1]
movsxd rax, r9d
cmp rax, qword [rsp + 0x50]
jb 0x140104840
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.1400d96a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400d96a0
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.1400e2e30
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x78], rax
lea rcx, [rbp + 0x78]
call fcn.140123798
nop
lea rcx, [rbp - 0x50]
call fcn.1400e5330
mov rax, rsi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140106970
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test dl, 4
je 0x14010495b
lea rbx, str.ios_base::badbit_set
jmp 0x140104970
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400d76d0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400d7f40
lea rdx, [0x1401a27a0]
lea rcx, [rsp + 0x60]
call fcn.140127d6c
int3