Function at 0x10139290
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17c
call fcn.10010a90
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
push eax
push str.SHA512
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.10037f60
add esp, 0xc
mov dword [ebp - 0x54], eax
call fcn.10036bf0
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x54], 0
je 0x101392da
cmp dword [ebp - 8], 0
jne 0x101392df
jmp 0x1013949e
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037270
add esp, 0xc
test eax, eax
je 0x10139329
push 0x20
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x10139329
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037460
add esp, 0xc
test eax, eax
jne 0x1013932e
jmp 0x1013949e
movzx eax, byte [ebp - 0x98]
and eax, 0xf8
mov byte [ebp - 0x98], al
movzx ecx, byte [ebp - 0x79]
and ecx, 0x3f
mov byte [ebp - 0x79], cl
movzx edx, byte [ebp - 0x79]
or edx, 0x40
mov byte [ebp - 0x79], dl
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10037270
add esp, 0xc
test eax, eax
je 0x101393b6
push 0x20
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x101393b6
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x101393b6
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xd8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037460
add esp, 0xc
test eax, eax
jne 0x101393bb
jmp 0x1013949e
lea ecx, [ebp - 0xd8]
push ecx
call fcn.1013e840
add esp, 4
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x178]
push eax
call fcn.1013c9d0
add esp, 8
lea ecx, [ebp - 0x178]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10146690
add esp, 8
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10037270
add esp, 0xc
test eax, eax
je 0x10139468
push 0x20
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x10139468
push 0x20
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x10139468
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x10139468
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037460
add esp, 0xc
test eax, eax
jne 0x1013946a
jmp 0x1013949e
lea eax, [ebp - 0x50]
push eax
call fcn.1013e840
add esp, 4
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x98]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
call fcn.10141380
add esp, 0x10
mov dword [ebp - 4], 1
push 0x40
lea edx, [ebp - 0xd8]
push edx
call fcn.100679f0
add esp, 8
push 0x40
lea eax, [ebp - 0x98]
push eax
call fcn.100679f0
add esp, 8
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.10038660
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.10036c10
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10010588
mov esp, ebp
pop ebp
ret