Function at 0x1400c1540
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rax + 8], rbx
lea rdx, [rbp - 0x59]
mov qword [rax + 0x10], rsi
xor edi, edi
mov qword [rax + 0x18], r14
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea rcx, [0x140247d00]
movaps xmmword [rax - 0x28], xmm7
xorps xmm0, xmm0
movaps xmmword [rax - 0x38], xmm8
mov esi, 1
mov r8d, esi
movaps xmmword [rax - 0x48], xmm9
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], select
mov dword [rbp - 0x29], 6
mov dword [rbp - 0x25], 3
mov qword [rbp - 0x21], 2
mov qword [rbp - 0x19], rdi
mov dword [rbp - 0x11], edi
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rdi
mov dword [rbp - 0x31], select
mov dword [rbp - 0x2d], 0x2bc
call fcn.1400a9a10
movups xmm0, xmmword [str.x_RSPEkoPT_SJb_o4v0__G]
mov qword [rbx + 0x1c0], rax
mov r8d, edi
cmp dword [0x140248200], 2
lea r14d, [rdi + 0x1f]
mov eax, dword [0x140112d60]
movups xmm1, xmmword [0x140112d48]
mov dword [rbp - 0x61], eax
movzx eax, word [0x140112d64]
movups xmmword [rsp + 0x20], xmm0
mov word [rbp - 0x5d], ax
movsd xmm0, qword [0x140112d58]
movsd qword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x79], xmm1
jl 0x1400c1753
movdqa xmm5, xmmword [0x14010c2c0]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x140110dc0]
movdqa xmm7, xmmword [str.7777]
movdqa xmm9, xmmword [str.11111111]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x10
jl 0x1400c1660
cmp r8d, 0x17
jge 0x1400c1794
movsxd rax, r8d
lea r9, [rsp + 0x20]
lea r9, [r9 + rax*2]
nop
mov eax, 0x94f2095
lea r9, [r9 + 2]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x31
xor word [r9 - 2], ax
cmp r8d, 0x17
jl 0x1400c1760
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x140247d00]
call fcn.1400aa2d0
movups xmm0, xmmword [str.x_RSPEktV_TcnS__l5q1_Hx_RSPEk]
mov qword [rbx + 0x1e8], rax
mov r8d, edi
cmp dword [0x140248200], 2
movups xmm1, xmmword [0x140112d78]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x140112d88]
movups xmmword [rbp - 0x79], xmm1
movups xmmword [rbp - 0x69], xmm0
jl 0x1400c190b
movdqa xmm5, xmmword [0x14010c2c0]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x140110dc0]
mov edx, edi
movdqa xmm7, xmmword [str.7777]
movdqa xmm9, xmmword [str.11111111]
movd xmm6, esi
movd xmm8, r14d
nop dword [rax]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add edx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp edx, 0x18
jl 0x1400c1820
jmp 0x1400c1947
lea r9, [rsp + 0x20]
mov eax, 0x29e4129f
lea r9, [r9 + 2]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movzx eax, ax
imul ecx, eax, 0x37
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x31
xor word [r9 - 2], ax
cmp r8d, 0x18
jl 0x1400c1910
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x140247d00]
call fcn.1400aa2d0
movups xmm0, xmmword [0x140112d98]
mov qword [rbx + 0x1f0], rax
mov ecx, edi
cmp dword [0x140248200], 2
movups xmm1, xmmword [0x140112da8]
mov eax, dword [0x140112db8]
movups xmmword [rsp + 0x20], xmm0
mov dword [rbp - 0x69], eax
movups xmmword [rbp - 0x79], xmm1
jl 0x1400c1aae
movdqa xmm5, xmmword [0x14010c2c0]
lea rdx, [rsp + 0x20]
movdqa xmm4, xmmword [0x140110dc0]
movdqa xmm7, xmmword [str.7777]
movdqa xmm9, xmmword [str.11111111]
movd xmm6, esi
movd xmm8, r14d
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x10
jl 0x1400c19c0
cmp ecx, 0x12
jge 0x1400c1af0
movsxd rax, ecx
lea r8, [rsp + 0x20]
lea r8, [r8 + rax*2]
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x37
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x31
xor word [r8 - 2], ax
cmp ecx, 0x12
jl 0x1400c1ac0
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x140247d00]
call fcn.1400aa2d0
mov rcx, qword [rbp - 9]
movaps xmm9, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
movaps xmm7, xmmword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xf0]
mov r14, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov qword [rbx + 0x208], rax
mov rbx, qword [rsp + 0x110]
test rcx, rcx
je 0x1400c1b8b
mov rdx, qword [rbp + 7]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1400c1b7a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c1bd3
call fcn.1400dc808
xorps xmm0, xmm0
mov qword [rbp + 7], rdi
movdqu xmmword [rbp - 9], xmm0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1400c1bc2
mov rcx, qword [rbp - 0x51]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c1bbd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c1bd3
call fcn.1400dc808
mov rdi, qword [rsp + 0x128]
add rsp, 0x100
pop rbp
ret
call fcn.1400e34bc
int3