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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x100], rax
test r8, r8
je 0x1400357f8
mov edi, dword [rsp + 0x178]
mov rax, qword [rsp + 0x170]
mov r10d, dword [r9]
mov dword [rsp + 0x4c], r10d
mov r10d, dword [r9 + 4]
mov dword [rsp + 0x48], r10d
mov r10d, dword [r9 + 8]
mov dword [rsp + 0x44], r10d
mov r10d, dword [r9 + 0xc]
mov dword [rsp + 0x40], r10d
mov ebx, dword [r9 + 0x10]
mov r10d, dword [r9 + 0x14]
mov dword [rsp + 0x3c], r10d
mov r10d, dword [r9 + 0x18]
mov dword [rsp + 0x38], r10d
mov r9d, dword [r9 + 0x1c]
mov dword [rsp + 0x34], r9d
mov ebp, dword [rax]
mov r14d, dword [rax + 4]
mov eax, dword [rax + 8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x5c], ebx
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x54], r14d
jmp 0x1400353b1
add rcx, rax
add rdx, rax
inc edi
sub r8, rax
je 0x1400357f8
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], r8
mov r11d, 0x6b206574
mov r10d, 0x79622d32
mov edx, 0x3320646e
mov ecx, 0x61707865
mov dword [rsp + 0x50], reloc.WS2_32.dll_shutdown
mov esi, dword [rsp + 0x4c]
mov dword [rsp + 0x60], edi
mov eax, edi
mov dword [rsp + 0x28], ebx
mov edi, dword [rsp + 0x48]
mov r15d, ebp
mov ebp, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x44]
mov r12d, r14d
mov r14d, dword [rsp + 0x38]
mov ebx, dword [rsp + 0x40]
mov r13d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
nop word cs:[rax + rax]
mov dword [rsp + 0x2c], r9d
add ecx, esi
xor eax, ecx
rol eax, 0x10
mov r9d, dword [rsp + 0x28]
add r9d, eax
xor esi, r9d
rol esi, 0xc
add ecx, esi
xor eax, ecx
rol eax, 8
add r9d, eax
mov dword [rsp + 0x28], r9d
xor esi, r9d
mov r9d, dword [rsp + 0x2c]
rol esi, 7
add edx, edi
xor r15d, edx
rol r15d, 0x10
add ebp, r15d
xor edi, ebp
rol edi, 0xc
add edx, edi
xor r15d, edx
rol r15d, 8
add ebp, r15d
xor edi, ebp
rol edi, 7
add r10d, r8d
xor r12d, r10d
rol r12d, 0x10
add r14d, r12d
xor r8d, r14d
rol r8d, 0xc
add r10d, r8d
xor r12d, r10d
rol r12d, 8
add r14d, r12d
xor r8d, r14d
rol r8d, 7
add r11d, ebx
xor r13d, r11d
rol r13d, 0x10
add r9d, r13d
xor ebx, r9d
rol ebx, 0xc
add r11d, ebx
xor r13d, r11d
rol r13d, 8
add r9d, r13d
xor ebx, r9d
rol ebx, 7
add ecx, edi
xor r13d, ecx
rol r13d, 0x10
add r14d, r13d
xor edi, r14d
rol edi, 0xc
add ecx, edi
xor r13d, ecx
rol r13d, 8
add r14d, r13d
mov dword [rsp + 0x64], r14d
xor edi, r14d
rol edi, 7
add edx, r8d
xor eax, edx
rol eax, 0x10
add r9d, eax
xor r8d, r9d
rol r8d, 0xc
add edx, r8d
xor eax, edx
rol eax, 8
add r9d, eax
xor r8d, r9d
rol r8d, 7
add r10d, ebx
xor r15d, r10d
rol r15d, 0x10
mov r14d, dword [rsp + 0x28]
add r14d, r15d
xor ebx, r14d
rol ebx, 0xc
add r10d, ebx
xor r15d, r10d
rol r15d, 8
add r14d, r15d
mov dword [rsp + 0x28], r14d
xor ebx, r14d
mov r14d, dword [rsp + 0x64]
rol ebx, 7
add r11d, esi
xor r12d, r11d
rol r12d, 0x10
add ebp, r12d
xor esi, ebp
rol esi, 0xc
add r11d, esi
xor r12d, r11d
rol r12d, 8
add ebp, r12d
mov dword [rsp + 0x2c], ebp
xor esi, ebp
rol esi, 7
mov ebp, dword [rsp + 0x50]
add ebp, 0xfffffffe
mov dword [rsp + 0x50], ebp
cmp ebp, 2
mov ebp, dword [rsp + 0x2c]
ja 0x140035420
add ecx, 0x61707865
mov dword [rsp + 0xc0], ecx
add edx, 0x3320646e
mov dword [rsp + 0xc4], edx
add r10d, 0x79622d32
mov dword [rsp + 0xc8], r10d
add r11d, 0x6b206574
mov dword [rsp + 0xcc], r11d
add esi, dword [rsp + 0x4c]
mov dword [rsp + 0xd0], esi
add edi, dword [rsp + 0x48]
mov dword [rsp + 0xd4], edi
add r8d, dword [rsp + 0x44]
mov dword [rsp + 0xd8], r8d
add ebx, dword [rsp + 0x40]
mov dword [rsp + 0xdc], ebx
mov ebx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x28]
add ecx, ebx
mov dword [rsp + 0xe0], ecx
add ebp, dword [rsp + 0x3c]
mov dword [rsp + 0xe4], ebp
add r14d, dword [rsp + 0x38]
mov dword [rsp + 0xe8], r14d
add r9d, dword [rsp + 0x34]
mov dword [rsp + 0xec], r9d
mov edi, dword [rsp + 0x60]
add eax, edi
mov dword [rsp + 0xf0], eax
mov ebp, dword [rsp + 0x58]
add r15d, ebp
mov dword [rsp + 0xf4], r15d
mov r14d, dword [rsp + 0x54]
add r12d, r14d
mov dword [rsp + 0xf8], r12d
add r13d, dword [rsp + 0x30]
mov dword [rsp + 0xfc], r13d
mov eax, 1
mov rcx, qword [rsp + rax*4 + 0xbc]
mov qword [rsp + rax*4 + 0x7c], rcx
add rax, 2
cmp rax, 0x11
jne 0x140035660
mov r8, qword [rsp + 0x78]
cmp r8, 0x40
mov eax, 0x40
cmovb rax, r8
test rax, rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
je 0x1400353a0
cmp rax, 8
jb 0x1400356c1
mov r9, rcx
sub r9, rdx
mov esi, 0
cmp r9, 0x10
jb 0x140035752
cmp rax, 0x10
jae 0x1400356c8
xor esi, esi
jmp 0x140035728
xor esi, esi
jmp 0x140035752
mov esi, eax
and esi, 0x70
movups xmm0, xmmword [rdx]
xorps xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
cmp rsi, 0x10
je 0x14003571b
movups xmm0, xmmword [rdx + 0x10]
xorps xmm0, xmmword [rsp + 0x90]
movups xmmword [rcx + 0x10], xmm0
cmp esi, 0x20
je 0x14003571b
movups xmm0, xmmword [rdx + 0x20]
xorps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rcx + 0x20], xmm0
cmp esi, 0x30
je 0x14003571b
movups xmm0, xmmword [rdx + 0x30]
xorps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rcx + 0x30], xmm0
cmp rax, rsi
je 0x1400353a0
test al, 8
je 0x140035752
mov r10, rsi
mov esi, eax
and esi, 0x78
mov r9, qword [rsp + r10 + 0x80]
xor r9, qword [rdx + r10]
mov qword [rcx + r10], r9
add r10, 8
cmp rsi, r10
jne 0x140035730
cmp rax, rsi
je 0x1400353a0
mov r11, rsi
not r11
add r11, rax
mov r10, rax
and r10, 3
je 0x140035789
nop word cs:[rax + rax]
movzx r9d, byte [rsp + rsi + 0x80]
xor r9b, byte [rdx + rsi]
mov byte [rcx + rsi], r9b
inc rsi
dec r10
jne 0x140035770
cmp r11, 3
jb 0x1400353a0
nop word cs:[rax + rax]
movzx r9d, byte [rsp + rsi + 0x80]
xor r9b, byte [rdx + rsi]
mov byte [rcx + rsi], r9b
movzx r9d, byte [rsp + rsi + 0x81]
xor r9b, byte [rdx + rsi + 1]
mov byte [rcx + rsi + 1], r9b
movzx r9d, byte [rsp + rsi + 0x82]
xor r9b, byte [rdx + rsi + 2]
mov byte [rcx + rsi + 2], r9b
movzx r9d, byte [rsp + rsi + 0x83]
xor r9b, byte [rdx + rsi + 3]
mov byte [rcx + rsi + 3], r9b
add rsi, 4
cmp rax, rsi
jne 0x1400357a0
jmp 0x1400353a0
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140265fe0
nop
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret