Function at 0x140272420
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
mov eax, 0x60
call fcn.140281170
sub rsp, rax
mov rax, qword [0x1404a7648]
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 0x1402729bf
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 0x14027264d
test eax, eax
jle 0x14027260e
cmp r9d, 8
jb 0x14027260e
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 0x1402724da
lea rax, [rbp - 0x30]
cmp rdx, rax
jae 0x14027260e
lea rax, [r10 + rdi]
cmp rbx, rax
ja 0x1402724ec
cmp rdx, rdi
jae 0x14027260e
lea rax, [r10 + rsi]
cmp rbx, rax
ja 0x1402724fe
cmp rdx, rsi
jae 0x14027260e
lea rdx, [rbp - 0x30]
cmp rdx, rax
ja 0x140272510
cmp rcx, rsi
jae 0x14027260e
mov qword [rsp + 0x90], r12
mov eax, r9d
and eax, 0x80000007
jge 0x140272529
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
xorps xmm2, xmm1
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
xorps xmm0, xmm0
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140402730]
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
xorps xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140402730]
packuswb xmm2, xmm2
movd dword [r14 + rcx - 8], xmm2
movd dword [r9 + rcx - 8], xmm2
cmp rax, r12
jl 0x140272560
mov r12, qword [rsp + 0x90]
movsxd rcx, r8d
cmp rcx, r11
jge 0x1402727ec
mov rdx, rsi
lea r8, [rbp - 0x30]
sub rdx, rdi
lea rax, [rcx + rdi]
sub r8, rdi
sub rbx, rdi
sub r11, rcx
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 0x140272631
jmp 0x1402727ec
mov r10d, r8d
test eax, eax
jle 0x1402727ac
cmp r9d, 8
jb 0x1402727ac
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 0x14027268c
cmp r14, rsi
jae 0x1402727ac
lea rcx, [rax + rbx]
lea r15, [rbp - 0x30]
cmp r15, rcx
ja 0x1402726a2
cmp r14, rbx
jae 0x1402727ac
cmp rbx, rdx
ja 0x1402726b0
cmp rcx, rsi
jae 0x1402727ac
add rax, rdi
cmp rbx, rax
ja 0x1402726c1
cmp rcx, rdi
jae 0x1402727ac
cmp r9d, 0x10
jb 0x140272746
mov ecx, r9d
and ecx, 0x8000000f
jge 0x1402726dd
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
lea rax, [rbp - 0x30]
mov rdx, rdi
sub rdx, rax