Function at 0x6c3290
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.005b9720
add esp, 0xc
mov edi, eax
call fcn.005b8380
mov esi, eax
mov ebx, ebp
test ebp, ebp
je 0x6c32d2
mov ebx, dword [esp + 0x1a0]
cmp byte [esp + 0x198], 0
setne al
test ebx, ebx
sete cl
test al, cl
jne 0x6c3552
cmp byte [esp + 0x190], 0
sete al
test ebx, ebx
setne cl
test al, cl
jne 0x6c3552
test edi, edi
sete al
test esi, esi
sete cl
or cl, al
jne 0x6c3552
push 0
push edi
push esi
call fcn.005b8a30
add esp, 0xc
test eax, eax
je 0x6c3552
push 0x20
push dword [esp + 0x190]
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3552
mov ecx, esp
lea eax, [esp + 0x48]
push ecx
push eax
push esi
call fcn.005b8bd0
add esp, 0xc
test eax, eax
je 0x6c3552
and byte [esp + 0x48], 0xf8
movzx eax, byte [esp + 0x67]
and al, 0x3f
or al, 0x40
mov byte [esp + 0x67], al
movups xmm0, xmmword [0xadc5e6]
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.005b8a30
add esp, 0xc
test eax, eax
je 0x6c3552
cmp byte [esp + 0x190], 0
je 0x6c3414
cmp ebx, 0xff
ja 0x6c3552
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.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3552
lea eax, [esp + 8]
push 2
push eax
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3552
push ebx
push ebp
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3552
lea eax, [esp + 0x68]
push 0x20
push eax
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3552
push dword [esp + 0x184]
push dword [esp + 0x184]
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3552
lea eax, [esp + 8]
mov ecx, esp
push ecx
push eax
push esi
call fcn.005b8bd0
add esp, 0xc
test eax, eax
je 0x6c3552
lea ecx, [esp + 8]
call fcn.006c3660
lea ecx, [esp + 0x88]
lea edx, [esp + 8]
call fcn.006c4c80
mov ecx, dword [esp + 0x17c]
lea edx, [esp + 0x88]
call fcn.006c50e0
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.006c35a0
add esp, 0x10
test eax, eax
je 0x6c3552
push 0x20
mov ebp, dword [esp + 0x180]
push ebp
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
mov ebx, 0
je 0x6c3554
push 0x20
push dword [esp + 0x18c]
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3554
push dword [esp + 0x184]
push dword [esp + 0x184]
push esi
call fcn.005b8a50
add esp, 0xc
test eax, eax
je 0x6c3554
lea eax, [esp + 0x128]
mov ecx, esp
push ecx
push eax
push esi
call fcn.005b8bd0
add esp, 0xc
test eax, eax
je 0x6c3554
lea ebx, [esp + 0x128]
mov ecx, ebx
call fcn.006c3660
add ebp, 0x20
mov ecx, ebp
mov edx, ebx
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006c5150
add esp, 8
mov ebx, 1
jmp 0x6c3554
xor ebx, ebx
lea eax, [esp + 8]
push 0x40
push eax
call fcn.005e7ed0
add esp, 8
lea eax, [esp + 0x48]
push 0x40
push eax
call fcn.005e7ed0
add esp, 8
push edi
call fcn.005b81d0
add esp, 4
push esi
call fcn.005b83a0
add esp, 4
mov eax, ebx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret