Function at 0x1402c6d00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
mov eax, 0x60
call fcn.1404a1610
sub rsp, rax
mov rax, qword [0x140628fc0]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rdi, qword [rbp + 0x50]
lea eax, [r8 - 1]
mov r10, qword [rbp + 0x60]
mov r13d, r8d
mov rbx, rdx
mov rsi, rcx
cmp eax, 0x7f
ja 0x1402c7239
movups xmm0, xmmword [rdi]
mov qword [rsp + 0x58], r14
mov r8, r9
mov rdx, rdi
mov qword [rsp + 0x50], r15
mov rcx, rdi
movups xmmword [rbp - 0x40], xmm0
call r10
lea eax, [r13 + 7]
xor ecx, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd r9, eax
mov r11, r9
cmp dword [rbp + 0x58], ecx
je 0x1402c6f2e
test eax, eax
jle 0x1402c6eef
cmp r9d, 8
jb 0x1402c6eef
lea eax, [r9 - 1]
movsxd r10, eax
add eax, 0x10
movsxd rdx, eax
lea r8, [r10 + rbx]
lea rdx, [rbp + rdx - 0x40]
cmp rbx, rdx
ja 0x1402c6db8
lea rax, [rbp - 0x30]
cmp r8, rax
jae 0x1402c6eef
lea rax, [r10 + rsi]
cmp rbx, rax
ja 0x1402c6dca
cmp r8, rsi
jae 0x1402c6eef
lea rax, [r10 + rdi]
cmp rbx, rax
ja 0x1402c6ddc
cmp r8, rdi
jae 0x1402c6eef
lea r8, [rbp - 0x30]
cmp r8, rax
ja 0x1402c6dee
cmp rdx, rdi
jae 0x1402c6eef
mov qword [rsp + 0x90], r12
mov eax, r9d
and eax, 0x80000007
jge 0x1402c6e07
dec eax
or eax, 0xfffffff8
inc eax
sub r9d, eax
lea r8, [rbp - 0x34]
movsxd r12, r9d
lea r10, [rbp - 0x30]
mov r9, rdi
lea rdx, [rsi + 4]
mov r14, rbx
sub r9, rsi
sub r8, rsi
sub r10, rsi
sub r14, rsi
mov r15, 0xfffffffffffffffc
sub r15, rsi
nop word [rax + rax]
movd xmm2, dword [r9 + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
add ecx, 8
movd xmm3, dword [rdx]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
lea rax, [r15 + rdx]
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
xorps xmm0, xmm0
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1405da4e0]
movd xmm1, dword [r9 + rdx - 8]
packuswb xmm2, xmm2
movd dword [r8 + rdx - 8], xmm2
movd dword [r14 + rdx - 0xc], xmm2
punpcklbw xmm1, xmm0
punpcklbw xmm3, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm3, xmm0
xorps xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1405da4e0]
packuswb xmm2, xmm2
movd dword [r10 + rdx - 8], xmm2
movd dword [r14 + rdx - 8], xmm2
cmp rax, r12
jl 0x1402c6e40
mov r12, qword [rsp + 0x90]
movsxd rax, ecx
cmp rax, r11
jge 0x1402c7066
mov rdx, rdi
lea r8, [rbp - 0x30]
sub rdx, rsi
lea rcx, [rax + rsi]
sub r8, rsi
sub rbx, rsi
sub r11, rax
movzx eax, byte [rcx + rdx]
xor al, byte [rcx]
mov byte [r8 + rcx], al
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
sub r11, 1
jne 0x1402c6f12
jmp 0x1402c7066
mov r10d, ecx
test eax, eax
jle 0x1402c7045
cmp r9d, 8
jb 0x1402c7045
lea r8d, [r9 - 1]
lea eax, [r8 + 0x10]
movsxd rdx, eax
lea r14, [rbp - 0x40]
add r14, rdx
movsxd rax, r8d
lea rdx, [rbp - 0x30]
lea r8, [rax + rdi]
cmp rdx, r8
ja 0x1402c6f6e
cmp r14, rdi
jae 0x1402c7045
lea rdx, [rax + rbx]
lea r15, [rbp - 0x30]
cmp r15, rdx
ja 0x1402c6f84
cmp r14, rbx
jae 0x1402c7045
cmp rbx, r8
ja 0x1402c6f92
cmp rdx, rdi
jae 0x1402c7045
add rax, rsi
cmp rbx, rax
ja 0x1402c6fa3
cmp rdx, rsi
jae 0x1402c7045
cmp r9d, 0x10
jb 0x1402c6ffe
mov edx, r9d
and edx, 0x8000000f
jge 0x1402c6fbb
dec edx
or edx, 0xfffffff0
inc edx
mov eax, r9d
sub eax, edx
movsxd rdx, eax
nop dword [rax]
nop word [rax + rax]
movdqu xmm1, xmmword [rcx + rsi]
add r10d, 0x10
movdqu xmm0, xmmword [rdi + rcx]
movdqu xmmword [rbp + rcx - 0x30], xmm1
xorps xmm0, xmm1
movdqu xmmword [rbx + rcx], xmm0
add rcx, 0x10
cmp rcx, rdx
jl 0x1402c6fd0
mov eax, r9d
and al, 0xf
cmp al, 8
jb 0x1402c7045
mov eax, r9d
mov rcx, rsi
and eax, 0x80000007
jge 0x1402c7012
dec eax
or eax, 0xfffffff8
inc eax
sub r9d, eax
movsxd rax, r10d
movsxd rdx, r9d
nop dword [rax + rax]
movq xmm1, qword [rcx + rax]
add r10d, 8
movq xmm0, qword [rax + rdi]
xorps xmm0, xmm1
movq qword [rbp + rax - 0x30], xmm1
movq qword [rax + rbx], xmm0
add rax, 8
cmp rax, rdx
jl 0x1402c7020
movsxd rcx, r10d
cmp rcx, r11
jge 0x1402c7066
nop dword [rax]
movzx eax, byte [rcx + rsi]
mov byte [rbp + rcx - 0x30], al
xor al, byte [rcx + rdi]
mov byte [rcx + rbx], al
inc rcx
cmp rcx, r11
jl 0x1402c7050
mov r15, qword [rsp + 0x50]
mov eax, r13d
mov r14, qword [rsp + 0x58]
cdq
and edx, 7
add eax, edx
mov ecx, eax
and eax, 7
sub eax, edx
sar ecx, 3
movsxd r11, ecx
mov ebx, eax
test eax, eax
jne 0x1402c709a
movups xmm0, xmmword [rbp + r11 - 0x40]
movups xmmword [rdi], xmm0
jmp 0x1402c7239
movzx r8d, byte [rbp + r11 - 0x3f]
mov ecx, ebx
movzx edx, byte [rbp + r11 - 0x40]
movzx eax, r8b
shl dl, cl
mov r10d, 8
sub r10b, bl
movzx ecx, r10b
shr al, cl
or dl, al
mov byte [rdi], dl
movzx edx, byte [rbp + r11 - 0x3e]
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + r11 - 0x3d]
mov byte [rdi + 1], al
movzx eax, r8b
shr al, cl
mov ecx, ebx
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + r11 - 0x3c]
mov byte [rdi + 2], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + r11 - 0x3b]
mov byte [rdi + 3], al
movzx eax, r8b
shr al, cl
mov ecx, ebx
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + r11 - 0x3a]
mov byte [rdi + 4], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + r11 - 0x39]
mov byte [rdi + 5], al
movzx eax, r8b
shr al, cl
mov ecx, ebx
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + r11 - 0x38]
mov byte [rdi + 6], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + r11 - 0x37]
mov byte [rdi + 7], al
movzx eax, r8b
shr al, cl
mov ecx, ebx
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + r11 - 0x36]
mov byte [rdi + 8], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r8b, cl
or al, r8b
movzx r8d, byte [rbp + r11 - 0x35]
movzx ecx, r10b
movzx r9d, byte [rbp + r11 - 0x32]
mov byte [rdi + 9], al
movzx eax, r8b
shr al, cl
mov ecx, ebx
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + r11 - 0x34]
mov byte [rdi + 0xa], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + r11 - 0x33]
mov byte [rdi + 0xb], al
movzx eax, r8b
shr al, cl
mov ecx, ebx
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + r11 - 0x31]
mov byte [rdi + 0xc], al
movzx eax, r9b
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
mov byte [rdi + 0xd], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r9b, cl
movzx ecx, r10b
or al, r9b
mov byte [rdi + 0xe], al
movzx eax, byte [rbp + r11 - 0x30]
shr al, cl
mov ecx, ebx
shl dl, cl
or al, dl
mov byte [rdi + 0xf], al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1404a0a30
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret