Function at 0x6c4e50
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.005bb2e0
add esp, 0xc
mov edi, eax
call fcn.005b9f40
mov esi, eax
mov ebx, ebp
test ebp, ebp
je 0x6c4e92
mov ebx, dword [esp + 0x1a0]
cmp byte [esp + 0x198], 0
setne al
test ebx, ebx
sete cl
test al, cl
jne 0x6c5112
cmp byte [esp + 0x190], 0
sete al
test ebx, ebx
setne cl
test al, cl
jne 0x6c5112
test edi, edi
sete al
test esi, esi
sete cl
or cl, al
jne 0x6c5112
push 0
push edi
push esi
call fcn.005ba5f0
add esp, 0xc
test eax, eax
je 0x6c5112
push 0x20
push dword [esp + 0x190]
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5112
mov ecx, esp
lea eax, [esp + 0x48]
push ecx
push eax
push esi
call fcn.005ba790
add esp, 0xc
test eax, eax
je 0x6c5112
and byte [esp + 0x48], 0xf8
movzx eax, byte [esp + 0x67]
and al, 0x3f
or al, 0x40
mov byte [esp + 0x67], al
movups xmm0, xmmword [0xa56246]
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.005ba5f0
add esp, 0xc
test eax, eax
je 0x6c5112
cmp byte [esp + 0x190], 0
je 0x6c4fd4
cmp ebx, 0xff
ja 0x6c5112
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.005ba610
add esp, 0xc
test eax, eax
je 0x6c5112
lea eax, [esp + 8]
push 2
push eax
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5112
push ebx
push ebp
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5112
lea eax, [esp + 0x68]
push 0x20
push eax
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5112
push dword [esp + 0x184]
push dword [esp + 0x184]
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5112
lea eax, [esp + 8]
mov ecx, esp
push ecx
push eax
push esi
call fcn.005ba790
add esp, 0xc
test eax, eax
je 0x6c5112
lea ecx, [esp + 8]
call fcn.006c5220
lea ecx, [esp + 0x88]
lea edx, [esp + 8]
call fcn.006c6840
mov ecx, dword [esp + 0x17c]
lea edx, [esp + 0x88]
call fcn.006c6ca0
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.006c5160
add esp, 0x10
test eax, eax
je 0x6c5112
push 0x20
mov ebp, dword [esp + 0x180]
push ebp
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
mov ebx, 0
je 0x6c5114
push 0x20
push dword [esp + 0x18c]
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5114
push dword [esp + 0x184]
push dword [esp + 0x184]
push esi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x6c5114
lea eax, [esp + 0x128]
mov ecx, esp
push ecx
push eax
push esi
call fcn.005ba790
add esp, 0xc
test eax, eax
je 0x6c5114
lea ebx, [esp + 0x128]
mov ecx, ebx
call fcn.006c5220
add ebp, 0x20
mov ecx, ebp
mov edx, ebx
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006c6d10
add esp, 8
mov ebx, 1
jmp 0x6c5114
xor ebx, ebx
lea eax, [esp + 8]
push 0x40
push eax
call fcn.005e9a90
add esp, 8
lea eax, [esp + 0x48]
push 0x40
push eax
call fcn.005e9a90
add esp, 8
push edi
call fcn.005b9d90
add esp, 4
push esi
call fcn.005b9f60
add esp, 4
mov eax, ebx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret