Function at 0x1400ba7c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rdi
push r12
push r14
push r15
mov eax, 0x78
call fcn.1400cc090
sub rsp, rax
mov rcx, r9
mov r15, r9
mov r12, r8
mov rdi, rdx
xor r14d, r14d
call fcn.140081a60
mov rcx, r15
call fcn.140081950
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400bac88
mov qword [rsp + 0xa8], rbx
mov rbx, qword [rsp + 0xb8]
mov rcx, rbx
call fcn.140081950
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400bac80
mov rcx, rbx
mov qword [rsp + 0x68], rsi
call fcn.140081950
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400bac7b
mov rcx, rbx
call fcn.140081950
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400bac7b
mov r8, r12
mov rdx, rdi
mov rcx, rsi
call fcn.1400ba280
test eax, eax
je 0x1400bac7b
cmp dword [rsi + 8], r14d
je 0x1400bac7b
mov rdx, r12
mov rcx, rbx
call fcn.140074200
test rax, rax
je 0x1400bac7b
mov rcx, rsi
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x60], r13
call fcn.140074500
mov rcx, rbx
mov ebp, eax
call fcn.140074500
movsxd r13, dword [r12 + 8]
mov dword [rsp + 0x20], eax
cmp r13d, dword [rsi + 0xc]
jg 0x1400ba8cc
mov rax, rsi
jmp 0x1400ba8d7
mov edx, r13d
mov rcx, rsi
call fcn.140074990
test rax, rax
je 0x1400bac71
movsxd rax, dword [rsi + 8]
mov rbx, qword [rsi]
mov rcx, r13
cmp rax, r13
jge 0x1400ba8fb
lea rdi, [rbx + rax*8]
sub rcx, rax
xor eax, eax
rep stosq qword [rdi], rax
mov dword [rsi + 8], r13d
cmp r13d, dword [r15 + 0xc]
jg 0x1400ba90a
mov rax, r15
jmp 0x1400ba915
mov edx, r13d
mov rcx, r15
call fcn.140074990
test rax, rax
je 0x1400bac71
mov rsi, qword [r15]
mov eax, 1
mov qword [rsi], rax
cmp r13d, eax
jle 0x1400ba93e
lea eax, [r13 - 1]
lea rdi, [rsi + 8]
movsxd rcx, eax
xor eax, eax
rep stosq qword [rdi], rax
mov r8, qword [rsp + 0x28]
mov dword [r15 + 8], r13d
cmp r13d, dword [r8 + 0xc]
jg 0x1400ba952
mov rax, r8
jmp 0x1400ba962
mov edx, r13d
mov rcx, r8
call fcn.140074990
mov r8, qword [rsp + 0x28]
test rax, rax
je 0x1400bac71
mov r11, qword [r8]
mov qword [rsp + 0x38], r11
test r13d, r13d
jle 0x1400ba983
mov rdi, r11
xor eax, eax
mov rcx, r13
rep stosq qword [rdi], rax
mov rdx, qword [rsp + 0x30]
mov dword [r8 + 8], r13d
mov r15, qword [rdx]
mov qword [rsp + 0x50], r15
test ebp, ebp
je 0x1400baa64
nop dword [rax]
mov rdi, qword [rbx]
test dil, 1
jne 0x1400baa50
mov rax, qword [rsi]
mov rcx, qword [r12]
mov r15, r14
mov rdx, qword [rcx]
mov r9, rax
lea ecx, [r13 - 1]
and r9d, 1
movsxd r10, ecx
neg r9
and rdx, r9
xor rax, rdx
test ecx, ecx
jle 0x1400baa3a
mov r11, rbx
mov r14, 0xfffffffffffffff8
lea r8, [rsi + 8]
sub r11, rsi
sub r14, rsi
mov r15, r10
nop dword [rax]
mov rcx, qword [r11 + r8]
shr rdi, 1
shr rax, 1
shl rcx, 0x3f
lea r8, [r8 + 8]
or rcx, rdi
mov rdi, qword [r11 + r8 - 8]
mov qword [r11 + r8 - 0x10], rcx
mov rdx, qword [r12]
add rdx, r14
mov rdx, qword [rdx + r8]
and rdx, r9
xor rdx, qword [r8 - 8]
mov rcx, rdx
shl rcx, 0x3f
or rcx, rax
mov rax, rdx
mov qword [r8 - 0x10], rcx
dec r10
jne 0x1400ba9f0
xor r14d, r14d
shr rdi, 1
shr rax, 1
mov qword [rbx + r15*8], rdi
mov qword [rsi + r15*8], rax
dec ebp
jne 0x1400ba9a0
mov r11, qword [rsp + 0x38]
mov r15, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
cmp ebp, 0x40
jg 0x1400baa7f
mov rax, qword [rbx]
test rax, rax
je 0x1400bac71
cmp rax, 1
je 0x1400bac23
mov ecx, dword [rsp + 0x20]
cmp ebp, ecx
jge 0x1400baac1
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, r15
mov r15, qword [rax]
mov rsi, r11
mov r11, qword [rdi]
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x38], r11
mov ebp, ecx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x28], rdi
mov r10, r14
test r13d, r13d
jle 0x1400bab76
cmp r13d, 2
jb 0x1400bab76
lea eax, [r13 - 1]
mov edx, r14d
movsxd rcx, eax
lea r9, [r11 + rcx*8]
lea rax, [rsi + rcx*8]
cmp rsi, r9
ja 0x1400baaf7
cmp rax, r11
jae 0x1400bab76
lea rdi, [rbx + rcx*8]
cmp rsi, rdi
ja 0x1400bab05
cmp rax, rbx
jae 0x1400bab76
lea r8, [r15 + rcx*8]
cmp rsi, r8
ja 0x1400bab13
cmp rax, r15
jae 0x1400bab76
cmp rbx, r9
ja 0x1400bab1d
cmp rdi, r11
jae 0x1400bab76
cmp rbx, r8
ja 0x1400bab27
cmp rdi, r15
jae 0x1400bab76
mov eax, r13d
and eax, 0x80000001
jge 0x1400bab38
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, r13d
sub ecx, eax
nop dword [rax]
movsxd rax, edx
add edx, 2
add r10, 2
movdqu xmm0, xmmword [rbx + rax*8]
movdqu xmm1, xmmword [r15 + rax*8]
pxor xmm1, xmm0
movdqu xmmword [rbx + rax*8], xmm1
movdqu xmm1, xmmword [r11 + rax*8]
movdqu xmm0, xmmword [rsi + rax*8]
pxor xmm1, xmm0
movdqu xmmword [rsi + rax*8], xmm1
cmp edx, ecx
jl 0x1400bab40
cmp r10, r13
jge 0x1400babbb
mov rdi, r15
mov r8, r11
mov r9, rsi
mov rdx, r13
sub rdi, rbx
sub r8, rbx
sub r9, rbx
lea rcx, [rbx + r10*8]
sub rdx, r10
nop word [rax + rax]
mov rax, qword [rdi + rcx]
lea rcx, [rcx + 8]
xor qword [rcx - 8], rax
mov rax, qword [r8 + rcx - 8]
xor qword [r9 + rcx - 8], rax
dec rdx
jne 0x1400baba0
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
cmp ebp, dword [rsp + 0x20]
jne 0x1400ba994
lea eax, [rbp - 1]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movsxd rdi, eax
mov rax, rdi
mov rcx, qword [rbx + rdi*8]
test rcx, rcx
jne 0x1400bac04
nop word [rax + rax]
test rax, rax
je 0x1400bac04
mov rcx, qword [rbx + rax*8 - 8]
dec rax
dec edi
test rcx, rcx
je 0x1400babf0
call fcn.140074540
mov r11, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
shl edi, 6
lea ebp, [rdi + rax]
jmp 0x1400ba994
mov rdi, qword [rsp + 0x40]
mov edx, dword [rdi + 8]
test edx, edx
jle 0x1400bac55
lea eax, [rdx - 1]
movsxd rcx, eax
mov rax, qword [rdi]
lea rcx, [rax + rcx*8]
nop dword [rax]
mov rax, qword [rcx]
lea rcx, [rcx - 8]
test rax, rax
jne 0x1400bac52
dec edx
test edx, edx
jg 0x1400bac40
mov dword [rdi + 8], edx
mov rcx, qword [rsp + 0xa0]
mov rdx, rdi
call fcn.140074200
test rax, rax
mov eax, 1
cmovne r14d, eax
mov rbp, qword [rsp + 0x70]
mov r13, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb8]
call fcn.140081890
mov eax, r14d
add rsp, 0x78
pop r15
pop r14
pop r12
pop rdi
ret