Function at 0x1018fa90
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.101d14f0
cmp dword [ebp + 8], 0
jne 0x1018faaa
xor eax, eax
jmp 0x1018fc91
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.100c6240
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1018fb05
call fcn.1005ca30
push str.ecx_gen
push 0x24c
push str.....Srcopenssl_3.0.12providersimplementationskeymgmtecx_kmgmt.c
call fcn.1005cae0
add esp, 0xc
push 0
push 0xc0100
push 0x39
call fcn.1005cc10
add esp, 0xc
xor eax, eax
jmp 0x1018fc91
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 3
jne 0x1018fb18
mov eax, dword [ebp - 8]
jmp 0x1018fc91
mov edx, dword [ebp - 8]
push edx
call fcn.100c6460
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1018fb5f
call fcn.1005ca30
push str.ecx_gen
push 0x255
push str.....Srcopenssl_3.0.12providersimplementationskeymgmtecx_kmgmt.c
call fcn.1005cae0
add esp, 0xc
push 0
push 0xc0100
push 0x39
call fcn.1005cc10
add esp, 0xc
jmp 0x1018fc83
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.10065e10
add esp, 0x10
test eax, eax
jg 0x1018fb83
jmp 0x1018fc83
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
ja case.default.0x1018fb99
mov ecx, dword [ebp - 0xc]
jmp dword [ecx*4 + 0x1018fc98]
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
and eax, 0xf8
mov ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x1f]
and eax, 0x7f
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1f], al
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x1f]
or eax, 0x40
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x1f], al
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
call fcn.10155660
add esp, 8
jmp case.default.0x1018fb99
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
and edx, 0xfc
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x37]
or edx, 0x80
mov eax, dword [ebp - 4]
mov byte [eax + 0x37], dl
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
call fcn.101579d0
add esp, 8
jmp case.default.0x1018fb99
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10154b50
add esp, 0x10
test eax, eax
jne 0x1018fc47
jmp 0x1018fc83
jmp case.default.0x1018fb99
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10158360
add esp, 0x10
test eax, eax
jne case.default.0x1018fb99
jmp 0x1018fc83
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
or ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 8]
jmp 0x1018fc91
mov eax, dword [ebp - 8]
push eax
call fcn.100c6380
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret