Function at 0x6c3850
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x168
mov ebp, dword [esp + 0x19c]
push dword [esp + 0x1a8]
push str.SHA512
push dword [esp + 0x1ac]
call fcn.005b9cd0
add esp, 0xc
mov edi, eax
call fcn.005b8930
mov esi, eax
mov ebx, ebp
test ebp, ebp
je 0x6c3892
mov ebx, dword [esp + 0x1a0]
cmp byte [esp + 0x198], 0
setne al
test ebx, ebx
sete cl
test al, cl
jne 0x6c3b12
cmp byte [esp + 0x190], 0
sete al
test ebx, ebx
setne cl
test al, cl
jne 0x6c3b12
test edi, edi
sete al
test esi, esi
sete cl
or cl, al
jne 0x6c3b12
push 0
push edi
push esi
call fcn.005b8fe0
add esp, 0xc
test eax, eax
je 0x6c3b12
push 0x20
push dword [esp + 0x190]
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b12
mov ecx, esp
lea eax, [esp + 0x48]
push ecx
push eax
push esi
call fcn.005b9180
add esp, 0xc
test eax, eax
je 0x6c3b12
and byte [esp + 0x48], 0xf8
movzx eax, byte [esp + 0x67]
and al, 0x3f
or al, 0x40
mov byte [esp + 0x67], al
movups xmm0, xmmword [0xa13be6]
movups xmmword [esp + 0x98], xmm0
movups xmm0, xmmword [str.SigEd25519_no_Ed25519_collisions]
movups xmmword [esp + 0x88], xmm0
mov byte [esp + 0xa8], 0
push 0
push edi
push esi
call fcn.005b8fe0
add esp, 0xc
test eax, eax
je 0x6c3b12
cmp byte [esp + 0x190], 0
je 0x6c39d4
cmp ebx, 0xff
ja 0x6c3b12
cmp byte [esp + 0x194], 0
setne byte [esp + 8]
mov byte [esp + 9], bl
lea eax, [esp + 0x88]
push 0x20
push eax
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b12
lea eax, [esp + 8]
push 2
push eax
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b12
push ebx
push ebp
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b12
lea eax, [esp + 0x68]
push 0x20
push eax
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b12
push dword [esp + 0x184]
push dword [esp + 0x184]
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b12
lea eax, [esp + 8]
mov ecx, esp
push ecx
push eax
push esi
call fcn.005b9180
add esp, 0xc
test eax, eax
je 0x6c3b12
lea ecx, [esp + 8]
call fcn.006c3c20
lea ecx, [esp + 0x88]
lea edx, [esp + 8]
call fcn.006c5240
mov ecx, dword [esp + 0x17c]
lea edx, [esp + 0x88]
call fcn.006c56a0
movzx eax, byte [esp + 0x194]
movzx ecx, byte [esp + 0x190]
mov dword [esp + 4], ecx
mov ecx, esi
mov edx, edi
push ebx
push ebp
push eax
push dword [esp + 0x10]
call fcn.006c3b60
add esp, 0x10
test eax, eax
je 0x6c3b12
push 0x20
mov ebp, dword [esp + 0x180]
push ebp
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
mov ebx, 0
je 0x6c3b14
push 0x20
push dword [esp + 0x18c]
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b14
push dword [esp + 0x184]
push dword [esp + 0x184]
push esi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x6c3b14
lea eax, [esp + 0x128]
mov ecx, esp
push ecx
push eax
push esi
call fcn.005b9180
add esp, 0xc
test eax, eax
je 0x6c3b14
lea ebx, [esp + 0x128]
mov ecx, ebx
call fcn.006c3c20
add ebp, 0x20
mov ecx, ebp
mov edx, ebx
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006c5710
add esp, 8
mov ebx, 1
jmp 0x6c3b14
xor ebx, ebx
lea eax, [esp + 8]
push 0x40
push eax
call fcn.005e8480
add esp, 8
lea eax, [esp + 0x48]
push 0x40
push eax
call fcn.005e8480
add esp, 8
push edi
call fcn.005b8780
add esp, 4
push esi
call fcn.005b8950
add esp, 4
mov eax, ebx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret