Function at 0x140148420
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
mov eax, 0x60
call fcn.140157170
sub rsp, rax
mov rax, qword [0x14037d648]
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 0x1401489bf
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 0x14014864d
test eax, eax
jle 0x14014860e
cmp r9d, 8
jb 0x14014860e
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 0x1401484da
lea rax, [rbp - 0x30]
cmp rdx, rax
jae 0x14014860e
lea rax, [r10 + rdi]
cmp rbx, rax
ja 0x1401484ec
cmp rdx, rdi
jae 0x14014860e
lea rax, [r10 + rsi]
cmp rbx, rax
ja 0x1401484fe
cmp rdx, rsi
jae 0x14014860e
lea rdx, [rbp - 0x30]
cmp rdx, rax
ja 0x140148510
cmp rcx, rsi
jae 0x14014860e
mov qword [rsp + 0x90], r12
mov eax, r9d
and eax, 0x80000007
jge 0x140148529
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 [0x1402d8730]
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 [0x1402d8730]
packuswb xmm2, xmm2
movd dword [r14 + rcx - 8], xmm2
movd dword [r9 + rcx - 8], xmm2
cmp rax, r12
jl 0x140148560
mov r12, qword [rsp + 0x90]
movsxd rcx, r8d
cmp rcx, r11
jge 0x1401487ec
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 0x140148631
jmp 0x1401487ec
mov r10d, r8d
test eax, eax
jle 0x1401487ac
cmp r9d, 8
jb 0x1401487ac
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 0x14014868c
cmp r14, rsi
jae 0x1401487ac
lea rcx, [rax + rbx]
lea r15, [rbp - 0x30]
cmp r15, rcx
ja 0x1401486a2
cmp r14, rbx
jae 0x1401487ac
cmp rbx, rdx
ja 0x1401486b0
cmp rcx, rsi
jae 0x1401487ac
add rax, rdi
cmp rbx, rax
ja 0x1401486c1
cmp rcx, rdi
jae 0x1401487ac
cmp r9d, 0x10
jb 0x140148746
mov ecx, r9d
and ecx, 0x8000000f
jge 0x1401486dd
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 dword [rax]
nop word [rax + rax]
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
xorps xmm0, xmm1
movdqu xmmword [rax + r14], xmm0
cmp r8, r15
jl 0x140148710
mov eax, r9d
and al, 0xf
cmp al, 8
jb 0x1401487ac
jmp 0x140148750
lea rax, [rbp - 0x30]
mov rdx, rdi
sub rdx, rax
mov eax, r9d
and eax, 0x80000007
jge 0x140148761
dec eax
or eax, 0xfffffff8
inc eax
sub r9d, eax
lea rax, [rbp - 0x30]
movsxd r14, r9d
mov r8, rsi
movsxd rcx, r10d
sub r8, rax
mov r9, rbx
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
xorps xmm0, xmm1
movq qword [rax + r9], xmm0
cmp rcx, r14
jl 0x140148780
movsxd rdx, r10d
cmp rdx, r11
jge 0x1401487ec
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 0x1401487d0
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 0x140148820
movups xmm0, xmmword [rbp + r11 - 0x40]
movups xmmword [rsi], xmm0
jmp 0x1401489bf
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.1401571d0
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret