Function at 0x1400cab50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a8
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r12, qword [rcx + 8]
mov r10, rcx
mov rsi, qword [rcx + 0x38]
mov r14, rdx
mov edi, dword [rcx + 0x34]
mov ebx, 1
mov qword [rsp + 0x88], r9
mov r11d, r14d
mov eax, dword [r10 + 0x18]
sub r11d, r12d
mov dword [rsp + 0x24], eax
mov r9, r8
mov dword [rsp + 0x28], r11d
mov r13d, r14d
sub r13d, r12d
mov qword [rsp + 0x40], r8
mov r8, qword [rcx + 0x70]
lea rdx, [rax + r12]
mov rcx, qword [rcx + 0x10]
add rax, rcx
mov qword [rsp + 0x70], rcx
mov ecx, dword [r10 + 0x100]
mov qword [rsp + 0x80], rdx
mov edx, ebx
shl edx, cl
mov ecx, dword [r10 + 0x1c]
mov qword [rsp + 0x78], rax
mov eax, r11d
sub eax, ecx
mov qword [rsp + 0x60], r8
sub r11d, edx
mov qword [rsp + 0x48], rsi
cmp eax, edx
mov dword [rsp + 0x38], edi
mov eax, dword [r10 + 0x10c]
mov rdx, qword [r10 + 0x60]
cmovbe r11d, ecx
cmp dword [r10 + 0x28], 0
mov qword [rsp + 0x50], r12
cmovne r11d, ecx
mov dword [rsp + 0x20], r13d
mov ecx, 5
mov dword [rsp + 0x58], r11d
cmp eax, ecx
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x30], 0x1f
cmovb ecx, eax
xor ebp, ebp
shl ebx, cl
mov dword [rsp + 0x34], ebx
lea r15d, [rbp + 3]
cmp dword [r10 + 0x12c], ebp
jne 0x1400caf07
mov r11d, dword [r10 + 0x2c]
mov eax, r13d
mov ecx, dword [rsp + 0x38]
sub eax, r11d
mov rdi, r8
mov edx, ecx
cmp eax, 0x180
jbe 0x1400cadea
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x1400cad45
mov r15, qword [rsp + 0x48]
lea rsi, [r12 + 8]
mov r13d, 0x18
mov edi, r11d
sub r13d, ecx
mov ebx, eax
add rsi, r11
mov r12, r8
nop dword [rax]
mov eax, dword [r10 + 0x60]
mov rcx, r13
imul edx, dword [rsi], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [r15 + rax]
mov rax, rdi
lea rsi, [rsi + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebp
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r15]
lea rdx, [r8 + r15]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x30]
inc rdi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r12 + rax*4], r11d
inc r11d
cmp r11d, ebx
jb 0x1400caca0
mov rdi, qword [r10 + 0x70]
mov r15d, 3
mov rsi, qword [r10 + 0x38]
mov edx, dword [r10 + 0x34]
mov ebx, dword [rsp + 0x34]
mov r12, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x20]
lea r11d, [r13 - 0x20]
lea rax, [r14 + 1]
mov r8d, r11d
mov ecx, eax
lea r9, [r11 + r12]
sub ecx, r11d
sub ecx, r12d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, ebp
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x1400cadea
mov r13d, 0x18
mov r12d, ecx
sub r13d, edx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, r13
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rsi + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r12, 1
jne 0x1400cad90
mov rdi, qword [r10 + 0x70]
mov rsi, qword [r10 + 0x38]
mov edx, dword [r10 + 0x34]
mov r12, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x20]
mov rcx, qword [r10 + 8]
cmp r11d, r13d
jae 0x1400caea4
mov ebx, dword [rsp + 0x20]
lea r13, [rcx + 8]
mov r15d, 0x18
mov r12d, r11d
sub r15d, edx
add r13, r12
nop
mov eax, dword [r10 + 0x60]
mov rcx, r15
imul edx, dword [r13], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rsi]
mov rax, r12
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebp
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [rsi + r8]
lea rdx, [rsi + r8]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x30]
inc r12
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rdi + rax*4], r11d
inc r11d
cmp r11d, ebx
jb 0x1400cae10
mov ebx, dword [rsp + 0x34]
mov r15d, 3
mov r12, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
mov ecx, 0x18
sub ecx, dword [rsp + 0x38]
mov r8d, eax
mov dword [r10 + 0x2c], r13d
imul edx, dword [rax + r12 + 8], 0x9e3779b1
mov eax, dword [rsp + 0x68]
xor rdx, rax
shr rdx, cl
mov rcx, qword [rsp + 0x60]
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov rcx, qword [rsp + 0x48]
prefetcht0 byte [rax + rcx]
mov r9, qword [rsp + 0x40]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
mov r8, qword [rsp + 0x60]
jmp 0x1400caf28
imul r11d, dword [r14], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, edi
xor r11, rax
mov eax, dword [rsp + 0x28]
shr r11, cl
mov rcx, rsi
mov dword [r10 + 0x2c], eax
add dword [r10 + 0x68], r11d
mov eax, r11d
shr rax, 3
mov r13, rbp
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x68], rcx
lea rsi, [r8 + rax*4]
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov edi, eax
mov dword [rsp + 0x2c], eax
movsx eax, r11b
and edi, 0x1f
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, edi
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, edi
shr rax, cl
or r8, rax
jbe 0x1400caff9
mov edx, dword [rsp + 0x24]
mov r9, qword [rsp + 0x70]
mov r15d, dword [rsp + 0x58]
test ebx, ebx
je 0x1400cafee
bsf rcx, r8
add ecx, edi
and ecx, 0x1f
mov ecx, dword [rsi + rcx*4]
je 0x1400cafe5
cmp ecx, r15d
jb 0x1400cafee
cmp ecx, edx
jb 0x1400cafd3
prefetcht0 byte [rcx + r12]
jmp 0x1400cafd8
prefetcht0 byte [rcx + r9]
mov dword [rsp + r13*4 + 0x90], ecx
inc r13
dec ebx
lea rax, [r8 - 1]
and r8, rax
ja 0x1400cafb1
mov r9, qword [rsp + 0x40]
mov r15d, 3
mov ecx, dword [rsp + 0x2c]
mov eax, ebp
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r11b
mov eax, dword [r10 + 0x2c]
mov dword [rsi + rcx*4], eax
inc dword [r10 + 0x2c]
test r13, r13
je 0x1400cb107
mov ecx, dword [rsp + 0x24]
mov esi, dword [rsp + rbp*4 + 0x90]
cmp esi, ecx
jb 0x1400cb060
mov eax, dword [r15 + r14 - 3]
lea rdx, [rsi + r12]
cmp dword [rdx + r15 - 3], eax
jne 0x1400cb0fb
mov r8, r9
mov rcx, r14
call fcn.1400c02e0
mov rbx, rax
jmp 0x1400cb0cd
mov rdi, qword [rsp + 0x70]
mov eax, dword [r14]
add rdi, rsi
cmp dword [rdi], eax
jne 0x1400cb0fb
mov rcx, qword [rsp + 0x78]
lea r12, [r14 + 4]
add rdi, 4
mov r8, r9
mov rax, r12
mov rdx, rdi
sub rax, rdi
add rcx, rax
cmp rcx, r9
cmovb r8, rcx
mov rcx, r12
call fcn.1400c02e0
mov rbx, rax
add rax, rdi
cmp rax, qword [rsp + 0x78]
jne 0x1400cb0c4
mov r8, qword [rsp + 0x40]
lea rcx, [r12 + rbx]
mov rdx, qword [rsp + 0x80]
call fcn.1400c02e0
add rbx, rax
mov r12, qword [rsp + 0x50]
add rbx, 4
mov r9, qword [rsp + 0x40]
cmp rbx, r15
jbe 0x1400cb0f7
mov eax, dword [rsp + 0x28]
mov r15, rbx
mov rcx, qword [rsp + 0x88]
sub eax, esi
add eax, 3
mov qword [rcx], rax
lea rax, [rbx + r14]
cmp rax, r9
je 0x1400cb107
mov ecx, dword [rsp + 0x24]
inc rbp
cmp rbp, r13
jb 0x1400cb031
mov rax, r15
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14011b0c0
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret