Function at 0x140001540
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x190
mov r12d, dword [0x140006018]
xor r13d, r13d
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
lea edi, [r13 + 0x1f]
movaps xmmword [rax - 0x68], xmm8
lea r9, [rbp + 0xe0]
mov qword [rbp + 0xe0], r13
lea r8, [rbp + 0xd8]
mov qword [rbp + 0xd8], r13
mov ebx, 5
call fcn.140002c90
movzx eax, byte [0x140004400]
mov r8d, r13d
mov byte [rbp - 0x70], al
movups xmm0, xmmword [0x1400043e0]
movups xmm1, xmmword [0x1400043f0]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm1
cmp r12d, 2
jl 0x140001221
movdqa xmm0, xmmword [str.6666666666666666]
lea rcx, [rsp + 0x74]
movdqa xmm5, xmmword [0x140004650]
movdqa xmm4, xmmword [0x140004690]
movdqa xmm7, xmmword [str.3333]
movdqa xmmword [rsp + 0x60], xmm0
mov edx, dword [rsp + 0x60]
movd xmm6, ebx
movd xmm8, edi
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140004670]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140004670]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x140001110
cmp r8d, 0x21
jge 0x140001264
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x36
xor byte [r9 - 1], al
cmp r8d, 0x21
jl 0x140001230
mov eax, dword [0x1400043d8]
mov r8d, r13d
mov dword [rsp + 0x50], eax
movzx eax, word [0x1400043dc]
mov word [rsp + 0x54], ax
movzx eax, byte [0x1400043de]
mov byte [rsp + 0x56], al
movups xmm0, xmmword [str.q_YSl]
movups xmmword [rsp + 0x40], xmm0
cmp r12d, 2
jl 0x1400013f1
movdqa xmm0, xmmword [str.6666666666666666]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140004650]
movdqa xmm4, xmmword [0x140004690]
movdqa xmm7, xmmword [str.3333]
movdqa xmmword [rsp + 0x60], xmm0
mov edx, dword [rsp + 0x60]
movd xmm6, ebx
movd xmm8, edi
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140004670]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140004670]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1400012e0
cmp r8d, 0x17
jge 0x140001434
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x36
xor byte [r9 - 1], al
cmp r8d, 0x17
jl 0x140001400
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.140002350
movups xmm0, xmmword [rsp + 0x40]
mov r14, qword [rbp + 0xe0]
mov r15, qword [rbp + 0xd8]
movups xmmword [rbp + 0x50], xmm0
mov rbx, r15
test r14, r14
je 0x1400014c0
lea rdi, [rbp + 0x50]
lea rsi, [r14 - 1]
sub rdi, rbx
shr rsi, 4
inc rsi
nop dword [rax]
nop word [rax + rax]
movups xmm6, xmmword [rbx]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140002a00
mov r8d, 0x10
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub r8, 1
jne 0x1400014a0
sub rdi, 0x10
movups xmmword [rbp + 0x50], xmm6
sub rsi, 1
jne 0x140001480
lea edi, [rsi + 0x1f]
mov rdx, r14
mov rcx, r15
call fcn.140001aa0
mov rbx, rax
test rax, rax
je 0x14000107b
lea rdx, [rbp + 0xd0]
mov dword [rbp + 0xd0], 0x64616f4c
mov rcx, rax
mov byte [rbp + 0xd4], r13b
call fcn.1400020c0
test rax, rax
je 0x14000107b
xor ecx, ecx
call rax
mov rcx, rbx
call fcn.140002230
movaps xmm8, xmmword [rsp + 0x160]
movaps xmm7, xmmword [rsp + 0x170]
movaps xmm6, xmmword [rsp + 0x180]
mov rsi, qword [rsp + 0x1e8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
jmp 0x140001040