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

Disassembly:
push rsi
sub rsp, 0x140
vmovdqa xmmword [rsp + 0x130], xmm15
vmovaps xmmword [rsp + 0x120], xmm14
vmovaps xmmword [rsp + 0x110], xmm13
vmovaps xmmword [rsp + 0x100], xmm12
vmovaps xmmword [rsp + 0xf0], xmm11
vmovaps xmmword [rsp + 0xe0], xmm10
vmovaps xmmword [rsp + 0xd0], xmm9
vmovaps xmmword [rsp + 0xc0], xmm8
vmovdqa xmmword [rsp + 0xb0], xmm7
vmovaps xmmword [rsp + 0xa0], xmm6
mov r8, rdx
nop word cs:[rax + rax]
mov eax, dword [0x141dc8038]
xor edx, edx
div dword [0x141dc803c]
xor eax, 0x40004000
or eax, 0x290d1403
and eax, 0x6b8d54b3
cmp eax, 0xed9cf9df
ja 0x140070400
mov r9, qword [rcx + 0x20]
lea r11, [r9 + 1]
vmovdqa xmm4, xmmword [rcx + 0x20]
vpinsrd xmm0, xmm4, r11d, 0
shr r11, 0x20
mov r10d, 0xf73db225
lea rax, [r9 + 2]
mov rdx, rax
shr rdx, 0x20
vpinsrd xmm13, xmm0, r11d, 1
nop word cs:[rax + rax]
mov r11d, dword [0x141dc8040]
mov esi, dword [0x141dc8044]
add r11d, esi
add r11d, 0x883b312c
xor r11d, 0x1a34df65
imul r11, r10
shr r11, 0x3b
cmp r11d, 0x110c486
ja 0x140070460
vpinsrd xmm0, xmm4, eax, 0
vpinsrd xmm9, xmm0, edx, 1
lea r10, [r9 + 3]
mov r11, r10
shr r11, 0x20
nop word cs:[rax + rax]
mov eax, dword [0x141dc8048]
xor edx, edx
div dword [0x141dc804c]
add eax, 0xd964d466
or eax, 0xc5570ee6
imul rax, rax, 0x63b5f363
shr rax, 0x3e
cmp eax, 0xdbfa4c7
ja 0x1400704b0
vpinsrd xmm0, xmm4, r10d, 0
vpinsrd xmm0, xmm0, r11d, 1
vmovdqa xmm6, xmmword [rcx]
vmovdqa xmm8, xmmword [rcx + 0x10]
vmovdqa xmm11, xmmword [0x1400ffd50]
mov eax, 6
vmovdqa xmmword [rsp + 0x50], xmm0
vmovdqa xmmword [rsp + 0x60], xmm9
vmovdqa xmm3, xmm9
vmovdqa xmm14, xmm11
vmovdqa xmm10, xmm11
vmovdqa xmm2, xmm11
vmovdqa xmmword [rsp + 0x70], xmm13
vmovdqa xmm9, xmm13
vmovdqa xmmword [rsp + 0x80], xmm4
vmovdqa xmmword [rsp + 0x10], xmm8
vmovdqa xmm13, xmm8
vmovdqa xmmword [rsp + 0x40], xmm8
vmovdqa xmm12, xmm6
vmovdqa xmm1, xmm6
vmovdqa xmmword [rsp + 0x20], xmm6
nop dword [rax]
vpaddd xmm5, xmm11, xmm1
vmovdqa xmmword [rsp + 0x30], xmm5
vpxor xmm4, xmm4, xmm5
vpshuflw xmm4, xmm4, 0xb1
vpshufhw xmm7, xmm4, 0xb1
vpaddd xmm4, xmm8, xmm7
vmovdqa xmmword [rsp], xmm4
vpxor xmm1, xmm4, xmm1
vpsrld xmm5, xmm1, 0x14
vpslld xmm1, xmm1, 0xc
vpor xmm8, xmm1, xmm5
vpaddd xmm4, xmm14, xmm6
vpxor xmm5, xmm9, xmm4
vpshuflw xmm5, xmm5, 0xb1
vpshufhw xmm5, xmm5, 0xb1
vpaddd xmm1, xmm13, xmm5
vmovdqa xmmword [rsp + 0x90], xmm1
vpxor xmm6, xmm1, xmm6
vpsrld xmm14, xmm6, 0x14
vpslld xmm6, xmm6, 0xc
vpor xmm14, xmm14, xmm6
vpaddd xmm6, xmm12, xmm10
vpxor xmm9, xmm6, xmm3
vpshuflw xmm9, xmm9, 0xb1
vpshufhw xmm9, xmm9, 0xb1
vpaddd xmm15, xmm9, xmmword [rsp + 0x10]
vpxor xmm10, xmm15, xmm12
vpsrld xmm11, xmm10, 0x14
vpslld xmm10, xmm10, 0xc
vpor xmm12, xmm10, xmm11
vmovdqa xmm3, xmmword [rsp + 0x20]
vpaddd xmm2, xmm3, xmm2
vpxor xmm10, xmm2, xmm0
vpshuflw xmm10, xmm10, 0xb1
vpshufhw xmm1, xmm10, 0xb1
vpaddd xmm13, xmm1, xmmword [rsp + 0x40]
vpxor xmm10, xmm13, xmm3
vpsrld xmm11, xmm10, 0x14
vpslld xmm10, xmm10, 0xc
vpor xmm3, xmm10, xmm11
vpaddd xmm11, xmm8, xmmword [rsp + 0x30]
vmovdqa xmm0, xmmword [0x1400ff900]
vpshufb xmm7, xmm7, xmm0
vpshufb xmm10, xmm11, xmm0
vpxor xmm10, xmm10, xmm7
vpaddd xmm4, xmm14, xmm4
vmovdqa xmmword [rsp + 0x20], xmm4
vpshufb xmm5, xmm5, xmm0
vpshufb xmm7, xmm4, xmm0
vpxor xmm5, xmm7, xmm5
vpaddd xmm6, xmm12, xmm6
vpshufb xmm7, xmm9, xmm0
vpshufb xmm9, xmm6, xmm0
vpxor xmm9, xmm9, xmm7
vpaddd xmm2, xmm3, xmm2
vmovdqa xmmword [rsp + 0x10], xmm2
vpshufb xmm1, xmm1, xmm0
vpshufb xmm7, xmm2, xmm0
vpxor xmm7, xmm7, xmm1
vpaddd xmm0, xmm10, xmmword [rsp]
vmovdqa xmmword [rsp], xmm0
vpxor xmm8, xmm8, xmm0
vpsrld xmm0, xmm8, 0x19
vpslld xmm8, xmm8, 7
vpor xmm0, xmm8, xmm0
vpaddd xmm1, xmm5, xmmword [rsp + 0x90]
vmovdqa xmmword [rsp + 0x30], xmm1
vpxor xmm8, xmm14, xmm1
vpsrld xmm14, xmm8, 0x19
vpslld xmm8, xmm8, 7
vpor xmm14, xmm8, xmm14
vpaddd xmm15, xmm15, xmm9
vpxor xmm8, xmm15, xmm12
vpsrld xmm12, xmm8, 0x19
vpslld xmm8, xmm8, 7
vpor xmm12, xmm8, xmm12
vpaddd xmm8, xmm13, xmm7
vpxor xmm3, xmm8, xmm3
vpsrld xmm4, xmm3, 0x19
vpslld xmm3, xmm3, 7
vpor xmm3, xmm3, xmm4
vpshufd xmm1, xmm0, 0x39
vpaddd xmm11, xmm11, xmm1
vpshuflw xmm4, xmm11, 0xb1
vpshufhw xmm4, xmm4, 0xb1
vmovdqa xmm0, xmmword [0x1400ffd80]
vpshufb xmm10, xmm10, xmm0
vpxor xmm10, xmm10, xmm4
vpshufd xmm2, xmm14, 0x39
vpaddd xmm4, xmm2, xmmword [rsp + 0x20]
vmovdqa xmmword [rsp + 0x20], xmm4
vpshuflw xmm4, xmm4, 0xb1
vpshufhw xmm4, xmm4, 0xb1
vpshufb xmm5, xmm5, xmm0
vpxor xmm14, xmm5, xmm4
vpshufd xmm12, xmm12, 0x39
vpaddd xmm4, xmm12, xmm6
vmovdqa xmmword [rsp + 0x40], xmm4
vpshuflw xmm5, xmm4, 0xb1
vpshufhw xmm5, xmm5, 0xb1
vpshufb xmm6, xmm9, xmm0
vpxor xmm5, xmm6, xmm5
vpshufd xmm3, xmm3, 0x39
vpaddd xmm4, xmm3, xmmword [rsp + 0x10]
vmovdqa xmmword [rsp + 0x10], xmm4
vpshuflw xmm6, xmm4, 0xb1
vpshufhw xmm6, xmm6, 0xb1
vpshufb xmm7, xmm7, xmm0
vpxor xmm6, xmm7, xmm6
vpshufd xmm7, xmmword [rsp], 0x4e
vpaddd xmm4, xmm10, xmm7
vpxor xmm1, xmm4, xmm1
vpsrld xmm7, xmm1, 0x14
vpslld xmm1, xmm1, 0xc
vpor xmm7, xmm1, xmm7
vpshufd xmm1, xmmword [rsp + 0x30], 0x4e
vpaddd xmm1, xmm14, xmm1
vpxor xmm0, xmm1, xmm2
vpsrld xmm9, xmm0, 0x14
vpslld xmm0, xmm0, 0xc
vpor xmm13, xmm9, xmm0
vpshufd xmm0, xmm15, 0x4e
vpaddd xmm9, xmm0, xmm5
vpxor xmm0, xmm9, xmm12
vpsrld xmm12, xmm0, 0x14
vpslld xmm0, xmm0, 0xc
vpor xmm12, xmm12, xmm0
vpshufd xmm0, xmm8, 0x4e
vpaddd xmm0, xmm0, xmm6
vpxor xmm3, xmm0, xmm3
vpsrld xmm8, xmm3, 0x14
vpslld xmm3, xmm3, 0xc
vpor xmm8, xmm8, xmm3
vpaddd xmm2, xmm11, xmm7
vmovdqa xmmword [rsp + 0x30], xmm2
vpxor xmm10, xmm10, xmm2
vmovdqa xmm15, xmmword [0x1400ff900]
vpshufb xmm2, xmm10, xmm15
vmovdqa xmmword [rsp], xmm2
vpaddd xmm11, xmm4, xmm2
vpxor xmm2, xmm11, xmm7
vpsrld xmm7, xmm2, 0x19
vpslld xmm2, xmm2, 7
vpor xmm7, xmm2, xmm7
vpaddd xmm3, xmm13, xmmword [rsp + 0x20]
vpxor xmm2, xmm14, xmm3
vpshufb xmm14, xmm2, xmm15
vpaddd xmm4, xmm14, xmm1
vpxor xmm1, xmm13, xmm4
vpsrld xmm2, xmm1, 0x19
vpslld xmm1, xmm1, 7
vpor xmm13, xmm1, xmm2
vpaddd xmm10, xmm12, xmmword [rsp + 0x40]
vpxor xmm1, xmm10, xmm5
vpshufb xmm5, xmm1, xmm15
vpaddd xmm9, xmm9, xmm5
vpxor xmm1, xmm9, xmm12
vpsrld xmm2, xmm1, 0x19
vpslld xmm1, xmm1, 7
vpor xmm12, xmm1, xmm2
vpaddd xmm2, xmm8, xmmword [rsp + 0x10]
vpxor xmm1, xmm2, xmm6
vpshufb xmm15, xmm1, xmm15
vpaddd xmm0, xmm15, xmm0
vpxor xmm1, xmm8, xmm0
vpsrld xmm6, xmm1, 0x19
vpslld xmm1, xmm1, 7
vpor xmm8, xmm1, xmm6
vpshufd xmm1, xmm7, 0x93
vpshufd xmm6, xmm13, 0x93
vpshufd xmm12, xmm12, 0x93
vpshufd xmm7, xmm8, 0x93
vmovdqa xmmword [rsp + 0x20], xmm7
vpshufd xmm8, xmm11, 0x4e
vpshufd xmm13, xmm4, 0x4e
vpshufd xmm4, xmm9, 0x4e
vmovdqa xmmword [rsp + 0x10], xmm4
vpshufd xmm0, xmm0, 0x4e
vmovdqa xmmword [rsp + 0x40], xmm0
vpshufd xmm4, xmmword [rsp], 0x39
vmovdqa xmm11, xmmword [rsp + 0x30]
vpshufd xmm9, xmm14, 0x39
vmovdqa xmm14, xmm3
vpshufd xmm3, xmm5, 0x39
vpshufd xmm0, xmm15, 0x39
dec eax
jne 0x140070550
vmovdqa xmmword [rsp], xmm0
vmovdqa xmm0, xmmword [0x1400ffd50]
vpaddd xmm2, xmm2, xmm0
vpaddd xmm5, xmm10, xmm0
vpaddd xmm7, xmm14, xmm0
add r9, 4
mov rax, r9
shr rax, 0x20
vmovdqa xmm15, xmmword [rsp + 0x80]
vpinsrd xmm10, xmm15, r9d, 0
vpinsrd xmm10, xmm10, eax, 1
vpaddd xmm0, xmm11, xmm0
vmovdqa xmm11, xmmword [rcx]
vmovdqa xmm14, xmmword [rcx + 0x10]
vmovdqa xmmword [rcx + 0x20], xmm10
vmovdqu xmmword [r8], xmm0
vpaddd xmm0, xmm11, xmm1
vmovdqu xmmword [r8 + 0x10], xmm0
vpaddd xmm0, xmm8, xmm14
vmovdqu xmmword [r8 + 0x20], xmm0
vpaddd xmm0, xmm15, xmm4
vmovdqu xmmword [r8 + 0x30], xmm0
vmovdqu xmmword [r8 + 0x40], xmm7
vpaddd xmm0, xmm11, xmm6
vmovdqu xmmword [r8 + 0x50], xmm0
vpaddd xmm0, xmm13, xmm14
vmovdqu xmmword [r8 + 0x60], xmm0
vpaddd xmm0, xmm9, xmmword [rsp + 0x70]
vmovdqu xmmword [r8 + 0x70], xmm0
vmovdqu xmmword [r8 + 0x80], xmm5
vpaddd xmm0, xmm12, xmm11
vmovdqu xmmword [r8 + 0x90], xmm0
vpaddd xmm0, xmm14, xmmword [rsp + 0x10]
vmovdqu xmmword [r8 + 0xa0], xmm0
vpaddd xmm0, xmm3, xmmword [rsp + 0x60]
vmovdqu xmmword [r8 + 0xb0], xmm0
vmovdqu xmmword [r8 + 0xc0], xmm2
vpaddd xmm0, xmm11, xmmword [rsp + 0x20]
vmovdqu xmmword [r8 + 0xd0], xmm0
vpaddd xmm0, xmm14, xmmword [rsp + 0x40]
vmovdqu xmmword [r8 + 0xe0], xmm0
vmovdqa xmm0, xmmword [rsp]
vpaddd xmm0, xmm0, xmmword [rsp + 0x50]
vmovdqu xmmword [r8 + 0xf0], xmm0
vzeroupper
vmovaps xmm6, xmmword [rsp + 0xa0]
vmovaps xmm7, xmmword [rsp + 0xb0]
vmovaps xmm8, xmmword [rsp + 0xc0]
vmovaps xmm9, xmmword [rsp + 0xd0]
vmovaps xmm10, xmmword [rsp + 0xe0]
vmovaps xmm11, xmmword [rsp + 0xf0]
vmovaps xmm12, xmmword [rsp + 0x100]
vmovaps xmm13, xmmword [rsp + 0x110]
vmovaps xmm14, xmmword [rsp + 0x120]
vmovaps xmm15, xmmword [rsp + 0x130]
add rsp, 0x140
pop rsi
ret