Function at 0x140012210
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov r12, qword [rbp + 0x510]
mov r14, r9
mov rsi, r8
mov qword [rsp + 0x30], rcx
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.libcrypto.dll_EVP_sha512]
xor ebx, ebx
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, r12
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x20]
call qword [sym.imp.libcrypto.dll_EVP_Digest]
movzx eax, byte [rbp + 0x3ff]
and byte [rbp + 0x3e0], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x3ff], al
lea rax, [r14 + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rdi], rax
test r14, r14
je 0x1400122d1
lea rcx, [r15 + 0x40]
sub rsi, r15
mov rdx, r14
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rcx - 0x40]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400122c0
lea rdi, [rbp + 0x3e0]
mov r13d, 0x10
sub rdi, r15
lea rsi, [r15 + 0x20]
lea r8, [rbp + 0x3e1]
mov rcx, rsi
sub r8, r15
mov edx, r13d
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
movzx eax, byte [r8 + rcx]
mov byte [rcx + 1], al
lea rcx, [rcx + 2]
sub rdx, 1
jne 0x140012300
call qword [sym.imp.libcrypto.dll_EVP_sha512]
lea rdx, [r14 + 0x20]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x420]
mov rcx, rsi
call qword [sym.imp.libcrypto.dll_EVP_Digest]
mov rcx, rbx
movzx eax, byte [rbp + rcx + 0x420]
mov dword [rbp + rcx*4 - 0x40], eax
movzx eax, byte [rbp + rcx + 0x421]
mov dword [rbp + rcx*4 - 0x3c], eax
add rcx, 2
cmp rcx, 0x40
jl 0x140012342
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xc0]
call fcn.140014790
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.140014af0
movzx r8d, byte [rsp + 0x40]
lea rcx, [rbp + 0x1c0]
xor edx, edx
call fcn.1400135e0
xor eax, eax
lea rdi, [rbp + 0x2c4]
mov r14d, 1
lea r8, [rbp + 0x240]
mov dword [rbp + 0x2c0], r14d
lea rdx, [rbp + 0x1c0]
mov ecx, 0x1f
rep stosd dword [rdi], eax
lea rcx, [rbp + 0x340]
call fcn.1400164c0
lea rdi, [rsp + 0x41]
lea r15d, [r14 + 0x53]
nop dword [rax]
movzx r8d, byte [rdi]
lea rcx, [rbp - 0x40]
mov rdx, r14
call fcn.1400135e0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x1c0]
call fcn.140012f20
inc r14
lea rdi, [rdi + 1]
sub r15, 1
jne 0x1400123e0
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0x3c0]
call fcn.140013c30
mov r14, qword [rsp + 0x30]
mov rcx, r13
movups xmm0, xmmword [rbp + 0x3c0]
movups xmm1, xmmword [rbp + 0x3d0]
lea rax, [r14 + 1]
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm1
lea rax, [rax + 2]
sub rcx, 1
jne 0x140012443
mov rcx, rsi
sub r12, r14
mov rdx, r13
nop word [rax + rax]
movzx eax, byte [r12 + rcx]
mov byte [rcx], al
movzx eax, byte [r12 + rcx + 1]
mov byte [rcx + 1], al
lea rcx, [rcx + 2]
sub rdx, 1
jne 0x140012460
mov rdi, qword [rsp + 0x38]
cmp rdi, 0x40
jbe 0x14001249a
lea rax, [r14 + 0x40]
lea rcx, [rdi - 0x40]
nop dword [rax]
lea rax, [rax + 1]
sub rcx, 1
jne 0x140012490
call qword [sym.imp.libcrypto.dll_EVP_sha512]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [rbp + 0x460]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.libcrypto.dll_EVP_Digest]
mov rcx, rbx
movzx eax, byte [rbp + rcx + 0x460]
mov dword [rbp + rcx*4 - 0x40], eax
movzx eax, byte [rbp + rcx + 0x461]
mov dword [rbp + rcx*4 - 0x3c], eax
add rcx, 2
cmp rcx, 0x40
jl 0x1400124c3
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140014790
mov rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x3e0]
mov dword [rbp + rcx*4 - 0x40], eax
movzx eax, byte [rbp + rcx + 0x3e1]
mov dword [rbp + rcx*4 - 0x3c], eax
add rcx, 2
cmp rcx, 0x20
jl 0x140012500
xor eax, eax
lea rdi, [rbp + 0x40]
mov r15d, 0x20
lea rdx, [rbp - 0x40]
mov ecx, r15d
rep stosd dword [rdi], eax
lea rcx, [rbp + 0x140]
call fcn.140014790
lea rax, [rbp - 0x40]
lea ecx, [r15 - 0x1c]
nop dword [rax + rax]
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
lea rax, [rax + 0x40]
mov qword [rax - 0x28], rbx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x10], rbx
mov qword [rax - 8], rbx
sub rcx, 1
jne 0x140012550
lea rdx, [rbp + 0x144]
mov r8, rbx
lea rax, [rbp - 0x3c]
sub rdx, rax
nop word [rax + rax]
mov edi, dword [rsp + r8 + 0x40]
lea rax, [rbp - 0x3c]
add rax, r8
mov r9d, 8
mov ecx, dword [rax + rdx - 4]
lea rax, [rax + 0x10]
imul ecx, edi
add dword [rax - 0x14], ecx
mov ecx, dword [rax + rdx - 0x10]
imul ecx, edi
add dword [rax - 0x10], ecx
mov ecx, dword [rax + rdx - 0xc]
imul ecx, edi
add dword [rax - 0xc], ecx
mov ecx, dword [rax + rdx - 8]
imul ecx, edi
add dword [rax - 8], ecx
sub r9, 1
jne 0x1400125a2
add r8, 4
sub rdx, 4
cmp r8, 0x80
jl 0x140012590
lea rdi, [rbp - 0x40]
lea r8d, [r9 + 0x3f]
nop dword [rax]
mov ecx, dword [rdi]
lea rdi, [rdi + 4]
mov eax, ecx
shr eax, 8
add dword [rdi], eax
movzx eax, cl
mov dword [rdi - 4], eax
sub r8, 1
jne 0x1400125f0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140014790
mov rax, rbx
nop word [rax + rax]
movdqu xmm0, xmmword [rsp + rax + 0x40]
movdqu xmm1, xmmword [rbp + rax + 0xc0]
paddd xmm1, xmm0
movdqu xmmword [rsp + rax + 0x40], xmm1
movdqu xmm0, xmmword [rsp + rax + 0x50]
movdqu xmm1, xmmword [rbp + rax + 0xd0]
paddd xmm1, xmm0
movdqu xmmword [rsp + rax + 0x50], xmm1
add rax, r15
cmp rax, 0x80
jl 0x140012620
lea rdi, [rsp + 0x40]
mov r14d, 0x1f
nop dword [rax + rax]
mov ecx, dword [rdi]
lea rdi, [rdi + 4]
mov eax, ecx
shr eax, 8
add dword [rdi], eax
movzx eax, cl
mov dword [rdi - 4], eax
sub r14, 1
jne 0x140012670
mov r14, qword [rsp + 0x30]
lea r8, [0x140055d60]
mov edi, ebx
mov rdx, rbx
nop word [rax + rax]
add edi, dword [r8 + rdx*4]
movzx eax, byte [rsp + rdx*4 + 0x40]
mov ecx, dword [rsp + rdx*4 + 0x40]
sub al, dil
sub ecx, edi
mov byte [rbp + rdx + 0x3c0], al
shr ecx, 0x1f
inc rdx
mov edi, ecx
cmp rdx, r15
jl 0x1400126a0
lea r8d, [rcx - 1]
lea rdi, [rbp + 0x3c0]
lea rdx, [rsp + 0x40]
nop word [rax + rax]
movzx ecx, byte [rdi]
lea rdi, [rdi + 1]
xor ecx, dword [rdx]
lea rdx, [rdx + 4]
and ecx, r8d
xor dword [rdx - 4], ecx
sub r15, 1
jne 0x1400126e0
nop dword [rax]
movzx eax, byte [rsp + rbx*4 + 0x40]
mov byte [rbp + rbx + 0x3c0], al
movzx eax, byte [rsp + rbx*4 + 0x44]
mov byte [rbp + rbx + 0x3c1], al
add rbx, 2
cmp rbx, 0x20
jl 0x140012700
lea rcx, [rbp + 0x3c0]
sub rcx, r14
lea rdx, [rbp + 0x3c1]
sub rdx, r14
nop word [rax + rax]
movzx eax, byte [rcx + rsi - 0x20]
mov byte [rsi], al
movzx eax, byte [rdx + rsi - 0x20]
mov byte [rsi + 1], al
lea rsi, [rsi + 2]
sub r13, 1
jne 0x140012740
xor eax, eax
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.140018df0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret