Function at 0x1401cc070
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movdqa xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
mov r12d, dword [rcx + 0x94]
mov eax, dword [rcx + 0xec]
movd xmm0, r12d
lea ebp, [r12 - 0x106]
pshufd xmm6, xmm0, 0x50
xor r13d, r13d
movdqa xmm7, xmmword [0x140599730]
movdqa xmm8, xmmword [0x1405b9710]
pcmpeqd xmm9, xmm9
nop word cs:[rax + rax]
mov edi, dword [rsi + 0xa8]
mov ecx, dword [rsi + 0xe4]
add eax, ecx
sub edi, eax
mov eax, dword [rsi + 0x94]
add eax, ebp
cmp ecx, eax
jb 0x1401cc2de
mov rcx, qword [rsi + 0xa0]
lea rdx, [rcx + r12]
mov r8d, r12d
sub r8d, edi
call fcn.140562340
movq xmm0, qword [rsi + 0xe4]
psubd xmm0, xmm6
movq qword [rsi + 0xe4], xmm0
sub dword [rsi + 0xd4], r12d
mov eax, dword [rsi + 0x94]
mov r10d, dword [rsi + 0xc4]
mov r11, qword [rsi + 0xb8]
lea rcx, [r11 + r10*2]
lea r8d, [r10 - 1]
movd xmm0, eax
cmp r8d, 7
jae 0x1401cc160
mov edx, r10d
jmp 0x1401cc1e8
inc r8
mov r9, r8
and r9, 0xfffffffffffffff8
sub rcx, r9
sub rcx, r9
mov edx, r10d
sub edx, r9d
pshufd xmm1, xmm0, 0
lea r10, [r11 + r10*2]
add r10, 0xfffffffffffffff0
mov r11, r9
neg r11
xor ebx, ebx
nop dword [rax + rax]
movdqu xmm2, xmmword [r10 + rbx*2]
movdqa xmm3, xmm1
pxor xmm3, xmm7
movdqa xmm4, xmm8
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm1
pand xmm3, xmm4
pxor xmm4, xmm9
por xmm4, xmm3
pslld xmm4, 0x10
psrad xmm4, 0x10
packssdw xmm4, xmm4
pshuflw xmm3, xmm4, 0x1b
pshufhw xmm3, xmm3, 0x1b
psubusw xmm2, xmm3
movdqu xmmword [r10 + rbx*2], xmm2
add rbx, 0xfffffffffffffff8
cmp r11, rbx
jne 0x1401cc190
cmp r8, r9
je 0x1401cc20b
neg edx
xor r8d, r8d
nop dword [rax]
movzx r9d, word [rcx + r8*2 - 2]
sub r9d, eax
cmovb r9d, r13d
mov word [rcx + r8*2 - 2], r9w
dec r8
cmp edx, r8d
jne 0x1401cc1f0
mov r10, qword [rsi + 0xb0]
lea rcx, [r10 + rax*2]
lea r8d, [rax - 1]
cmp r8d, 7
jae 0x1401cc230
mov edx, eax
jmp 0x1401cc2b8
inc r8
mov r9, r8
and r9, 0xfffffffffffffff8
sub rcx, r9
sub rcx, r9
mov edx, eax
sub edx, r9d
pshufd xmm0, xmm0, 0
lea r10, [r10 + rax*2]
add r10, 0xfffffffffffffff0
mov r11, r9
neg r11
xor ebx, ebx
nop word [rax + rax]
movdqu xmm1, xmmword [r10 + rbx*2]
movdqa xmm2, xmm0
pxor xmm2, xmm7
movdqa xmm3, xmm8
pcmpgtd xmm3, xmm2
movdqa xmm2, xmm0
pand xmm2, xmm3
pxor xmm3, xmm9
por xmm3, xmm2
pslld xmm3, 0x10
psrad xmm3, 0x10
packssdw xmm3, xmm3
pshuflw xmm2, xmm3, 0x1b
pshufhw xmm2, xmm2, 0x1b
psubusw xmm1, xmm2
movdqu xmmword [r10 + rbx*2], xmm1
add rbx, 0xfffffffffffffff8
cmp r11, rbx
jne 0x1401cc260
cmp r8, r9
je 0x1401cc2db
neg edx
xor r8d, r8d
nop dword [rax]
movzx r9d, word [rcx + r8*2 - 2]
sub r9d, eax
cmovb r9d, r13d
mov word [rcx + r8*2 - 2], r9w
dec r8
cmp edx, r8d
jne 0x1401cc2c0
add edi, r12d
mov rbx, qword [rsi]
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x1401cc474
mov eax, dword [rsi + 0xec]
cmp ecx, edi
cmovb edi, ecx
test edi, edi
je 0x1401cc365
mov r15d, dword [rsi + 0xe4]
add r15, qword [rsi + 0xa0]
add r15, rax
sub ecx, edi
mov dword [rbx + 8], ecx
mov rax, qword [rbx + 0x28]
cmp dword [rax + 0x2c], 2
mov r14d, edi
jne 0x1401cc330
mov rcx, rbx
mov rdx, r15
mov r8d, edi
call fcn.1401cfad0
jmp 0x1401cc359
mov rdx, qword [rbx]
mov rcx, r15
mov r8, r14
call fcn.140562340
mov rax, qword [rbx + 0x28]
cmp dword [rax + 0x2c], 1
jne 0x1401cc359
mov ecx, dword [rbx + 0x4c]
mov rdx, r15
mov r8d, edi
call fcn.1401d2b90
mov dword [rbx + 0x4c], eax
add qword [rbx], r14
add dword [rbx + 0xc], edi
mov eax, dword [rsi + 0xec]
add eax, edi
mov dword [rsi + 0xec], eax
mov r8d, dword [rsi + 0x1758]
lea ecx, [r8 + rax]
cmp ecx, 3
jb 0x1401cc460
mov edx, dword [rsi + 0xe4]
sub edx, r8d
mov r9, qword [rsi + 0xa0]
movzx r10d, byte [r9 + rdx]
mov dword [rsi + 0xc0], r10d
movzx ecx, byte [rsi + 0xd0]
shl r10d, cl
lea ecx, [rdx + 1]
movzx ecx, byte [r9 + rcx]
xor ecx, r10d
and ecx, dword [rsi + 0xcc]
mov dword [rsi + 0xc0], ecx
test r8d, r8d
je 0x1401cc460
nop word [rax + rax]
mov eax, dword [rsi + 0xc0]
movzx ecx, byte [rsi + 0xd0]
shl eax, cl
lea ecx, [rdx + 2]
mov r8, qword [rsi + 0xa0]
movzx ecx, byte [r8 + rcx]
xor ecx, eax
and ecx, dword [rsi + 0xcc]
mov rax, qword [rsi + 0xb0]
mov dword [rsi + 0xc0], ecx
mov r8, qword [rsi + 0xb8]
movzx ecx, word [r8 + rcx*2]
mov r8d, dword [rsi + 0x9c]
and r8d, edx
mov word [rax + r8*2], cx
mov rax, qword [rsi + 0xb8]
mov ecx, dword [rsi + 0xc0]
mov word [rax + rcx*2], dx
mov r8d, dword [rsi + 0x1758]
lea ecx, [r8 - 1]
mov dword [rsi + 0x1758], ecx
mov eax, dword [rsi + 0xec]
add r8d, eax
dec r8d
cmp r8d, 3
jb 0x1401cc460
inc edx
test ecx, ecx
jne 0x1401cc3d0
nop dword [rax]
cmp eax, 0x105
ja 0x1401cc474
mov rcx, qword [rsi]
cmp dword [rcx + 8], 0
jne 0x1401cc0e0
mov ecx, dword [rsi + 0x1764]
mov edi, dword [rsi + 0xa8]
cmp edi, ecx
jbe 0x1401cc4ed
mov ebp, dword [rsi + 0xec]
add ebp, dword [rsi + 0xe4]
cmp ecx, ebp
jae 0x1401cc4bb
sub edi, ebp
cmp edi, 0x102
mov ebx, 0x102
cmovb ebx, edi
mov ecx, ebp
add rcx, qword [rsi + 0xa0]
xor edx, edx
mov r8, rbx
call fcn.140562a70
add ebx, ebp
jmp 0x1401cc4e7
add ebp, 0x102
cmp ebp, ecx
jbe 0x1401cc4ed
sub ebp, ecx
sub edi, ecx
cmp ebp, edi
cmovb edi, ebp
add rcx, qword [rsi + 0xa0]
xor edx, edx
mov r8, rdi
call fcn.140562a70
add edi, dword [rsi + 0x1764]
mov ebx, edi
mov dword [rsi + 0x1764], ebx
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret