Function at 0x1400bac90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r13
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov ebx, r9d
mov r13, r8
mov esi, edx
mov rdi, rcx
mov ecx, edx
sub ecx, 0xe
je 0x1400baf03
sub ecx, 1
je 0x1400bae52
sub ecx, 1
je 0x1400bada9
cmp ecx, 1
je 0x1400bacfd
test r9d, r9d
je 0x1400bafaf
mov edx, esi
mov rcx, r13
call fcn.14008e008
add ebx, 0xffffffff
jne 0x1400bace9
jmp 0x1400bafaf
mov qword [rbp - 0x18], r13
mov byte [rbp - 0x10], 0
and qword [rbp - 0x30], 0
mov r9, rbx
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi]
mov rax, rbx
sub rax, rsi
sar rax, 3
cmp r9, rax
jae 0x1400bad43
lea rax, [rsi + r9*8]
cmp rax, rsi
jne 0x1400bad35
mov qword [rdi + 8], rsi
mov rbx, rsi
jmp 0x1400bad67
cmp rax, rbx
je 0x1400bad67
mov rbx, rax
mov qword [rdi + 8], rax
jmp 0x1400bad67
jbe 0x1400bad67
sub r9, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400bcb1c
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi]
cmp rsi, rbx
je 0x1400bada4
mov r15d, 1
mov rdi, rsi
add rsi, 8
mov byte [rbp - 0x10], 0
lea rdx, [rbp - 0x30]
mov rcx, r13
call fcn.140095590
mov rax, qword [rbp - 0x30]
mov rcx, rax
shr rcx, 1
and rax, r15
neg rax
xor rcx, rax
mov qword [rdi], rcx
cmp rsi, rbx
jne 0x1400bad72
jmp 0x1400bafaf
mov qword [rbp - 0x18], r13
mov byte [rbp - 0x10], 0
and qword [rbp - 0x30], 0
mov r9, rbx
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi]
mov rax, rbx
sub rax, rsi
sar rax, 3
cmp r9, rax
jae 0x1400badef
lea rax, [rsi + r9*8]
cmp rax, rsi
jne 0x1400bade1
mov qword [rdi + 8], rsi
mov rbx, rsi
jmp 0x1400bae13
cmp rax, rbx
je 0x1400bae13
mov rbx, rax
mov qword [rdi + 8], rax
jmp 0x1400bae13
jbe 0x1400bae13
sub r9, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400bcb1c
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi]
cmp rsi, rbx
je 0x1400bae4d
mov r15d, 1
mov rdi, rsi
add rsi, 8
mov byte [rbp - 0x10], 0
lea rdx, [rbp + 0x28]
mov rcx, r13
call fcn.140088c48
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, r15d
neg eax
xor eax, ecx
cdqe
mov qword [rdi], rax
cmp rsi, rbx
jne 0x1400bae1e
jmp 0x1400bafaf
mov qword [rbp - 0x18], r13
mov byte [rbp - 0x10], 0
and qword [rbp - 0x30], 0
mov r9, rbx
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi]
mov rax, rbx
sub rax, rsi
sar rax, 3
cmp r9, rax
jae 0x1400bae98
lea rax, [rsi + r9*8]
cmp rax, rsi
jne 0x1400bae8a
mov qword [rdi + 8], rsi
mov rbx, rsi
jmp 0x1400baebc
cmp rax, rbx
je 0x1400baebc
mov rbx, rax
mov qword [rdi + 8], rax
jmp 0x1400baebc
jbe 0x1400baebc
sub r9, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400bcb1c
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi]
cmp rsi, rbx
je 0x1400baefe
mov r15d, 1
mov rdi, rsi
add rsi, 8
mov byte [rbp - 0x10], 0
lea rdx, [rbp + 0x28]
mov rcx, r13
call fcn.14009d900
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, r15w
neg ax
xor ax, cx
movsx rax, ax
mov qword [rdi], rax
cmp rsi, rbx
jne 0x1400baec7
jmp 0x1400bafaf
mov qword [rbp - 0x18], r13
mov byte [rbp - 0x10], 0
and qword [rbp - 0x30], 0
mov rdx, rbx
mov rax, qword [rdi + 8]
mov r9, qword [rdi]
mov rcx, rax
sub rcx, r9
sar rcx, 3
cmp rbx, rcx
jae 0x1400baf49
lea rcx, [r9 + rbx*8]
cmp rcx, r9
jne 0x1400baf3b
mov qword [rdi + 8], r9
mov rax, r9
jmp 0x1400baf70
cmp rcx, rax
je 0x1400baf70
mov rax, rcx
mov qword [rdi + 8], rcx
jmp 0x1400baf70
jbe 0x1400baf70
sub rdx, rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov r8, rax
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400bcb1c
mov rax, qword [rdi + 8]
mov r9, qword [rdi]
cmp r9, rax
je 0x1400bafaf
mov r15d, 1
mov r11, r9
add r9, 8
mov byte [rbp - 0x10], 0
mov ecx, dword [r13 + 0x18]
mov r10d, dword [r13 + 0x20]
sub ecx, r10d
cmp ecx, r15d
jb 0x1400bafca
mov rdx, qword [r13 + 0x10]
movsx r8, byte [r10 + rdx]
lea ecx, [r10 + 1]
mov dword [r13 + 0x20], ecx
mov qword [r11], r8
cmp r9, rax
jne 0x1400baf7b
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
mov edx, r15d
mov rcx, r13
call fcn.14006d590
int3