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

Disassembly:
push rsi
push rdi
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm15
movaps xmmword [rsp + 0xf0], xmm14
movaps xmmword [rsp + 0xe0], xmm13
movaps xmmword [rsp + 0xd0], xmm12
movaps xmmword [rsp + 0xc0], xmm11
movaps xmmword [rsp + 0xb0], xmm10
movaps xmmword [rsp + 0xa0], xmm9
movaps xmmword [rsp + 0x90], xmm8
movaps xmmword [rsp + 0x80], xmm7
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140186180]
test rax, rax
je 0x140017528
test ax, ax
js 0x140017536
mov rax, qword [0x140186180]
test rax, rax
je 0x14001759f
test eax, 0x4000
jne 0x1400175af
mov rax, qword [0x140186180]
test rax, rax
je 0x140017618
test eax, 0x400
jne 0x140017628
mov rax, qword [0x140186180]
test rax, rax
je 0x140017691
test eax, 0x200
jne 0x1400176a1
movdqa xmm7, xmmword [rdi]
movdqa xmm12, xmmword [rdi + 0x10]
movaps xmm0, xmmword [rdi + 0x20]
mov rax, qword [rdi + 0x20]
lea rcx, [rax + 3]
movd xmm14, ecx
shr rcx, 0x20
movd xmm1, ecx
pslldq xmm1, 8
shufps xmm1, xmm0, 0xe8
por xmm14, xmm1
lea rcx, [rax + 2]
movd xmm15, ecx
shr rcx, 0x20
movd xmm1, ecx
pslldq xmm1, 8
shufps xmm1, xmm0, 0xe8
por xmm15, xmm1
inc rax
movd xmm1, eax
shr rax, 0x20
movd xmm2, eax
pslldq xmm2, 8
shufps xmm2, xmm0, 0xe8
por xmm1, xmm2
movdqa xmm5, xmmword [0x140066400]
mov eax, 6
movdqa xmm4, xmm5
movdqa xmm3, xmm5
movdqa xmm6, xmm5
movdqa xmmword [rsp + 0x20], xmm12
movdqa xmm8, xmm12
movdqa xmm10, xmm12
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmm13, xmm7
movdqa xmm11, xmm7
movdqa xmm9, xmm7
movdqa xmmword [rsp + 0x50], xmm7
paddd xmm5, xmm13
paddd xmm4, xmm11
paddd xmm3, xmm9
paddd xmm6, xmm7
xorps xmm0, xmm5
pxor xmm1, xmm4
pxor xmm15, xmm3
pxor xmm14, xmm6
pshuflw xmm0, xmm0, 0xb1
movdqa xmm2, xmm15
movdqa xmm15, xmm14
pshufhw xmm14, xmm0, 0xb1
pshuflw xmm0, xmm1, 0xb1
pshufhw xmm1, xmm0, 0xb1
pshuflw xmm0, xmm2, 0xb1
pshufhw xmm2, xmm0, 0xb1
pshuflw xmm0, xmm15, 0xb1
pshufhw xmm15, xmm0, 0xb1
paddd xmm12, xmm14
paddd xmm10, xmm1
paddd xmm8, xmm2
movdqa xmm0, xmmword [rsp + 0x20]
paddd xmm0, xmm15
movdqa xmmword [rsp + 0x20], xmm0
pxor xmm13, xmm12
pxor xmm11, xmm10
pxor xmm9, xmm8
pxor xmm7, xmm0
movdqa xmm0, xmm13
psrld xmm0, 0x14
pslld xmm13, 0xc
por xmm13, xmm0
movdqa xmm0, xmm11
psrld xmm0, 0x14
pslld xmm11, 0xc
por xmm11, xmm0
movdqa xmm0, xmm9
psrld xmm0, 0x14
pslld xmm9, 0xc
por xmm9, xmm0
movdqa xmm0, xmm7
psrld xmm0, 0x14
pslld xmm7, 0xc
por xmm7, xmm0
paddd xmm5, xmm13
paddd xmm4, xmm11
paddd xmm3, xmm9
paddd xmm6, xmm7
pxor xmm14, xmm5
movdqa xmm0, xmm14
psrld xmm0, 0x18
pslld xmm14, 8
por xmm14, xmm0
pxor xmm1, xmm4
movdqa xmm0, xmm1
psrld xmm0, 0x18
pslld xmm1, 8
por xmm1, xmm0
pxor xmm2, xmm3
movdqa xmm0, xmm2
psrld xmm0, 0x18
pslld xmm2, 8
por xmm2, xmm0
pxor xmm15, xmm6
movdqa xmm0, xmm15
psrld xmm0, 0x18
pslld xmm15, 8
por xmm15, xmm0
paddd xmm12, xmm14
paddd xmm10, xmm1
paddd xmm8, xmm2
movdqa xmm0, xmmword [rsp + 0x20]
paddd xmm0, xmm15
movdqa xmmword [rsp + 0x20], xmm0
pxor xmm13, xmm12
pxor xmm11, xmm10
pxor xmm9, xmm8
pxor xmm7, xmm0
movdqa xmm0, xmm13
psrld xmm0, 0x19
pslld xmm13, 7
por xmm13, xmm0
movdqa xmm0, xmm11
psrld xmm0, 0x19
pslld xmm11, 7
por xmm11, xmm0
movdqa xmm0, xmm9
psrld xmm0, 0x19
pslld xmm9, 7
por xmm9, xmm0
movdqa xmm0, xmm7
psrld xmm0, 0x19
pslld xmm7, 7
por xmm7, xmm0
pshufd xmm0, xmm13, 0x39
pshufd xmm11, xmm11, 0x39
pshufd xmm9, xmm9, 0x39
pshufd xmm7, xmm7, 0x39
pshufd xmm12, xmm12, 0x4e
pshufd xmm10, xmm10, 0x4e
pshufd xmm8, xmm8, 0x4e
pshufd xmm13, xmmword [rsp + 0x20], 0x4e
movdqa xmmword [rsp + 0x20], xmm13
pshufd xmm13, xmm14, 0x93
pshufd xmm1, xmm1, 0x93
pshufd xmm2, xmm2, 0x93
pshufd xmm14, xmm15, 0x93
movdqa xmmword [rsp + 0x30], xmm14
paddd xmm5, xmm0
paddd xmm4, xmm11
paddd xmm3, xmm9
paddd xmm6, xmm7
pshuflw xmm14, xmm5, 0xb1
pshufhw xmm15, xmm14, 0xb1
pshuflw xmm13, xmm13, 0xb1
pshufhw xmm14, xmm13, 0xb1
pxor xmm14, xmm15
pshuflw xmm13, xmm4, 0xb1
pshufhw xmm13, xmm13, 0xb1
pshuflw xmm1, xmm1, 0xb1
pshufhw xmm1, xmm1, 0xb1
pxor xmm1, xmm13
pshuflw xmm13, xmm3, 0xb1
pshufhw xmm13, xmm13, 0xb1
pshuflw xmm2, xmm2, 0xb1
pshufhw xmm15, xmm2, 0xb1
pxor xmm15, xmm13
pshuflw xmm2, xmm6, 0xb1
pshufhw xmm13, xmm2, 0xb1
pshuflw xmm2, xmmword [rsp + 0x30], 0xb1
pshufhw xmm2, xmm2, 0xb1
pxor xmm2, xmm13
paddd xmm12, xmm14
paddd xmm10, xmm1
paddd xmm8, xmm15
movdqa xmm13, xmmword [rsp + 0x20]
paddd xmm13, xmm2
movdqa xmmword [rsp + 0x20], xmm13
pxor xmm0, xmm12
pxor xmm11, xmm10
pxor xmm9, xmm8
pxor xmm7, xmm13
movdqa xmm13, xmm0
psrld xmm13, 0x14
pslld xmm0, 0xc
por xmm0, xmm13
movdqa xmm13, xmm11
psrld xmm13, 0x14
pslld xmm11, 0xc
por xmm11, xmm13
movdqa xmm13, xmm9
psrld xmm13, 0x14
pslld xmm9, 0xc
por xmm9, xmm13
movdqa xmm13, xmm7
psrld xmm13, 0x14
pslld xmm7, 0xc
por xmm7, xmm13
paddd xmm5, xmm0
paddd xmm4, xmm11
paddd xmm3, xmm9
paddd xmm6, xmm7
pxor xmm14, xmm5
movdqa xmm13, xmm14
psrld xmm13, 0x18
pslld xmm14, 8
por xmm14, xmm13
pxor xmm1, xmm4
movdqa xmm13, xmm1
psrld xmm13, 0x18
pslld xmm1, 8
por xmm1, xmm13
pxor xmm15, xmm3
movdqa xmm13, xmm15
psrld xmm13, 0x18
pslld xmm15, 8
por xmm15, xmm13
pxor xmm2, xmm6
movdqa xmm13, xmm2
psrld xmm13, 0x18
pslld xmm2, 8
por xmm2, xmm13
paddd xmm12, xmm14
paddd xmm10, xmm1
paddd xmm8, xmm15
movdqa xmm13, xmmword [rsp + 0x20]
paddd xmm13, xmm2
movdqa xmmword [rsp + 0x20], xmm13
pxor xmm0, xmm12
pxor xmm11, xmm10
pxor xmm9, xmm8
pxor xmm7, xmm13
movdqa xmm13, xmm0
psrld xmm13, 0x19
pslld xmm0, 7
por xmm0, xmm13
movdqa xmm13, xmm11
psrld xmm13, 0x19
pslld xmm11, 7
por xmm11, xmm13
movdqa xmm13, xmm9
psrld xmm13, 0x19
pslld xmm9, 7
por xmm9, xmm13
movdqa xmm13, xmm7
psrld xmm13, 0x19
pslld xmm7, 7
por xmm7, xmm13
pshufd xmm13, xmm0, 0x93
pshufd xmm11, xmm11, 0x93
pshufd xmm9, xmm9, 0x93
pshufd xmm7, xmm7, 0x93
pshufd xmm12, xmm12, 0x4e
pshufd xmm10, xmm10, 0x4e
pshufd xmm8, xmm8, 0x4e
pshufd xmm0, xmmword [rsp + 0x20], 0x4e
movdqa xmmword [rsp + 0x20], xmm0
pshufd xmm0, xmm14, 0x39
pshufd xmm1, xmm1, 0x39
pshufd xmm15, xmm15, 0x39
pshufd xmm14, xmm2, 0x39
dec eax
jne 0x140016ec0
movdqa xmm2, xmmword [0x140066400]
paddd xmm6, xmm2
paddd xmm3, xmm2
paddd xmm4, xmm2
paddd xmm5, xmm2
movdqa xmm2, xmmword [rdi + 0x20]
movq rax, xmm2
movdqa xmmword [rsp + 0x40], xmm2
lea rcx, [rax + 4]
mov rdx, rcx
shr rdx, 0x20
movdqa xmmword [rsp + 0x30], xmm14
movd xmm14, edx
pslldq xmm14, 8
shufps xmm14, xmm2, 0xe8
movd xmm2, ecx
por xmm2, xmm14
movdqa xmmword [rdi + 0x20], xmm2
movdqu xmmword [rsi], xmm5
movdqa xmm14, xmmword [rsp + 0x50]
paddd xmm13, xmm14
movdqu xmmword [rsi + 0x10], xmm13
movdqa xmm5, xmmword [rsp + 0x60]
paddd xmm12, xmm5
movdqu xmmword [rsi + 0x20], xmm12
lea rcx, [rax + 1]
mov rdx, rcx
shr rdx, 0x20
movdqa xmm12, xmmword [rsp + 0x40]
paddd xmm0, xmm12
movdqu xmmword [rsi + 0x30], xmm0
movd xmm0, edx
pslldq xmm0, 8
shufps xmm0, xmm12, 0xe8
movd xmm2, ecx
orps xmm0, xmm2
movdqu xmmword [rsi + 0x40], xmm4
paddd xmm11, xmm14
movdqu xmmword [rsi + 0x50], xmm11
paddd xmm10, xmm5
movdqu xmmword [rsi + 0x60], xmm10
lea rcx, [rax + 2]
paddd xmm0, xmm1
movd xmm1, ecx
shr rcx, 0x20
movdqu xmmword [rsi + 0x70], xmm0
movd xmm0, ecx
pslldq xmm0, 8
shufps xmm0, xmm12, 0xe8
orps xmm0, xmm1
movdqu xmmword [rsi + 0x80], xmm3
paddd xmm9, xmm14
movdqu xmmword [rsi + 0x90], xmm9
paddd xmm8, xmm5
movdqu xmmword [rsi + 0xa0], xmm8
paddd xmm0, xmm15
movdqu xmmword [rsi + 0xb0], xmm0
add rax, 3
mov rcx, rax
shr rcx, 0x20
movd xmm0, ecx
pslldq xmm0, 8
shufps xmm0, xmm12, 0xe8
movd xmm1, eax
orps xmm0, xmm1
movdqu xmmword [rsi + 0xc0], xmm6
paddd xmm7, xmm14
movdqu xmmword [rsi + 0xd0], xmm7
movdqa xmm1, xmmword [rsp + 0x20]
paddd xmm1, xmm5
movdqu xmmword [rsi + 0xe0], xmm1
paddd xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rsi + 0xf0], xmm0
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm10, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm12, xmmword [rsp + 0xd0]
movaps xmm13, xmmword [rsp + 0xe0]
movaps xmm14, xmmword [rsp + 0xf0]
movaps xmm15, xmmword [rsp + 0x100]
add rsp, 0x118
pop rdi
pop rsi
ret
call dbg.detect_and_initialize
test ax, ax
jns 0x140016dbd
mov rcx, rdi
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm10, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm12, xmmword [rsp + 0xd0]
movaps xmm13, xmmword [rsp + 0xe0]
movaps xmm14, xmmword [rsp + 0xf0]
movaps xmm15, xmmword [rsp + 0x100]
add rsp, 0x118
pop rdi
pop rsi
jmp sym.rand_chacha::guts::refill_wide::impl_avx2::hc40ad5f572e5a5ac
call dbg.detect_and_initialize
test eax, 0x4000
je 0x140016dd8
mov rcx, rdi
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm10, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm12, xmmword [rsp + 0xd0]
movaps xmm13, xmmword [rsp + 0xe0]
movaps xmm14, xmmword [rsp + 0xf0]
movaps xmm15, xmmword [rsp + 0x100]
add rsp, 0x118
pop rdi
pop rsi
jmp sym.rand_chacha::guts::refill_wide::impl_avx::he75b4051d9bbe4d0
call dbg.detect_and_initialize
test eax, 0x400
je 0x140016df3
mov rcx, rdi
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm10, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm12, xmmword [rsp + 0xd0]
movaps xmm13, xmmword [rsp + 0xe0]
movaps xmm14, xmmword [rsp + 0xf0]
movaps xmm15, xmmword [rsp + 0x100]
add rsp, 0x118
pop rdi
pop rsi
jmp sym.rand_chacha::guts::refill_wide::impl_sse41::hb78fb1057cc087a8
call dbg.detect_and_initialize
test eax, 0x200
je 0x140016e0e
mov rcx, rdi
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0xa0]
movaps xmm10, xmmword [rsp + 0xb0]
movaps xmm11, xmmword [rsp + 0xc0]
movaps xmm12, xmmword [rsp + 0xd0]
movaps xmm13, xmmword [rsp + 0xe0]
movaps xmm14, xmmword [rsp + 0xf0]
movaps xmm15, xmmword [rsp + 0x100]
add rsp, 0x118
pop rdi
pop rsi
jmp sym.rand_chacha::guts::refill_wide::impl_ssse3::h437db1a110ae589b