Function at 0x1403172e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
mov eax, 0x60
call fcn.1403983a0
sub rsp, rax
mov rax, qword [0x14048bd00]
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 0x1403177fd
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 0x1403174ee
test eax, eax
jle 0x1403174af
cmp r9d, 8
jb 0x1403174af
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 0x140317398
lea rax, [rbp - 0x30]
cmp r8, rax
jae 0x1403174af
lea rax, [r10 + rsi]
cmp rbx, rax
ja 0x1403173aa
cmp r8, rsi
jae 0x1403174af
lea rax, [r10 + rdi]
cmp rbx, rax
ja 0x1403173bc
cmp r8, rdi
jae 0x1403174af
lea r8, [rbp - 0x30]
cmp r8, rax
ja 0x1403173ce
cmp rdx, rdi
jae 0x1403174af
mov qword [rsp + 0x90], r12
mov eax, r9d
and eax, 0x80000007
jge 0x1403173e7
dec eax
or eax, 0xfffffff8
inc eax
movdqa xmm3, xmmword [0x140406af0]
lea r8, [rbp - 0x34]
sub r9d, eax
lea r10, [rbp - 0x30]
movsxd r12, r9d
lea rdx, [rsi + 4]
mov r9, rdi
mov r14, rbx
sub r9, rsi
sub r8, rsi
sub r10, rsi
sub r14, rsi
mov r15, 0xfffffffffffffffc
sub r15, rsi
nop dword [rax]
movd xmm2, dword [rdx + r9 - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
lea rax, [r15 + rdx]
punpcklwd xmm2, xmm0
add ecx, 8
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd dword [r8 + rdx - 8], xmm2
movd dword [r14 + rdx - 0xc], xmm2
movd xmm2, dword [rdx + r9 - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd dword [r10 + rdx - 8], xmm2
movd dword [r14 + rdx - 8], xmm2
cmp rax, r12
jl 0x140317420
mov r12, qword [rsp + 0x90]
movsxd rax, ecx
cmp rax, r11
jge 0x140317626
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 0x1403174d2
jmp 0x140317626
mov r10d, ecx
test eax, eax
jle 0x140317605
cmp r9d, 8
jb 0x140317605
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 0x14031752e
cmp r14, rdi
jae 0x140317605
lea rdx, [rax + rbx]
lea r15, [rbp - 0x30]
cmp r15, rdx
ja 0x140317544
cmp r14, rbx
jae 0x140317605
cmp rbx, r8
ja 0x140317552
cmp rdx, rdi
jae 0x140317605
add rax, rsi
cmp rbx, rax
ja 0x140317563
cmp rdx, rsi
jae 0x140317605
cmp r9d, 0x10
jb 0x1403175be
mov edx, r9d
and edx, 0x8000000f
jge 0x14031757b
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 0x140317590
mov eax, r9d
and al, 0xf
cmp al, 8
jb 0x140317605
mov eax, r9d
mov rcx, rsi
and eax, 0x80000007
jge 0x1403175d2
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 0x1403175e0
movsxd rcx, r10d
cmp rcx, r11
jge 0x140317626
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 0x140317610
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 rbx, ecx
mov r11d, eax
lea rdx, [rbp - 0x40]
test eax, eax
jne 0x14031765d
movups xmm0, xmmword [rdx + rbx]
movups xmmword [rdi], xmm0
jmp 0x1403177fd
movzx edx, byte [rdx + rbx]
mov ecx, r11d
movzx r8d, byte [rbp + rbx - 0x3f]
mov r10d, 8
shl dl, cl
movzx eax, r8b
sub r10b, r11b
movzx ecx, r10b
shr al, cl
mov ecx, r11d
or dl, al
shl r8b, cl
mov byte [rdi], dl
movzx ecx, r10b
movzx edx, byte [rbp + rbx - 0x3e]
movzx eax, dl
shr al, cl
or r8b, al
mov byte [rdi + 1], r8b
movzx r8d, byte [rbp + rbx - 0x3d]
movzx eax, r8b
shr al, cl
mov ecx, r11d
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + rbx - 0x3c]
mov byte [rdi + 2], al
movzx eax, dl
shr al, cl
mov ecx, r11d
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + rbx - 0x3b]
mov byte [rdi + 3], al
movzx eax, r8b
shr al, cl
mov ecx, r11d
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + rbx - 0x3a]
mov byte [rdi + 4], al
movzx eax, dl
shr al, cl
mov ecx, r11d
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + rbx - 0x39]
mov byte [rdi + 5], al
movzx eax, r8b
shr al, cl
mov ecx, r11d
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + rbx - 0x38]
mov byte [rdi + 6], al
movzx eax, dl
shr al, cl
mov ecx, r11d
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + rbx - 0x37]
mov byte [rdi + 7], al
movzx eax, r8b
shr al, cl
mov ecx, r11d
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + rbx - 0x36]
mov byte [rdi + 8], al
movzx eax, dl
shr al, cl
mov ecx, r11d
shl r8b, cl
or al, r8b
movzx r8d, byte [rbp + rbx - 0x35]
movzx ecx, r10b
movzx r9d, byte [rbp + rbx - 0x32]
mov byte [rdi + 9], al
movzx eax, r8b
shr al, cl
mov ecx, r11d
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + rbx - 0x34]
mov byte [rdi + 0xa], al
movzx eax, dl
shr al, cl
mov ecx, r11d
shl r8b, cl
movzx ecx, r10b
or al, r8b
movzx r8d, byte [rbp + rbx - 0x33]
mov byte [rdi + 0xb], al
movzx eax, r8b
shr al, cl
mov ecx, r11d
shl dl, cl
movzx ecx, r10b
or al, dl
movzx edx, byte [rbp + rbx - 0x31]
mov byte [rdi + 0xc], al
movzx eax, r9b
shr al, cl
mov ecx, r11d
shl r8b, cl
or al, r8b
shl r9b, cl
mov byte [rdi + 0xd], al
movzx ecx, r10b
movzx eax, dl
shr al, cl
or r9b, al
movzx eax, byte [rbp + rbx - 0x30]
shr al, cl
mov ecx, r11d
shl dl, cl
or al, dl
mov byte [rdi + 0xe], r9b
mov byte [rdi + 0xf], al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140397b20
add rsp, 0x60
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret