Function at 0x1401ce1c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x48
mov rax, qword [rcx + 0x10]
xor r13d, r13d
mov qword [rsp + 0x30], rax
mov r8d, edx
mov rdx, qword [rcx]
lea rax, [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov r14, rcx
mov rax, qword [rcx + 0x8cf8]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x24], 8
mov byte [rsp + 0x28], r13b
mov dword [rcx + 0x8ce8], r13d
mov r9d, dword [rax + 0x19c]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x40], r15
call fcn.1401cdc70
mov rbx, qword [r14 + 0x8cf8]
cmp byte [rbx + 0x1ec], r13b
je 0x1401ce258
mov eax, dword [r14 + 0x8cec]
mov rcx, qword [rbx + 0x1b0]
imul rdx, rax, 0x8e28
mov rcx, qword [rdx + rcx + 0x8d18]
call fcn.140136e80
mov rbx, qword [r14 + 0x8cf8]
mov r8d, r13d
cmp dword [r14 + 0x8ce8], r13d
jbe 0x1401ce2a3
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r14 + 0x8cf8]
mov eax, r8d
inc r8d
mov ecx, dword [rdx + 0x1a8]
rol ecx, 1
xor ecx, dword [r14 + rax*4 + 0x7ce8]
mov dword [rdx + 0x1a8], ecx
cmp r8d, dword [r14 + 0x8ce8]
jb 0x1401ce270
mov rbx, qword [r14 + 0x8cf8]
movzx eax, byte [rsp + 0x28]
mov r15, qword [r14 + 0x10]
mov byte [rsp + 0x70], al
mov eax, dword [rsp + 0x20]
lea ebp, [rax*8 + 8]
sub ebp, dword [rsp + 0x24]
mov eax, ebp
shr eax, 3
test eax, eax
je 0x1401ce38b
mov ecx, dword [rbx + 0x158]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r12
mov r12d, eax
nop word [rax + rax]
movzx esi, byte [r15]
mov edi, 8
nop dword [rax]
cmp edi, ecx
jb 0x1401ce35c
sub edi, ecx
mov r9d, esi
mov ecx, edi
shr r9d, cl
mov eax, r9d
or r9b, byte [rbx + 0x15c]
shl eax, cl
lea rcx, [rbx + 0x160]
mov r8d, dword [rcx + 8]
sub esi, eax
mov rax, qword [rcx]
mov byte [r8 + rax], r9b
inc r8d
mov dword [rcx + 8], r8d
cmp r8d, dword [rcx + 0xc]
jne 0x1401ce340
call fcn.14016c660
mov dword [rbx + 0x158], 8
mov ecx, 8
mov byte [rbx + 0x15c], r13b
test edi, edi
jne 0x1401ce300
jmp 0x1401ce36e
sub ecx, edi
shl sil, cl
or byte [rbx + 0x15c], sil
mov dword [rbx + 0x158], ecx
inc r15
sub r12, 1
jne 0x1401ce2f0
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x40]
movzx edi, byte [rsp + 0x70]
and ebp, 7
jbe 0x1401ce40f
nop word [rax + rax]
mov ecx, dword [rbx + 0x158]
cmp ebp, ecx
jb 0x1401ce3fd
sub ebp, ecx
mov r9d, edi
mov ecx, ebp
shr r9d, cl
mov eax, r9d
or r9b, byte [rbx + 0x15c]
shl eax, cl
lea rcx, [rbx + 0x160]
mov r8d, dword [rcx + 8]
sub edi, eax
mov rax, qword [rcx]
mov byte [r8 + rax], r9b
inc r8d
mov dword [rcx + 8], r8d
cmp r8d, dword [rcx + 0xc]
jne 0x1401ce3e6
call fcn.14016c660
mov dword [rbx + 0x158], 8
mov byte [rbx + 0x15c], r13b
test ebp, ebp
jne 0x1401ce3a0
jmp 0x1401ce40f
sub ecx, ebp
shl dil, cl
or byte [rbx + 0x15c], dil
mov dword [rbx + 0x158], ecx
mov rbx, qword [r14 + 0x8cf8]
mov rbp, qword [rsp + 0x78]
cmp byte [rbx + 0x1ec], r13b
je 0x1401ce4b2
mov eax, dword [r14 + 0x8cec]
mov edi, r13d
inc eax
cmp eax, dword [rbx + 0x1e8]
cmovne edi, eax
cmp qword [rbx + 0x208], r13
je 0x1401ce493
lea rcx, [rbx + 0x160]
call fcn.14016c690
mov ecx, 0xf
lea rdx, [r14 + 0x8d20]
sub ecx, dword [rbx + 0x158]
lea r8, [rsp + 0x70]
shr rcx, 3
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [r14 + 0x8cf8]
mov rcx, qword [rax + 0x208]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rbx, qword [r14 + 0x8cf8]
mov r13d, eax
mov ecx, edi
imul rdx, rcx, 0x8e28
mov rcx, qword [rbx + 0x1b0]
add rdx, 0x8d18
add rcx, rdx
call fcn.140137020
mov eax, r13d
add rsp, 0x48
pop r14
pop r13
pop rdi
pop rbx
ret