Function at 0x1801c0c70
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
mov eax, 0x60
call fcn.18037bbf0
sub rsp, rax
mov rax, qword [0x1804ae600]
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 0x1801c11a9
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 0x1801c0e9e
test eax, eax
jle 0x1801c0e5f
cmp r9d, 8
jb 0x1801c0e5f
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 0x1801c0d28
lea rax, [rbp - 0x30]
cmp r8, rax
jae 0x1801c0e5f
lea rax, [r10 + rsi]
cmp rbx, rax
ja 0x1801c0d3a
cmp r8, rsi
jae 0x1801c0e5f
lea rax, [r10 + rdi]
cmp rbx, rax
ja 0x1801c0d4c
cmp r8, rdi
jae 0x1801c0e5f
lea r8, [rbp - 0x30]
cmp r8, rax
ja 0x1801c0d5e
cmp rdx, rdi
jae 0x1801c0e5f
mov qword [rsp + 0x90], r12
mov eax, r9d
and eax, 0x80000007
jge 0x1801c0d77
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 [0x1803e3c00]
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 [0x1803e3c00]
packuswb xmm2, xmm2
movd dword [r10 + rdx - 8], xmm2
movd dword [r14 + rdx - 8], xmm2
cmp rax, r12
jl 0x1801c0db0
mov r12, qword [rsp + 0x90]
movsxd rax, ecx
cmp rax, r11
jge 0x1801c0fd6
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 0x1801c0e82
jmp 0x1801c0fd6
mov r10d, ecx
test eax, eax
jle 0x1801c0fb5
cmp r9d, 8
jb 0x1801c0fb5
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 0x1801c0ede
cmp r14, rdi
jae 0x1801c0fb5
lea rdx, [rax + rbx]
lea r15, [rbp - 0x30]
cmp r15, rdx
ja 0x1801c0ef4
cmp r14, rbx
jae 0x1801c0fb5
cmp rbx, r8
ja 0x1801c0f02
cmp rdx, rdi
jae 0x1801c0fb5
add rax, rsi
cmp rbx, rax
ja 0x1801c0f13
cmp rdx, rsi
jae 0x1801c0fb5
cmp r9d, 0x10
jb 0x1801c0f6e
mov edx, r9d
and edx, 0x8000000f
jge 0x1801c0f2b
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 0x1801c0f40
mov eax, r9d
and al, 0xf
cmp al, 8
jb 0x1801c0fb5
mov eax, r9d
mov rcx, rsi
and eax, 0x80000007
jge 0x1801c0f82
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 0x1801c0f90
movsxd rcx, r10d
cmp rcx, r11
jge 0x1801c0fd6
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 0x1801c0fc0
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 0x1801c100a
movups xmm0, xmmword [rbp + r11 - 0x40]
movups xmmword [rdi], xmm0
jmp 0x1801c11a9
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.18037b060
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret