Function at 0x1801bbb50
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
mov eax, 0x60
call fcn.180383fc0
sub rsp, rax
mov rax, qword [0x180476ea8]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rsi, qword [rbp + 0x50]
lea eax, [r8 - 1]
mov r10, qword [rbp + 0x60]
mov r13d, r8d
mov rbx, rdx
mov rdi, rcx
cmp eax, 0x7f
ja 0x1801bc0ef
movups xmm0, xmmword [rsi]
mov qword [rsp + 0x58], r14
mov r8, r9
mov rdx, rsi
mov qword [rsp + 0x50], r15
mov rcx, rsi
movups xmmword [rbp - 0x40], xmm0
call r10
lea eax, [r13 + 7]
xor r8d, r8d
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd r9, eax
mov r11, r9
cmp dword [rbp + 0x58], r8d
je 0x1801bbd8c
test eax, eax
jle 0x1801bbd42
cmp r9d, 8
jb 0x1801bbd42
lea eax, [r9 - 1]
movsxd r10, eax
add eax, 0x10
movsxd rcx, eax
lea rdx, [r10 + rbx]
lea rcx, [rbp + rcx - 0x40]
cmp rbx, rcx
ja 0x1801bbc0a
lea rax, [rbp - 0x30]
cmp rdx, rax
jae 0x1801bbd42
lea rax, [r10 + rdi]
cmp rbx, rax
ja 0x1801bbc1c
cmp rdx, rdi
jae 0x1801bbd42
lea rax, [r10 + rsi]
cmp rbx, rax
ja 0x1801bbc2e
cmp rdx, rsi
jae 0x1801bbd42
lea rdx, [rbp - 0x30]
cmp rdx, rax
ja 0x1801bbc40
cmp rcx, rsi
jae 0x1801bbd42
mov qword [rsp + 0x90], r12
mov eax, r9d
and eax, 0x80000007
jge 0x1801bbc59
dec eax
or eax, 0xfffffff8
inc eax
sub r9d, eax
lea r10, [rbp - 0x34]
movsxd r12, r9d
lea r14, [rbp - 0x30]
mov r9, rbx
lea rcx, [rdi + 4]
mov rdx, rsi
sub r9, rdi
sub r10, rdi
sub rdx, rdi
sub r14, rdi
mov r15, 0xfffffffffffffffc
sub r15, rdi
nop word [rax + rax]
movd xmm2, dword [rdx + rcx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rcx - 4]
add r8d, 8
movd xmm3, dword [rdx + rcx]
lea rcx, [rcx + 8]
punpcklbw xmm2, xmm0
lea rax, [r15 + rcx]
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
xorps xmm0, xmm0
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1803ac6f0]
movd xmm1, dword [rcx - 8]
packuswb xmm2, xmm2
movd dword [r10 + rcx - 8], xmm2
movd dword [r9 + rcx - 0xc], xmm2
punpcklbw xmm1, xmm0
punpcklbw xmm3, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm3, xmm0
pxor xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1803ac6f0]
packuswb xmm2, xmm2
movd dword [r14 + rcx - 8], xmm2
movd dword [r9 + rcx - 8], xmm2
cmp rax, r12
jl 0x1801bbc90
mov r12, qword [rsp + 0x90]
movsxd rcx, r8d
cmp rcx, r11
jge 0x1801bbf1c
mov rdx, rsi
lea r8, [rbp - 0x30]
sub rdx, rdi
lea rax, [rcx + rdi]
sub r8, rdi
sub rbx, rdi
sub r11, rcx
nop word [rax + rax]
movzx ecx, byte [rax + rdx]
xor cl, byte [rax]
mov byte [rax + r8], cl
mov byte [rax + rbx], cl
lea rax, [rax + 1]
sub r11, 1
jne 0x1801bbd70
jmp 0x1801bbf1c
mov r10d, r8d
test eax, eax
jle 0x1801bbedd
cmp r9d, 8
jb 0x1801bbedd
lea edx, [r9 - 1]
lea eax, [rdx + 0x10]
movsxd rcx, eax
lea r14, [rbp - 0x40]
add r14, rcx
movsxd rax, edx
lea rcx, [rbp - 0x30]
lea rdx, [rax + rsi]
cmp rcx, rdx
ja 0x1801bbdcb
cmp r14, rsi
jae 0x1801bbedd
lea rcx, [rax + rbx]
lea r15, [rbp - 0x30]
cmp r15, rcx
ja 0x1801bbde1
cmp r14, rbx
jae 0x1801bbedd
cmp rbx, rdx
ja 0x1801bbdef
cmp rcx, rsi
jae 0x1801bbedd
add rax, rdi
cmp rbx, rax
ja 0x1801bbe00
cmp rcx, rdi
jae 0x1801bbedd
cmp r9d, 0x10
jb 0x1801bbe77
mov ecx, r9d
and ecx, 0x8000000f
jge 0x1801bbe18
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, r9d
sub eax, ecx
movsxd r15, eax
mov rdx, rdi
lea rax, [rbp - 0x30]
mov rcx, rsi
sub rdx, rax
mov r14, rbx
lea rax, [rbp - 0x30]
sub rcx, rax
lea rax, [rbp - 0x30]
sub r14, rax
nop
lea rax, [rbp - 0x30]
add r10d, 0x10
add rax, r8
add r8, 0x10
movdqu xmm1, xmmword [rax + rdx]
movdqu xmm0, xmmword [rax + rcx]
movdqu xmmword [rax], xmm1
pxor xmm0, xmm1
movdqu xmmword [rax + r14], xmm0
cmp r8, r15
jl 0x1801bbe40
mov eax, r9d
and al, 0xf
cmp al, 8
jb 0x1801bbedd
jmp 0x1801bbe81
lea rax, [rbp - 0x30]
mov rdx, rdi
sub rdx, rax
mov eax, r9d
and eax, 0x80000007
jge 0x1801bbe92
dec eax
or eax, 0xfffffff8
inc eax
sub r9d, eax
movsxd rcx, r10d
lea rax, [rbp - 0x30]
movsxd r14, r9d
mov r8, rsi
mov r9, rbx
sub r8, rax
lea rax, [rbp - 0x30]
sub r9, rax
nop
lea rax, [rbp - 0x30]
add r10d, 8
add rax, rcx
add rcx, 8
movq xmm1, qword [rdx + rax]
movq xmm0, qword [rax + r8]
movq qword [rax], xmm1
pxor xmm0, xmm1
movq qword [rax + r9], xmm0
cmp rcx, r14
jl 0x1801bbeb0
movsxd rdx, r10d
cmp rdx, r11
jge 0x1801bbf1c
lea rax, [rbp - 0x30]
mov r8, rsi
sub rdi, rax
lea rax, [rbp - 0x30]
sub r8, rax
lea rax, [rbp - 0x30]
sub rbx, rax
nop dword [rax]
lea rcx, [rbp - 0x30]
add rcx, rdx
inc rdx
movzx eax, byte [rcx + rdi]
mov byte [rcx], al
xor al, byte [rcx + r8]
mov byte [rcx + rbx], al
cmp rdx, r11
jl 0x1801bbf00
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 0x1801bbf50
movups xmm0, xmmword [rbp + r11 - 0x40]
movups xmmword [rsi], xmm0
jmp 0x1801bc0ef
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 [rsi], 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 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 [rsi + 0xc], al
movzx eax, r9b
shr al, cl
mov ecx, ebx
shl r8b, cl
movzx ecx, r10b
or al, r8b
mov byte [rsi + 0xd], al
movzx eax, dl
shr al, cl
mov ecx, ebx
shl r9b, cl
movzx ecx, r10b
or al, r9b
mov byte [rsi + 0xe], al
movzx eax, byte [rbp + r11 - 0x30]
shr al, cl
mov ecx, ebx
shl dl, cl
or al, dl
mov byte [rsi + 0xf], al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1803831e0
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret