Function at 0x1803de840
Capabilities:
Encrypt data using curve25519

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x1d8]
sub rsp, 0x2c8
mov rax, qword [0x1805b6a20]
xor rax, rsp
mov qword [rbp + 0x198], rax
mov qword [rsp + 0x30], r8
mov rax, r9
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rcx
cmp rdx, 0x20
jne 0x1803deff0
cmp rax, rdx
ja 0x1803deff0
and byte [rcx + 0x1f], 0x7f
mov r10, rdx
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x18], rdi
xor edi, edi
mov qword [r11 - 0x20], r12
mov ebx, edi
mov qword [r11 - 0x28], r13
lea r9d, [r10 - 2]
mov qword [r11 - 0x30], r14
lea r14, [rbp + 0x38]
mov qword [r11 - 0x38], r15
mov r15, rdx
mov edx, edi
mov r11, rcx
nop dword [rax]
movzx r8d, byte [r11]
lea r11, [r11 + 1]
dec r10
mov ecx, edx
cmp edx, 0x16
jge 0x1803de8e1
shl r8d, cl
add edx, 8
or ebx, r8d
sub r9d, 8
jmp 0x1803de903
mov eax, r8d
sub edx, 0x16
shl eax, cl
mov ecx, r9d
or eax, ebx
mov ebx, r8d
and eax, 0x3fffffff
shr ebx, cl
mov dword [r14], eax
add r14, 4
add r9d, 0x16
test r10, r10
jne 0x1803de8c0
movups xmm0, xmmword [rbp + 0x38]
mov r14, qword [rsp + 0x28]
xor eax, eax
movups xmm1, xmmword [rbp + 0x48]
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp + 0x178]
xor r12d, r12d
mov dword [rbp + 0x58], ebx
xor r13d, r13d
mov qword [rsp + 0x48], r12
mov r8, r14
mov qword [rsp + 0x50], r12
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x58], r12
movups xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x24], 1
call fcn.1803e4840
mov r8, r15
lea rcx, [rbp + 0x178]
sub r8, r14
add rcx, r14
xor edx, edx
call fcn.1803e5240
movzx eax, byte [rbp + 0x197]
mov esi, 0xfe
and byte [rbp + 0x178], 0xf8
and al, 0x3f
mov r9, qword [rsp + 0x38]
or al, 0x40
mov edx, dword [rsp + 0x20]
mov r15d, esi
mov r10d, dword [rsp + 0x24]
mov byte [rbp + 0x197], al
nop dword [rax]
mov rax, r15
movzx ecx, sil
and ecx, 7
sar rax, 3
movzx r14d, byte [rbp + rax + 0x178]
mov eax, dword [rbp - 0x40]
shr r14d, cl
mov ecx, edx
xor ecx, eax
and r14d, 1
mov r8d, r14d
xor r8d, edi
neg r8d
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x70], edx
mov edx, dword [rbp - 0x3c]
mov ecx, edx
mov dword [rbp - 0x40], eax
mov eax, dword [rsp + 0x74]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x3c], edx
mov edx, dword [rbp - 0x38]
mov ecx, edx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x78]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x38], edx
mov edx, dword [rbp - 0x34]
mov ecx, edx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x7c]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x34], edx
mov edx, dword [rbp - 0x30]
mov ecx, edx
mov dword [rsp + 0x7c], eax
mov eax, dword [rbp - 0x80]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x30], edx
mov edx, dword [rbp - 0x2c]
mov ecx, edx
mov dword [rbp - 0x80], eax
mov eax, dword [rbp - 0x7c]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x2c], edx
mov edx, dword [rbp - 0x28]
mov ecx, edx
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x78]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x28], edx
mov edx, dword [rbp - 0x24]
mov ecx, edx
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x74]
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rbp - 0x74], eax
mov dword [rbp - 0x24], edx
mov edx, dword [rbp - 0x64]
mov eax, ebx
xor eax, r13d
mov ecx, r10d
and eax, r8d
xor r13d, eax
xor ebx, eax
mov eax, dword [rsp + 0x48]
xor ecx, eax
and ecx, r8d
mov dword [rbp - 0x70], r13d
xor eax, ecx
mov dword [rbp - 0x20], ebx
xor r10d, ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
mov ecx, edx
xor ecx, eax
mov dword [rbp - 0x68], r10d
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
mov dword [rbp - 0x64], edx
mov edx, dword [rbp - 0x60]
mov ecx, edx
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
mov dword [rbp - 0x60], edx
mov edx, dword [rbp - 0x5c]
mov ecx, edx
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x58]
mov dword [rbp - 0x5c], edx
mov edx, dword [rbp - 0x58]
mov ecx, edx
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbp - 0x58], edx
mov edx, dword [rbp - 0x54]
mov ecx, edx
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x60]
mov dword [rbp - 0x54], edx
mov edx, dword [rbp - 0x50]
mov ecx, edx
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x64]
mov dword [rbp - 0x50], edx
mov edx, dword [rbp - 0x4c]
mov ecx, edx
xor ecx, eax
and ecx, r8d
xor eax, ecx
xor edx, ecx
mov dword [rsp + 0x64], eax
mov eax, r9d
xor eax, r12d
mov dword [rbp - 0x4c], edx
and eax, r8d
xor r12d, eax
lea r8, [rsp + 0x48]
xor r9d, eax
mov dword [rsp + 0x68], r12d
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x48], r9d
lea rcx, [rbp + 0x10]
mov edi, r14d
call fcn.1803df050
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x60]
call fcn.1803df660
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x18]
call fcn.1803df8d0
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0xd8]
call fcn.1803df660
lea r8, [rbp + 0xd8]
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x100]
call fcn.1803df8d0
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x150]
call fcn.1803df050
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x128]
call fcn.1803df8d0
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x128]
lea rcx, [rbp + 0xb0]
call fcn.1803df200
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x88]
call fcn.1803df200
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x40]
call fcn.1803df050
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.1803df660
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x68]
call fcn.1803df8d0
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1803df660
lea r8, [rbp + 0x38]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1803df200
lea r8, [rbp + 0xd8]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.1803df200
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x48]
call fcn.1803df460
lea r8, [rbp + 0x60]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1803df050
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x48]
call fcn.1803df200
dec r15
sub esi, 1
js 0x1803ded27
mov ebx, dword [rbp - 0x20]
mov r12d, dword [rsp + 0x68]
mov r13d, dword [rbp - 0x70]
mov edx, dword [rsp + 0x70]
mov r9d, dword [rbp - 0x48]
mov r10d, dword [rbp - 0x68]
jmp 0x1803de9d0
mov ecx, dword [rsp + 0x70]
neg r14d
mov eax, ecx
xor eax, dword [rbp - 0x40]
and eax, r14d
xor ecx, eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x70], ecx
mov ecx, dword [rbp - 0x3c]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x38]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x78]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x34]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x7c]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x30]
mov dword [rsp + 0x7c], eax
mov eax, dword [rbp - 0x80]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x2c]
mov dword [rbp - 0x80], eax
mov eax, dword [rbp - 0x7c]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x28]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x78]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x24]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x74]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x20]
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x70]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x68]
mov dword [rbp - 0x70], eax
mov eax, dword [rsp + 0x48]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x64]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x60]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x5c]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x58]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
xor ecx, eax
mov r13, qword [rsp + 0x2b0]
and ecx, r14d
xor eax, ecx
mov ebx, 0xf
mov ecx, dword [rbp - 0x54]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
xor ecx, eax
and ecx, r14d
lea r15d, [rbx + 0x11]
xor eax, ecx
mov ecx, dword [rbp - 0x50]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x60]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rbp - 0x4c]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x64]
xor ecx, eax
and ecx, r14d
xor eax, ecx
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x64], eax
mov eax, dword [rbp - 0x48]
movups xmm1, xmmword [rsp + 0x58]
xor eax, ecx
and eax, r14d
xor ecx, eax
mov dword [rsp + 0x68], ecx
xor edi, edi
mov dword [rbp + 0x30], ecx
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm1
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.1803df660
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.1803df200
sub rbx, 1
jne 0x1803dee91
movups xmm0, xmmword [rbp + 0x10]
mov eax, dword [rbp + 0x30]
mov r14d, 0xe
movups xmm1, xmmword [rbp + 0x20]
mov dword [rbp + 8], eax
mov r12d, r14d
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm1
nop word [rax + rax]
mov ebx, 0x10
nop word [rax + rax]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.1803df660
sub rbx, 1
jne 0x1803deef0
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.1803df200
sub r12, 1
jne 0x1803deee0
mov r12, qword [rsp + 0x2b8]
mov rbx, qword [rsp + 0x2e8]
nop word [rax + rax]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.1803df660
mov eax, 0xffeb
mov ecx, r14d
sar eax, cl
test al, 1
je 0x1803def5d
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x18]
call fcn.1803df200
sub r14d, 1
jns 0x1803def30
lea r8, [rbp - 0x18]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1803df200
lea rcx, [rsp + 0x70]
call fcn.1803dfa80
mov r14, qword [rsp + 0x2a8]
lea r10, [rsp + 0x70]
mov r8d, edi
mov r9d, 8
dec r15
cmp r8d, 8
jge 0x1803defc4
mov edx, dword [r10]
mov ecx, r8d
movzx eax, dl
add r10, 4
shl al, cl
add r8d, 0x16
or al, dil
mov ecx, r9d
mov edi, edx
mov byte [rsi], al
shr edi, cl
sub r9d, 0x16
jmp 0x1803defd2
mov byte [rsi], dil
sub r8d, 8
shr edi, 8
add r9d, 8
inc rsi
test r15, r15
jne 0x1803def96
mov rdi, qword [rsp + 0x2c0]
lea eax, [r15 + 1]
mov r15, qword [rsp + 0x2a0]
jmp 0x1803deff2
xor eax, eax
mov rcx, qword [rbp + 0x198]
xor rcx, rsp
call fcn.1803e2650
add rsp, 0x2c8
pop rsi
pop rbp
ret