Function at 0x65ce10
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x174
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push eax
push str.SHA512
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0055aa70
add esp, 0xc
mov dword [ebp - 0x16c], eax
call fcn.0055a960
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x174], 0
cmp dword [ebp - 0x16c], 0
je 0x65ce69
cmp dword [ebp - 0x168], 0
jne 0x65ce6e
jmp 0x65d091
push 0
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x168]
push eax
call fcn.00559fe0
add esp, 0xc
test eax, eax
je 0x65cec1
push 0x20
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.0055a020
add esp, 0xc
test eax, eax
je 0x65cec1
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.00559df0
add esp, 0xc
test eax, eax
jne 0x65cec6
jmp 0x65d091
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x44]
and edx, 0xf8
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x44], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x44]
and ecx, 0x3f
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x44], cl
mov ecx, 1
imul edx, ecx, 0x1f
movzx eax, byte [ebp + edx - 0x44]
or eax, 0x40
mov ecx, 1
imul edx, ecx, 0x1f
mov byte [ebp + edx - 0x44], al
push 0
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.00559fe0
add esp, 0xc
test eax, eax
je 0x65cf8e
push 0x20
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x168]
push eax
call fcn.0055a020
add esp, 0xc
test eax, eax
je 0x65cf8e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x168]
push eax
call fcn.0055a020
add esp, 0xc
test eax, eax
je 0x65cf8e
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x168]
push eax
call fcn.00559df0
add esp, 0xc
test eax, eax
jne 0x65cf93
jmp 0x65d091
lea ecx, [ebp - 0x84]
push ecx
call fcn.00662190
add esp, 4
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x164]
push eax
call fcn.0065c750
add esp, 8
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0065c670
add esp, 8
push 0
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.00559fe0
add esp, 0xc
test eax, eax
je 0x65d055
push 0x20
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x168]
push eax
call fcn.0055a020
add esp, 0xc
test eax, eax
je 0x65d055
push 0x20
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.0055a020
add esp, 0xc
test eax, eax
je 0x65d055
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.0055a020
add esp, 0xc
test eax, eax
je 0x65d055
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call fcn.00559df0
add esp, 0xc
test eax, eax
jne 0x65d057
jmp 0x65d091
lea eax, [ebp - 0xc4]
push eax
call fcn.00662190
add esp, 4
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0xc4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
call fcn.0065d580
add esp, 0x10
mov dword [ebp - 0x174], 1
push 0x40
lea edx, [ebp - 0x84]
push edx
call fcn.00401320
add esp, 8
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.00401320
add esp, 8
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.0055aab0
add esp, 4
mov edx, dword [ebp - 0x168]
push edx
call fcn.0055a890
add esp, 4
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret