Function at 0x140012a30
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
mov rax, qword [rbp + 0x38]
test r8, r8
je 0x140012c50
movdqu xmm2, xmmword [rax]
movdqu xmm3, xmmword [rax + 0x10]
mov rbx, rcx
mov r13, rdx
mov rax, qword [r9]
mov r15, r8
movups xmmword [rsp + 0x40], xmm2
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x30]
movups xmmword [rsp + 0x50], xmm3
mov qword [rsp + 0x38], rax
cmp r8, 0x3f
jbe 0x140012e04
lea rax, [r8 - 0x40]
mov qword [rbp + 0x18], rdx
mov rsi, rdx
lea r14, [rsp + 0x30]
and rax, 0xffffffffffffffc0
mov qword [rbp + 0x20], r8
lea rdi, [rsp + 0x60]
lea r10, [rax + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r12, [rcx + r10]
mov r13, rax
mov qword [rsp + 0x20], r10
jmp 0x140012bdb
movdqu xmm0, xmmword [rsi]
pxor xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movdqu xmm0, xmmword [rsi + 0x10]
pxor xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm0
movdqu xmm0, xmmword [rsi + 0x20]
pxor xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x20], xmm0
movdqu xmm0, xmmword [rsi + 0x30]
pxor xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x30], xmm0
movzx eax, byte [rsp + 0x38]
movzx ecx, byte [rsp + 0x39]
add rbx, 0x40
add rsi, 0x40
movzx r8d, byte [rsp + 0x3a]
movzx r9d, byte [rsp + 0x3b]
mov edx, eax
add eax, 1
movzx r10d, byte [rsp + 0x3c]
movzx r11d, byte [rsp + 0x3d]
shr eax, 8
movzx r15d, byte [rsp + 0x3e]
add edx, 1
add ecx, eax
movzx edx, dl
mov eax, ecx
movzx ecx, cl
shr eax, 8
add r8d, eax
mov eax, r8d
movzx r8d, r8b
shr eax, 8
add r9d, eax
mov eax, r9d
movzx r9d, r9b
shr eax, 8
add r10d, eax
mov eax, r10d
movzx r10d, r10b
shr eax, 8
add r11d, eax
mov eax, r11d
movzx r11d, r11b
shr eax, 8
add r15d, eax
mov eax, r15d
movzx r15d, r15b
shr eax, 8
add al, byte [rsp + 0x3f]
movzx eax, al
shl rax, 8
or rax, r15
shl rax, 8
or rax, r11
shl rax, 8
or rax, r10
shl rax, 8
or rax, r9
shl rax, 8
or rax, r8
shl rax, 8
or rax, rcx
shl rax, 8
or rax, rdx
mov qword [rsp + 0x38], rax
cmp rbx, r12
je 0x140012c21
mov rdx, r14
xor r9d, r9d
mov r8, r13
mov rcx, rdi
call sym.crypto_core_salsa20
lea rdx, [rsi + 1]
mov rax, rbx
sub rax, rdx
cmp rax, 0xe
ja 0x140012ad0
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rsi + rax]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
add rax, 1
cmp rax, 0x40
jne 0x140012c08
jmp 0x140012b10
mov r15, qword [rbp + 0x20]
mov r10, qword [rsp + 0x20]
mov r13, qword [rbp + 0x18]
and r15d, 0x3f
jne 0x140012c63
mov edx, 0x40
mov rcx, rdi
call sym.sodium_memzero
mov rcx, qword [rsp + 0x28]
mov edx, 0x20
call sym.sodium_memzero
lea rsp, [rbp - 0x38]
xor eax, eax
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add r13, r10
mov r8, qword [rsp + 0x28]
mov rcx, rdi
xor r9d, r9d
mov rdx, r14
call sym.crypto_core_salsa20
mov ecx, r15d
cmp r15d, 7
jbe 0x140012dfd
lea rax, [r13 + 1]
mov rdx, rbx
sub rdx, rax
xor eax, eax
cmp rdx, 0xe
ja 0x140012cae
movzx edx, byte [r13 + rax]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
add rax, 1
cmp eax, ecx
jb 0x140012c98
jmp 0x140012c34
test r15d, r15d
mov edx, 1
cmovne edx, r15d
cmp r15, 0xf
jbe 0x140012e1d
movdqu xmm0, xmmword [r13]
mov eax, edx
pxor xmm0, xmmword [rsp + 0x60]
shr eax, 4
movups xmmword [rbx], xmm0
cmp eax, 1
je 0x140012d05
movdqu xmm0, xmmword [r13 + 0x10]
pxor xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm0
cmp eax, 3
jne 0x140012d05
movdqu xmm0, xmmword [r13 + 0x20]
pxor xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x20], xmm0
mov eax, edx
and eax, 0xfffffff0
test dl, 0xf
je 0x140012c34
mov r8d, edx
sub edx, 1
sub edx, eax
sub r8d, eax
cmp edx, 6
jbe 0x140012d4d
mov edx, eax
movq xmm0, qword [r13 + rdx]
movq xmm1, qword [rsp + rdx + 0x60]
pxor xmm0, xmm1
movq qword [rbx + rdx], xmm0
mov edx, r8d
and edx, 0xfffffff8
add eax, edx
and r8d, 7
je 0x140012c34
mov edx, eax
movzx r8d, byte [r13 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rbx + rdx], r8b
lea edx, [rax + 1]
cmp edx, ecx
jae 0x140012c34
movzx r8d, byte [r13 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rbx + rdx], r8b
lea edx, [rax + 2]
cmp edx, ecx
jae 0x140012c34
movzx r8d, byte [r13 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rbx + rdx], r8b
lea edx, [rax + 3]
cmp edx, ecx
jae 0x140012c34
movzx r8d, byte [r13 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rbx + rdx], r8b
lea edx, [rax + 4]
cmp edx, ecx
jae 0x140012c34
movzx r8d, byte [r13 + rdx]
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rbx + rdx], r8b
lea edx, [rax + 5]
cmp edx, ecx
jae 0x140012c34
movzx r8d, byte [r13 + rdx]
add eax, 6
xor r8b, byte [rsp + rdx + 0x60]
mov byte [rbx + rdx], r8b
cmp eax, ecx
jae 0x140012c34
movzx edx, byte [r13 + rax]
xor dl, byte [rsp + rax + 0x60]
mov byte [rbx + rax], dl
jmp 0x140012c34
xor eax, eax
jmp 0x140012c98
lea rax, [rsp + 0x40]
lea r14, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x60]
jmp 0x140012c66
xor eax, eax
jmp 0x140012d13