Function at 0x140018140
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm15
movaps xmmword [rsp + 0xe0], xmm14
movaps xmmword [rsp + 0xd0], xmm13
movaps xmmword [rsp + 0xc0], xmm12
movaps xmmword [rsp + 0xb0], xmm11
movaps xmmword [rsp + 0xa0], xmm10
movaps xmmword [rsp + 0x90], xmm9
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [rcx + 0x20]
movdqa xmm10, xmmword [rcx]
movdqa xmm9, xmmword [rcx + 0x20]
lea r8, [rax + 1]
movdqa xmm11, xmm9
pinsrd xmm11, r8d, 0
shr r8, 0x20
pinsrd xmm11, r8d, 1
lea r8, [rax + 2]
movdqa xmm13, xmm9
pinsrd xmm13, r8d, 0
shr r8, 0x20
pinsrd xmm13, r8d, 1
add rax, 3
movdqa xmm14, xmm9
pinsrd xmm14, eax, 0
shr rax, 0x20
pinsrd xmm14, eax, 1
movdqa xmm7, xmmword [rcx + 0x10]
movdqa xmm5, xmmword [0x1400664d0]
mov eax, 6
movdqa xmm4, xmm5
movdqa xmm3, xmm5
movdqa xmm2, xmm5
movdqa xmm8, xmm7
movdqa xmm12, xmm7
movdqa xmm1, xmm7
movdqa xmmword [rsp + 0x40], xmm7
movdqa xmm6, xmm10
movdqa xmm0, xmm10
movdqa xmm15, xmm10
movdqa xmmword [rsp + 0x50], xmm10
nop word cs:[rax + rax]
paddd xmm5, xmm6
paddd xmm4, xmm0
paddd xmm3, xmm15
paddd xmm2, xmm10
pxor xmm9, xmm5
pxor xmm11, xmm4
pxor xmm13, xmm3
pxor xmm14, xmm2
pshuflw xmm9, xmm9, 0xb1
pshufhw xmm9, xmm9, 0xb1
movdqa xmmword [rsp + 0x10], xmm9
pshuflw xmm11, xmm11, 0xb1
pshufhw xmm11, xmm11, 0xb1
pshuflw xmm13, xmm13, 0xb1
pshufhw xmm13, xmm13, 0xb1
pshuflw xmm14, xmm14, 0xb1
pshufhw xmm14, xmm14, 0xb1
paddd xmm7, xmm9
paddd xmm1, xmm11
paddd xmm12, xmm13
movdqa xmmword [rsp + 0x20], xmm12
paddd xmm8, xmm14
movdqa xmmword [rsp], xmm8
pxor xmm6, xmm7
pxor xmm0, xmm1
pxor xmm15, xmm12
pxor xmm10, xmm8
movdqa xmm8, xmm6
psrld xmm8, 0x14
pslld xmm6, 0xc
por xmm6, xmm8
movdqa xmm8, xmm0
psrld xmm8, 0x14
pslld xmm0, 0xc
por xmm0, xmm8
movdqa xmm8, xmm15
psrld xmm8, 0x14
pslld xmm15, 0xc
por xmm15, xmm8
movdqa xmm8, xmm10
psrld xmm8, 0x14
pslld xmm10, 0xc
por xmm10, xmm8
paddd xmm5, xmm6
paddd xmm4, xmm0
paddd xmm3, xmm15
paddd xmm2, xmm10
movdqa xmm8, xmm5
movdqa xmm12, xmmword [0x1400664e0]
pshufb xmm8, xmm12
movdqa xmm9, xmmword [rsp + 0x10]
pshufb xmm9, xmm12
pxor xmm9, xmm8
movdqa xmmword [rsp + 0x10], xmm9
movdqa xmm8, xmm4
pshufb xmm8, xmm12
pshufb xmm11, xmm12
pxor xmm11, xmm8
movdqa xmm8, xmm3
pshufb xmm8, xmm12
pshufb xmm13, xmm12
pxor xmm13, xmm8
movdqa xmm8, xmm2
pshufb xmm8, xmm12
pshufb xmm14, xmm12
pxor xmm14, xmm8
paddd xmm7, xmm9
paddd xmm1, xmm11
movdqa xmm9, xmmword [rsp + 0x20]
paddd xmm9, xmm13
movdqa xmm8, xmmword [rsp]
paddd xmm8, xmm14
pxor xmm6, xmm7
pxor xmm0, xmm1
pxor xmm15, xmm9
movdqa xmm12, xmm9
pxor xmm10, xmm8
movdqa xmm9, xmm8
movdqa xmm8, xmm6
psrld xmm8, 0x19
pslld xmm6, 7
por xmm6, xmm8
movdqa xmm8, xmm0
psrld xmm8, 0x19
pslld xmm0, 7
por xmm0, xmm8
movdqa xmm8, xmm15
psrld xmm8, 0x19
pslld xmm15, 7
por xmm15, xmm8
movdqa xmm8, xmm10
psrld xmm8, 0x19
pslld xmm10, 7
por xmm10, xmm8
pshufd xmm6, xmm6, 0x39
pshufd xmm0, xmm0, 0x39
pshufd xmm15, xmm15, 0x39
pshufd xmm10, xmm10, 0x39
pshufd xmm7, xmm7, 0x4e
movdqa xmmword [rsp + 0x30], xmm7
pshufd xmm1, xmm1, 0x4e
movdqa xmmword [rsp], xmm1
pshufd xmm12, xmm12, 0x4e
pshufd xmm1, xmm9, 0x4e
movdqa xmmword [rsp + 0x20], xmm1
paddd xmm5, xmm6
paddd xmm4, xmm0
paddd xmm3, xmm15
paddd xmm2, xmm10
pshuflw xmm1, xmm5, 0xb1
pshufhw xmm1, xmm1, 0xb1
movdqa xmm8, xmmword [0x1400664f0]
movdqa xmm9, xmmword [rsp + 0x10]
pshufb xmm9, xmm8
pxor xmm9, xmm1
pshuflw xmm1, xmm4, 0xb1
pshufhw xmm1, xmm1, 0xb1
pshufb xmm11, xmm8
pxor xmm11, xmm1
pshuflw xmm1, xmm3, 0xb1
pshufhw xmm1, xmm1, 0xb1
pshufb xmm13, xmm8
pxor xmm13, xmm1
pshuflw xmm1, xmm2, 0xb1
pshufhw xmm1, xmm1, 0xb1
pshufb xmm14, xmm8
pxor xmm14, xmm1
movdqa xmm7, xmmword [rsp + 0x30]
paddd xmm7, xmm9
movdqa xmm1, xmmword [rsp]
paddd xmm1, xmm11
movdqa xmmword [rsp], xmm1
paddd xmm12, xmm13
movdqa xmm8, xmmword [rsp + 0x20]
paddd xmm8, xmm14
pxor xmm6, xmm7
pxor xmm0, xmm1
pxor xmm15, xmm12
pxor xmm10, xmm8
movdqa xmm1, xmm6
psrld xmm1, 0x14
pslld xmm6, 0xc
por xmm6, xmm1
movdqa xmm1, xmm0
psrld xmm1, 0x14
pslld xmm0, 0xc
por xmm0, xmm1
movdqa xmm1, xmm15
psrld xmm1, 0x14
pslld xmm15, 0xc
por xmm15, xmm1
movdqa xmm1, xmm10
psrld xmm1, 0x14
pslld xmm10, 0xc
por xmm10, xmm1
paddd xmm5, xmm6
paddd xmm4, xmm0
paddd xmm3, xmm15
paddd xmm2, xmm10
pxor xmm9, xmm5
pxor xmm11, xmm4
pxor xmm13, xmm3
pxor xmm14, xmm2
movdqa xmm1, xmmword [0x1400664e0]
pshufb xmm9, xmm1
movdqa xmmword [rsp + 0x10], xmm9
pshufb xmm11, xmm1
pshufb xmm13, xmm1
pshufb xmm14, xmm1
paddd xmm7, xmm9
movdqa xmm9, xmmword [rsp]
paddd xmm9, xmm11
paddd xmm12, xmm13
paddd xmm8, xmm14
pxor xmm6, xmm7
pxor xmm0, xmm9
pxor xmm15, xmm12
pxor xmm10, xmm8
movdqa xmm1, xmm6
psrld xmm1, 0x19
pslld xmm6, 7
por xmm6, xmm1
movdqa xmm1, xmm0
psrld xmm1, 0x19
pslld xmm0, 7
por xmm0, xmm1
movdqa xmm1, xmm15
psrld xmm1, 0x19
pslld xmm15, 7
por xmm15, xmm1
movdqa xmm1, xmm10
psrld xmm1, 0x19
pslld xmm10, 7
por xmm10, xmm1
pshufd xmm6, xmm6, 0x93
pshufd xmm0, xmm0, 0x93
pshufd xmm15, xmm15, 0x93
pshufd xmm10, xmm10, 0x93
pshufd xmm7, xmm7, 0x4e
pshufd xmm1, xmm9, 0x4e
pshufd xmm12, xmm12, 0x4e
pshufd xmm8, xmm8, 0x4e
pshufd xmm9, xmmword [rsp + 0x10], 0x39
pshufd xmm11, xmm11, 0x39
pshufd xmm13, xmm13, 0x39
pshufd xmm14, xmm14, 0x39
dec eax
jne 0x140018250
movdqa xmmword [rsp], xmm8
movdqa xmm8, xmmword [0x1400664d0]
paddd xmm2, xmm8
paddd xmm3, xmm8
paddd xmm4, xmm8
paddd xmm5, xmm8
movdqa xmm8, xmmword [rcx + 0x20]
movq r10, xmm8
lea r8, [r10 + 1]
lea r9, [r10 + 2]
lea rax, [r10 + 3]
add r10, 4
paddd xmm9, xmm8
movdqa xmmword [rsp + 0x30], xmm8
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm8
pinsrd xmm8, r10d, 0
shr r10, 0x20
pinsrd xmm8, r10d, 1
movdqa xmmword [rcx + 0x20], xmm8
movdqu xmmword [rdx], xmm5
movdqa xmm5, xmmword [rsp + 0x50]
paddd xmm6, xmm5
movdqu xmmword [rdx + 0x10], xmm6
movdqa xmm6, xmmword [rsp + 0x40]
paddd xmm7, xmm6
movdqu xmmword [rdx + 0x20], xmm7
movdqu xmmword [rdx + 0x30], xmm9
movdqu xmmword [rdx + 0x40], xmm4
paddd xmm0, xmm5
movdqu xmmword [rdx + 0x50], xmm0
paddd xmm1, xmm6
movdqu xmmword [rdx + 0x60], xmm1
movdqa xmm0, xmmword [rsp + 0x30]
pinsrd xmm0, r8d, 0
shr r8, 0x20
pinsrd xmm0, r8d, 1
paddd xmm11, xmm0
movdqu xmmword [rdx + 0x70], xmm11
movdqu xmmword [rdx + 0x80], xmm3
paddd xmm15, xmm5
movdqu xmmword [rdx + 0x90], xmm15
movdqa xmm0, xmmword [rsp + 0x20]
pinsrd xmm0, r9d, 0
shr r9, 0x20
pinsrd xmm0, r9d, 1
paddd xmm12, xmm6
movdqu xmmword [rdx + 0xa0], xmm12
paddd xmm13, xmm0
movdqu xmmword [rdx + 0xb0], xmm13
movdqu xmmword [rdx + 0xc0], xmm2
paddd xmm10, xmm5
movdqu xmmword [rdx + 0xd0], xmm10
movdqa xmm0, xmmword [rsp]
paddd xmm0, xmm6
movdqu xmmword [rdx + 0xe0], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pinsrd xmm0, eax, 0
shr rax, 0x20
pinsrd xmm0, eax, 1
paddd xmm14, xmm0
movdqu xmmword [rdx + 0xf0], xmm14
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm10, xmmword [rsp + 0xa0]
movaps xmm11, xmmword [rsp + 0xb0]
movaps xmm12, xmmword [rsp + 0xc0]
movaps xmm13, xmmword [rsp + 0xd0]
movaps xmm14, xmmword [rsp + 0xe0]
movaps xmm15, xmmword [rsp + 0xf0]
add rsp, 0x108
ret