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

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
mov r9, rsp
sub rsp, 0x1e8
movaps xmmword [r9 - 0xa8], xmm6
movaps xmmword [r9 - 0x98], xmm7
movaps xmmword [r9 - 0x88], xmm8
movaps xmmword [r9 - 0x78], xmm9
movaps xmmword [r9 - 0x68], xmm10
movaps xmmword [r9 - 0x58], xmm11
movaps xmmword [r9 - 0x48], xmm12
movaps xmmword [r9 - 0x38], xmm13
movaps xmmword [r9 - 0x28], xmm14
movaps xmmword [r9 - 0x18], xmm15
movdqa xmm11, xmmword [str.expand_32_byte_k]
movdqu xmm15, xmmword [rcx]
movdqu xmm7, xmmword [rcx + 0x10]
movdqu xmm3, xmmword [r8]
lea rcx, [rsp + 0x100]
lea r10, [0x1401534c0]
lea r11, [0x1401534d0]
pshufd xmm8, xmm11, 0
pshufd xmm9, xmm11, 0x55
movdqa xmmword [rsp + 0x40], xmm8
pshufd xmm10, xmm11, 0xaa
movdqa xmmword [rsp + 0x50], xmm9
pshufd xmm11, xmm11, 0xff
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
pshufd xmm12, xmm15, 0
pshufd xmm13, xmm15, 0x55
movdqa xmmword [rcx - 0x80], xmm12
pshufd xmm14, xmm15, 0xaa
movdqa xmmword [rcx - 0x70], xmm13
pshufd xmm15, xmm15, 0xff
movdqa xmmword [rcx - 0x60], xmm14
movdqa xmmword [rcx - 0x50], xmm15
pshufd xmm4, xmm7, 0
pshufd xmm5, xmm7, 0x55
movdqa xmmword [rcx - 0x40], xmm4
pshufd xmm6, xmm7, 0xaa
movdqa xmmword [rcx - 0x30], xmm5
pshufd xmm7, xmm7, 0xff
movdqa xmmword [rcx - 0x20], xmm6
movdqa xmmword [rcx - 0x10], xmm7
pshufd xmm0, xmm3, 0
pshufd xmm1, xmm3, 0x55
paddd xmm0, xmmword [0x140153460]
pshufd xmm2, xmm3, 0xaa
movdqa xmmword [rcx + 0x10], xmm1
pshufd xmm3, xmm3, 0xff
movdqa xmmword [rcx + 0x20], xmm2
movdqa xmmword [rcx + 0x30], xmm3
jmp 0x140023143
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rcx - 0x80]
movdqa xmm13, xmmword [rcx - 0x70]
movdqa xmm14, xmmword [rcx - 0x60]
movdqa xmm15, xmmword [rcx - 0x50]
movdqa xmm4, xmmword [rcx - 0x40]
movdqa xmm5, xmmword [rcx - 0x30]
movdqa xmm6, xmmword [rcx - 0x20]
movdqa xmm7, xmmword [rcx - 0x10]
movdqa xmm0, xmmword [rcx]
movdqa xmm1, xmmword [rcx + 0x10]
movdqa xmm2, xmmword [rcx + 0x20]
movdqa xmm3, xmmword [rcx + 0x30]
paddd xmm0, xmmword [0x140153470]
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmm7, xmmword [r10]
mov eax, 0xa
movdqa xmmword [rcx], xmm0
jmp 0x140023180
paddd xmm8, xmm12
paddd xmm9, xmm13
pxor xmm0, xmm8
pxor xmm1, xmm9
pshufb xmm0, xmm7
pshufb xmm1, xmm7
paddd xmm4, xmm0
paddd xmm5, xmm1
pxor xmm12, xmm4
pxor xmm13, xmm5
movdqa xmm6, xmm12
pslld xmm12, 0xc
psrld xmm6, 0x14
movdqa xmm7, xmm13
pslld xmm13, 0xc
por xmm12, xmm6
psrld xmm7, 0x14
movdqa xmm6, xmmword [r11]
por xmm13, xmm7
paddd xmm8, xmm12
paddd xmm9, xmm13
pxor xmm0, xmm8
pxor xmm1, xmm9
pshufb xmm0, xmm6
pshufb xmm1, xmm6
paddd xmm4, xmm0
paddd xmm5, xmm1
pxor xmm12, xmm4
pxor xmm13, xmm5
movdqa xmm7, xmm12
pslld xmm12, 7
psrld xmm7, 0x19
movdqa xmm6, xmm13
pslld xmm13, 7
por xmm12, xmm7
psrld xmm6, 0x19
movdqa xmm7, xmmword [r10]
por xmm13, xmm6
movdqa xmmword [rsp], xmm4
movdqa xmmword [rsp + 0x10], xmm5
movdqa xmm4, xmmword [rsp + 0x20]
movdqa xmm5, xmmword [rsp + 0x30]
paddd xmm10, xmm14
paddd xmm11, xmm15
pxor xmm2, xmm10
pxor xmm3, xmm11
pshufb xmm2, xmm7
pshufb xmm3, xmm7
paddd xmm4, xmm2
paddd xmm5, xmm3
pxor xmm14, xmm4
pxor xmm15, xmm5
movdqa xmm6, xmm14
pslld xmm14, 0xc
psrld xmm6, 0x14
movdqa xmm7, xmm15
pslld xmm15, 0xc
por xmm14, xmm6
psrld xmm7, 0x14
movdqa xmm6, xmmword [r11]
por xmm15, xmm7
paddd xmm10, xmm14
paddd xmm11, xmm15
pxor xmm2, xmm10
pxor xmm3, xmm11
pshufb xmm2, xmm6
pshufb xmm3, xmm6
paddd xmm4, xmm2
paddd xmm5, xmm3
pxor xmm14, xmm4
pxor xmm15, xmm5
movdqa xmm7, xmm14
pslld xmm14, 7
psrld xmm7, 0x19
movdqa xmm6, xmm15
pslld xmm15, 7
por xmm14, xmm7
psrld xmm6, 0x19
movdqa xmm7, xmmword [r10]
por xmm15, xmm6
paddd xmm8, xmm13
paddd xmm9, xmm14
pxor xmm3, xmm8
pxor xmm0, xmm9
pshufb xmm3, xmm7
pshufb xmm0, xmm7
paddd xmm4, xmm3
paddd xmm5, xmm0
pxor xmm13, xmm4
pxor xmm14, xmm5
movdqa xmm6, xmm13
pslld xmm13, 0xc
psrld xmm6, 0x14
movdqa xmm7, xmm14
pslld xmm14, 0xc
por xmm13, xmm6
psrld xmm7, 0x14
movdqa xmm6, xmmword [r11]
por xmm14, xmm7
paddd xmm8, xmm13
paddd xmm9, xmm14
pxor xmm3, xmm8
pxor xmm0, xmm9
pshufb xmm3, xmm6
pshufb xmm0, xmm6
paddd xmm4, xmm3
paddd xmm5, xmm0
pxor xmm13, xmm4
pxor xmm14, xmm5
movdqa xmm7, xmm13
pslld xmm13, 7
psrld xmm7, 0x19
movdqa xmm6, xmm14
pslld xmm14, 7
por xmm13, xmm7
psrld xmm6, 0x19
movdqa xmm7, xmmword [r10]
por xmm14, xmm6
movdqa xmmword [rsp + 0x20], xmm4
movdqa xmmword [rsp + 0x30], xmm5
movdqa xmm4, xmmword [rsp]
movdqa xmm5, xmmword [rsp + 0x10]
paddd xmm10, xmm15
paddd xmm11, xmm12
pxor xmm1, xmm10
pxor xmm2, xmm11
pshufb xmm1, xmm7
pshufb xmm2, xmm7
paddd xmm4, xmm1
paddd xmm5, xmm2
pxor xmm15, xmm4
pxor xmm12, xmm5
movdqa xmm6, xmm15
pslld xmm15, 0xc
psrld xmm6, 0x14
movdqa xmm7, xmm12
pslld xmm12, 0xc
por xmm15, xmm6
psrld xmm7, 0x14
movdqa xmm6, xmmword [r11]
por xmm12, xmm7
paddd xmm10, xmm15
paddd xmm11, xmm12
pxor xmm1, xmm10
pxor xmm2, xmm11
pshufb xmm1, xmm6
pshufb xmm2, xmm6
paddd xmm4, xmm1
paddd xmm5, xmm2
pxor xmm15, xmm4
pxor xmm12, xmm5
movdqa xmm7, xmm15
pslld xmm15, 7
psrld xmm7, 0x19
movdqa xmm6, xmm12
pslld xmm12, 7
por xmm15, xmm7
psrld xmm6, 0x19
movdqa xmm7, xmmword [r10]
por xmm12, xmm6
dec eax
jne 0x140023180
paddd xmm8, xmmword [rsp + 0x40]
paddd xmm9, xmmword [rsp + 0x50]
paddd xmm10, xmmword [rsp + 0x60]
paddd xmm11, xmmword [rsp + 0x70]
movdqa xmm6, xmm8
punpckldq xmm8, xmm9
movdqa xmm7, xmm10
punpckldq xmm10, xmm11
punpckhdq xmm6, xmm9
punpckhdq xmm7, xmm11
movdqa xmm9, xmm8
punpcklqdq xmm8, xmm10
movdqa xmm11, xmm6
punpcklqdq xmm6, xmm7
punpckhqdq xmm9, xmm10
punpckhqdq xmm11, xmm7
paddd xmm12, xmmword [rcx - 0x80]
paddd xmm13, xmmword [rcx - 0x70]
paddd xmm14, xmmword [rcx - 0x60]
paddd xmm15, xmmword [rcx - 0x50]
movdqa xmmword [rsp], xmm8
movdqa xmmword [rsp + 0x10], xmm9
movdqa xmm8, xmmword [rsp + 0x20]
movdqa xmm9, xmmword [rsp + 0x30]
movdqa xmm10, xmm12
punpckldq xmm12, xmm13
movdqa xmm7, xmm14
punpckldq xmm14, xmm15
punpckhdq xmm10, xmm13
punpckhdq xmm7, xmm15
movdqa xmm13, xmm12
punpcklqdq xmm12, xmm14
movdqa xmm15, xmm10
punpcklqdq xmm10, xmm7
punpckhqdq xmm13, xmm14
punpckhqdq xmm15, xmm7
paddd xmm4, xmmword [rcx - 0x40]
paddd xmm5, xmmword [rcx - 0x30]
paddd xmm8, xmmword [rcx - 0x20]
paddd xmm9, xmmword [rcx - 0x10]
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm11
movdqa xmm14, xmm4
punpckldq xmm4, xmm5
movdqa xmm7, xmm8
punpckldq xmm8, xmm9
punpckhdq xmm14, xmm5
punpckhdq xmm7, xmm9
movdqa xmm5, xmm4
punpcklqdq xmm4, xmm8
movdqa xmm9, xmm14
punpcklqdq xmm14, xmm7
punpckhqdq xmm5, xmm8
punpckhqdq xmm9, xmm7
paddd xmm0, xmmword [rcx]
paddd xmm1, xmmword [rcx + 0x10]
paddd xmm2, xmmword [rcx + 0x20]
paddd xmm3, xmmword [rcx + 0x30]
movdqa xmm8, xmm0
punpckldq xmm0, xmm1
movdqa xmm7, xmm2
punpckldq xmm2, xmm3
punpckhdq xmm8, xmm1
punpckhdq xmm7, xmm3
movdqa xmm1, xmm0
punpcklqdq xmm0, xmm2
movdqa xmm3, xmm8
punpcklqdq xmm8, xmm7
punpckhqdq xmm1, xmm2
punpckhqdq xmm3, xmm7
cmp rdx, 0x100
jb 0x140023745
movdqu xmm6, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmm7, xmmword [rsi + 0x30]
pxor xmm6, xmmword [rsp]
pxor xmm11, xmm12
pxor xmm2, xmm4
pxor xmm7, xmm0
movdqu xmmword [rdi], xmm6
movdqu xmm6, xmmword [rsi + 0x40]
movdqu xmmword [rdi + 0x10], xmm11
movdqu xmm11, xmmword [rsi + 0x50]
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmm2, xmmword [rsi + 0x60]
movdqu xmmword [rdi + 0x30], xmm7
movdqu xmm7, xmmword [rsi + 0x70]
lea rsi, [rsi + 0x80]
pxor xmm6, xmmword [rsp + 0x10]
pxor xmm11, xmm13
pxor xmm2, xmm5
pxor xmm7, xmm1
movdqu xmmword [rdi + 0x40], xmm6
movdqu xmm6, xmmword [rsi]
movdqu xmmword [rdi + 0x50], xmm11
movdqu xmm11, xmmword [rsi + 0x10]
movdqu xmmword [rdi + 0x60], xmm2
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmmword [rdi + 0x70], xmm7
lea rdi, [rdi + 0x80]
movdqu xmm7, xmmword [rsi + 0x30]
pxor xmm6, xmmword [rsp + 0x20]
pxor xmm11, xmm10
pxor xmm2, xmm14
pxor xmm7, xmm8
movdqu xmmword [rdi], xmm6
movdqu xmm6, xmmword [rsi + 0x40]
movdqu xmmword [rdi + 0x10], xmm11
movdqu xmm11, xmmword [rsi + 0x50]
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmm2, xmmword [rsi + 0x60]
movdqu xmmword [rdi + 0x30], xmm7
movdqu xmm7, xmmword [rsi + 0x70]
lea rsi, [rsi + 0x80]
pxor xmm6, xmmword [rsp + 0x30]
pxor xmm11, xmm15
pxor xmm2, xmm9
pxor xmm7, xmm3
movdqu xmmword [rdi + 0x40], xmm6
movdqu xmmword [rdi + 0x50], xmm11
movdqu xmmword [rdi + 0x60], xmm2
movdqu xmmword [rdi + 0x70], xmm7
lea rdi, [rdi + 0x80]
sub rdx, 0x100
jne 0x1400230e0
jmp 0x1400239f7
cmp rdx, 0xc0
jae 0x1400238e0
cmp rdx, 0x80
jae 0x140023820
cmp rdx, 0x40
jae 0x1400237a0
xor r10, r10
movdqa xmmword [rsp + 0x10], xmm12
movdqa xmmword [rsp + 0x20], xmm4
movdqa xmmword [rsp + 0x30], xmm0
jmp 0x1400239d9
movdqu xmm6, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmm7, xmmword [rsi + 0x30]
pxor xmm6, xmmword [rsp]
pxor xmm11, xmm12
pxor xmm2, xmm4
pxor xmm7, xmm0
movdqu xmmword [rdi], xmm6
movdqu xmmword [rdi + 0x10], xmm11
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmmword [rdi + 0x30], xmm7
je 0x1400239f7
movdqa xmm6, xmmword [rsp + 0x10]
lea rsi, [rsi + 0x40]
xor r10, r10
movdqa xmmword [rsp], xmm6
movdqa xmmword [rsp + 0x10], xmm13
lea rdi, [rdi + 0x40]
movdqa xmmword [rsp + 0x20], xmm5
sub rdx, 0x40
movdqa xmmword [rsp + 0x30], xmm1
jmp 0x1400239d9
movdqu xmm6, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmm7, xmmword [rsi + 0x30]
pxor xmm6, xmmword [rsp]
pxor xmm11, xmm12
pxor xmm2, xmm4
pxor xmm7, xmm0
movdqu xmmword [rdi], xmm6
movdqu xmm6, xmmword [rsi + 0x40]
movdqu xmmword [rdi + 0x10], xmm11
movdqu xmm11, xmmword [rsi + 0x50]
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmm2, xmmword [rsi + 0x60]
movdqu xmmword [rdi + 0x30], xmm7
movdqu xmm7, xmmword [rsi + 0x70]
pxor xmm6, xmmword [rsp + 0x10]
pxor xmm11, xmm13
pxor xmm2, xmm5
pxor xmm7, xmm1
movdqu xmmword [rdi + 0x40], xmm6
movdqu xmmword [rdi + 0x50], xmm11
movdqu xmmword [rdi + 0x60], xmm2
movdqu xmmword [rdi + 0x70], xmm7
je 0x1400239f7
movdqa xmm6, xmmword [rsp + 0x20]
lea rsi, [rsi + 0x80]
xor r10, r10
movdqa xmmword [rsp], xmm6
movdqa xmmword [rsp + 0x10], xmm10
lea rdi, [rdi + 0x80]
movdqa xmmword [rsp + 0x20], xmm14
sub rdx, 0x80
movdqa xmmword [rsp + 0x30], xmm8
jmp 0x1400239d9
movdqu xmm6, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmm7, xmmword [rsi + 0x30]
pxor xmm6, xmmword [rsp]
pxor xmm11, xmm12
pxor xmm2, xmm4
pxor xmm7, xmm0
movdqu xmmword [rdi], xmm6
movdqu xmm6, xmmword [rsi + 0x40]
movdqu xmmword [rdi + 0x10], xmm11
movdqu xmm11, xmmword [rsi + 0x50]
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmm2, xmmword [rsi + 0x60]
movdqu xmmword [rdi + 0x30], xmm7
movdqu xmm7, xmmword [rsi + 0x70]
lea rsi, [rsi + 0x80]
pxor xmm6, xmmword [rsp + 0x10]
pxor xmm11, xmm13
pxor xmm2, xmm5
pxor xmm7, xmm1
movdqu xmmword [rdi + 0x40], xmm6
movdqu xmm6, xmmword [rsi]
movdqu xmmword [rdi + 0x50], xmm11
movdqu xmm11, xmmword [rsi + 0x10]
movdqu xmmword [rdi + 0x60], xmm2
movdqu xmm2, xmmword [rsi + 0x20]
movdqu xmmword [rdi + 0x70], xmm7
lea rdi, [rdi + 0x80]
movdqu xmm7, xmmword [rsi + 0x30]
pxor xmm6, xmmword [rsp + 0x20]
pxor xmm11, xmm10
pxor xmm2, xmm14
pxor xmm7, xmm8
movdqu xmmword [rdi], xmm6
movdqu xmmword [rdi + 0x10], xmm11
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmmword [rdi + 0x30], xmm7
je 0x1400239f7
movdqa xmm6, xmmword [rsp + 0x30]
lea rsi, [rsi + 0x40]
xor r10, r10
movdqa xmmword [rsp], xmm6
movdqa xmmword [rsp + 0x10], xmm15
lea rdi, [rdi + 0x40]
movdqa xmmword [rsp + 0x20], xmm9
sub rdx, 0xc0
movdqa xmmword [rsp + 0x30], xmm3
movzx eax, byte [rsi + r10]
movzx ecx, byte [rsp + r10]
lea r10, [r10 + 1]
xor eax, ecx
mov byte [rdi + r10 - 1], al
dec rdx
jne 0x1400239d9
movaps xmm6, xmmword [r9 - 0xa8]
movaps xmm7, xmmword [r9 - 0x98]
movaps xmm8, xmmword [r9 - 0x88]
movaps xmm9, xmmword [r9 - 0x78]
movaps xmm10, xmmword [r9 - 0x68]
movaps xmm11, xmmword [r9 - 0x58]
movaps xmm12, xmmword [r9 - 0x48]
movaps xmm13, xmmword [r9 - 0x38]
movaps xmm14, xmmword [r9 - 0x28]
movaps xmm15, xmmword [r9 - 0x18]
lea rsp, [r9]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret