Function at 0x10182960
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.10010a90
cmp dword [ebp + 8], 0
jne 0x1018297a
xor eax, eax
jmp 0x10182b61
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.100b9600
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x101829d5
call fcn.1004ff40
push str.ecx_gen
push 0x249
push str.....Srcopenssl_3.0.10providersimplementationskeymgmtecx_kmgmt.c
call fcn.1004fff0
add esp, 0xc
push 0
push 0xc0100
push 0x39
call fcn.10050120
add esp, 0xc
xor eax, eax
jmp 0x10182b61
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
and ecx, 3
jne 0x101829e8
mov eax, dword [ebp - 8]
jmp 0x10182b61
mov edx, dword [ebp - 8]
push edx
call fcn.100b9820
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10182a2f
call fcn.1004ff40
push str.ecx_gen
push 0x252
push str.....Srcopenssl_3.0.10providersimplementationskeymgmtecx_kmgmt.c
call fcn.1004fff0
add esp, 0xc
push 0
push 0xc0100
push 0x39
call fcn.10050120
add esp, 0xc
jmp 0x10182b53
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.10059360
add esp, 0x10
test eax, eax
jg 0x10182a53
jmp 0x10182b53
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
ja case.default.0x10182a69
mov ecx, dword [ebp - 0xc]
jmp dword [ecx*4 + 0x10182b68]
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.101486f0
add esp, 8
jmp case.default.0x10182a69
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.1014a9e0
add esp, 8
jmp case.default.0x10182a69
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.10147be0
add esp, 0x10
test eax, eax
jne 0x10182b17
jmp 0x10182b53
jmp case.default.0x10182a69
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.1014b370
add esp, 0x10
test eax, eax
jne case.default.0x10182a69
jmp 0x10182b53
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 0x10182b61
mov eax, dword [ebp - 8]
push eax
call fcn.100b9740
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret