Function at 0x1400c4114
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov edi, r9d
mov r13, r8
mov r14d, edx
mov rbx, rcx
mov ecx, edx
sub ecx, 0xe
je 0x1400c4381
sub ecx, 1
je 0x1400c42d0
sub ecx, 1
je 0x1400c4227
cmp ecx, 1
je 0x1400c417b
test r9d, r9d
je 0x1400c442a
mov edx, r14d
mov rcx, r13
call fcn.1400998dc
add edi, 0xffffffff
jne 0x1400c4166
jmp 0x1400c442a
mov qword [rbp - 0x10], r13
mov byte [rbp - 8], 0
and qword [rbp - 0x20], 0
mov r9, rdi
mov r14, qword [rbx + 8]
mov rdi, qword [rbx]
mov rax, r14
sub rax, rdi
sar rax, 3
cmp r9, rax
jae 0x1400c41c1
lea rax, [rdi + r9*8]
cmp rax, rdi
jne 0x1400c41b3
mov qword [rbx + 8], rdi
mov r14, rdi
jmp 0x1400c41e5
cmp rax, r14
je 0x1400c41e5
mov r14, rax
mov qword [rbx + 8], rax
jmp 0x1400c41e5
jbe 0x1400c41e5
sub r9, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r8, r14
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1400c64dc
mov r14, qword [rbx + 8]
mov rdi, qword [rbx]
cmp rdi, r14
je 0x1400c4222
mov r15d, 1
mov rbx, rdi
add rdi, 8
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.14009fe04
mov rax, qword [rbp - 0x20]
mov rcx, rax
shr rcx, 1
and rax, r15
neg rax
xor rcx, rax
mov qword [rbx], rcx
cmp rdi, r14
jne 0x1400c41f0
jmp 0x1400c442a
mov qword [rbp - 0x10], r13
mov byte [rbp - 8], 0
and qword [rbp - 0x20], 0
mov r9, rdi
mov rdi, qword [rbx + 8]
mov r14, qword [rbx]
mov rax, rdi
sub rax, r14
sar rax, 3
cmp r9, rax
jae 0x1400c426d
lea rax, [r14 + r9*8]
cmp rax, r14
jne 0x1400c425f
mov qword [rbx + 8], r14
mov rdi, r14
jmp 0x1400c4291
cmp rax, rdi
je 0x1400c4291
mov rdi, rax
mov qword [rbx + 8], rax
jmp 0x1400c4291
jbe 0x1400c4291
sub r9, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1400c64dc
mov rdi, qword [rbx + 8]
mov r14, qword [rbx]
cmp r14, rdi
je 0x1400c42cb
mov r15d, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, r13
call fcn.1400935cc
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, r15d
neg eax
xor eax, ecx
cdqe
mov qword [rbx], rax
cmp r14, rdi
jne 0x1400c429c
jmp 0x1400c442a
mov qword [rbp - 0x10], r13
mov byte [rbp - 8], 0
and qword [rbp - 0x20], 0
mov r9, rdi
mov rdi, qword [rbx + 8]
mov r14, qword [rbx]
mov rax, rdi
sub rax, r14
sar rax, 3
cmp r9, rax
jae 0x1400c4316
lea rax, [r14 + r9*8]
cmp rax, r14
jne 0x1400c4308
mov qword [rbx + 8], r14
mov rdi, r14
jmp 0x1400c433a
cmp rax, rdi
je 0x1400c433a
mov rdi, rax
mov qword [rbx + 8], rax
jmp 0x1400c433a
jbe 0x1400c433a
sub r9, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1400c64dc
mov rdi, qword [rbx + 8]
mov r14, qword [rbx]
cmp r14, rdi
je 0x1400c437c
mov r15d, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, r13
call fcn.1400a73c0
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, r15w
neg ax
xor ax, cx
movsx rax, ax
mov qword [rbx], rax
cmp r14, rdi
jne 0x1400c4345
jmp 0x1400c442a
mov qword [rbp - 0x10], r13
mov byte [rbp - 8], 0
and qword [rbp - 0x20], 0
mov r9, rdi
mov r10, qword [rbx + 8]
mov r8, qword [rbx]
mov rax, r10
sub rax, r8
sar rax, 3
cmp rdi, rax
jae 0x1400c43c7
lea rax, [r8 + rdi*8]
cmp rax, r8
jne 0x1400c43b9
mov qword [rbx + 8], r8
mov r10, r8
jmp 0x1400c43eb
cmp rax, r10
je 0x1400c43eb
mov r10, rax
mov qword [rbx + 8], rax
jmp 0x1400c43eb
jbe 0x1400c43eb
sub r9, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r8, r10
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.1400c64dc
mov r10, qword [rbx + 8]
mov r8, qword [rbx]
cmp r8, r10
je 0x1400c442a
mov r15d, 1
mov r11, r8
add r8, 8
mov byte [rbp - 8], 0
mov r9d, dword [r13 + 0x20]
mov eax, dword [r13 + 0x18]
sub eax, r9d
cmp eax, r15d
jb 0x1400c4445
mov rax, qword [r13 + 0x10]
movsx rdx, byte [r9 + rax]
lea eax, [r9 + 1]
mov dword [r13 + 0x20], eax
mov qword [r11], rdx
cmp r8, r10
jne 0x1400c43f6
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, r15d
mov rcx, r13
call fcn.140077a94
int3