Function at 0x1400354e0
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 [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x100], rax
test r8, r8
je 0x140035a48
mov ebp, dword [rsp + 0x178]
mov rax, qword [rsp + 0x170]
mov r10d, dword [r9]
mov dword [rsp + 0x54], r10d
mov r10d, dword [r9 + 4]
mov dword [rsp + 0x50], r10d
mov r10d, dword [r9 + 8]
mov dword [rsp + 0x4c], r10d
mov r10d, dword [r9 + 0xc]
mov dword [rsp + 0x48], r10d
mov r10d, dword [r9 + 0x10]
mov dword [rsp + 0x44], r10d
mov r10d, dword [r9 + 0x14]
mov dword [rsp + 0x40], r10d
mov r10d, dword [r9 + 0x18]
mov dword [rsp + 0x3c], r10d
mov r9d, dword [r9 + 0x1c]
mov dword [rsp + 0x38], r9d
mov r14d, dword [rax]
mov r9d, dword [rax + 4]
mov dword [rsp + 0x34], r9d
mov eax, dword [rax + 8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x5c], r14d
jmp 0x140035591
add rcx, rax
add rdx, rax
inc ebp
sub r8, rax
je 0x140035a48
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 + 0x58], reloc.WS2_32.dll_shutdown
mov esi, dword [rsp + 0x54]
mov dword [rsp + 0x60], ebp
mov eax, ebp
mov r8d, dword [rsp + 0x44]
mov dword [rsp + 0x28], r8d
mov edi, dword [rsp + 0x50]
mov r15d, r14d
mov ebp, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x4c]
mov r12d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x3c]
mov ebx, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x38]
nop word [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 + 0x58]
add ebp, 0xfffffffe
mov dword [rsp + 0x58], ebp
cmp ebp, 2
mov ebp, dword [rsp + 0x2c]
ja 0x140035600
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 + 0x54]
mov dword [rsp + 0xd0], esi
add edi, dword [rsp + 0x50]
mov dword [rsp + 0xd4], edi
add r8d, dword [rsp + 0x4c]
mov dword [rsp + 0xd8], r8d
add ebx, dword [rsp + 0x48]
mov dword [rsp + 0xdc], ebx
mov ecx, dword [rsp + 0x28]
add ecx, dword [rsp + 0x44]
mov dword [rsp + 0xe0], ecx
add ebp, dword [rsp + 0x40]
mov dword [rsp + 0xe4], ebp
add r14d, dword [rsp + 0x3c]
mov dword [rsp + 0xe8], r14d
add r9d, dword [rsp + 0x38]
mov dword [rsp + 0xec], r9d
mov ebp, dword [rsp + 0x60]
add eax, ebp
mov dword [rsp + 0xf0], eax
mov r14d, dword [rsp + 0x5c]
add r15d, r14d
mov dword [rsp + 0xf4], r15d
add r12d, dword [rsp + 0x34]
mov dword [rsp + 0xf8], r12d
add r13d, dword [rsp + 0x30]
mov dword [rsp + 0xfc], r13d
mov eax, 1
nop dword [rax]
mov rcx, qword [rsp + rax*4 + 0xbc]
mov qword [rsp + rax*4 + 0x7c], rcx
add rax, 2
cmp rax, 0x11
jne 0x140035840
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 0x140035580
cmp rax, 8
jb 0x1400358a4
mov r9, rcx
sub r9, rdx
mov ebx, 0
cmp r9, 0x10
jb 0x1400359a2
cmp rax, 0x10
jae 0x1400358ab
xor ebx, ebx
jmp 0x140035975
xor ebx, ebx
jmp 0x1400359a2
lea r9, [rax - 0x10]
mov r10, r9
shr r10, 4
inc r10
mov edi, r10d
and edi, 3
cmp r9, 0x30
jae 0x1400358c9
xor esi, esi
jmp 0x140035920
and r10, 0xfffffffffffffffc
xor esi, esi
nop
movups xmm0, xmmword [rdx + rsi]
xorps xmm0, xmmword [rsp + rsi + 0x80]
movups xmmword [rcx + rsi], xmm0
movups xmm0, xmmword [rdx + rsi + 0x10]
xorps xmm0, xmmword [rsp + rsi + 0x90]
movups xmmword [rcx + rsi + 0x10], xmm0
movups xmm0, xmmword [rdx + rsi + 0x20]
xorps xmm0, xmmword [rsp + rsi + 0xa0]
movups xmmword [rcx + rsi + 0x20], xmm0
movups xmm0, xmmword [rdx + rsi + 0x30]
xorps xmm0, xmmword [rsp + rsi + 0xb0]
movups xmmword [rcx + rsi + 0x30], xmm0
add rsi, 0x40
add r10, 0xfffffffffffffffc
jne 0x1400358d0
mov ebx, eax
and ebx, 0x70
test rdi, rdi
je 0x140035968
lea r9, [rcx + rsi]
lea r10, [rsp + rsi]
add r10, 0x80
add rsi, rdx
shl rdi, 4
xor r11d, r11d
nop word cs:[rax + rax]
movups xmm0, xmmword [rsi + r11]
xorps xmm0, xmmword [r10 + r11]
movups xmmword [r9 + r11], xmm0
add r11, 0x10
cmp rdi, r11
jne 0x140035950
cmp rax, rbx
je 0x140035580
test al, 8
je 0x1400359a2
mov r10, rbx
mov ebx, eax
and ebx, 0x78
nop dword [rax]
mov r9, qword [rsp + r10 + 0x80]
xor r9, qword [rdx + r10]
mov qword [rcx + r10], r9
add r10, 8
cmp rbx, r10
jne 0x140035980
cmp rax, rbx
je 0x140035580
mov r11, rbx
not r11
add r11, rax
mov r10, rax
and r10, 3
je 0x1400359d9
nop word cs:[rax + rax]
movzx r9d, byte [rsp + rbx + 0x80]
xor r9b, byte [rdx + rbx]
mov byte [rcx + rbx], r9b
inc rbx
dec r10
jne 0x1400359c0
cmp r11, 3
jb 0x140035580
nop word cs:[rax + rax]
movzx r9d, byte [rsp + rbx + 0x80]
xor r9b, byte [rdx + rbx]
mov byte [rcx + rbx], r9b
movzx r9d, byte [rsp + rbx + 0x81]
xor r9b, byte [rdx + rbx + 1]
mov byte [rcx + rbx + 1], r9b
movzx r9d, byte [rsp + rbx + 0x82]
xor r9b, byte [rdx + rbx + 2]
mov byte [rcx + rbx + 2], r9b
movzx r9d, byte [rsp + rbx + 0x83]
xor r9b, byte [rdx + rbx + 3]
mov byte [rcx + rbx + 3], r9b
add rbx, 4
cmp rax, rbx
jne 0x1400359f0
jmp 0x140035580
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140279500
nop
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret