Function at 0x10139810
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17c
call fcn.10010ae0
mov eax, dword [0x1023d1a4]
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.10037fd0
add esp, 0xc
mov dword [ebp - 0x54], eax
call fcn.10036c60
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x54], 0
je 0x1013985a
cmp dword [ebp - 8], 0
jne 0x1013985f
jmp 0x10139a1e
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100372e0
add esp, 0xc
test eax, eax
je 0x101398a9
push 0x20
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037300
add esp, 0xc
test eax, eax
je 0x101398a9
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100374d0
add esp, 0xc
test eax, eax
jne 0x101398ae
jmp 0x10139a1e
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.100372e0
add esp, 0xc
test eax, eax
je 0x10139936
push 0x20
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037300
add esp, 0xc
test eax, eax
je 0x10139936
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037300
add esp, 0xc
test eax, eax
je 0x10139936
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xd8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100374d0
add esp, 0xc
test eax, eax
jne 0x1013993b
jmp 0x10139a1e
lea ecx, [ebp - 0xd8]
push ecx
call fcn.1013ee40
add esp, 4
lea edx, [ebp - 0xd8]
push edx
lea eax, [ebp - 0x178]
push eax
call fcn.1013cfd0
add esp, 8
lea ecx, [ebp - 0x178]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10139a70
add esp, 8
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.100372e0
add esp, 0xc
test eax, eax
je 0x101399e8
push 0x20
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10037300
add esp, 0xc
test eax, eax
je 0x101399e8
push 0x20
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037300
add esp, 0xc
test eax, eax
je 0x101399e8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10037300
add esp, 0xc
test eax, eax
je 0x101399e8
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100374d0
add esp, 0xc
test eax, eax
jne 0x101399ea
jmp 0x10139a1e
lea eax, [ebp - 0x50]
push eax
call fcn.1013ee40
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.10141980
add esp, 0x10
mov dword [ebp - 4], 1
push 0x40
lea edx, [ebp - 0xd8]
push edx
call fcn.100679a0
add esp, 8
push 0x40
lea eax, [ebp - 0x98]
push eax
call fcn.100679a0
add esp, 8
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.100386d0
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.10036c80
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10010586
mov esp, ebp
pop ebp
ret