Function at 0x10138750
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.10010ae0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 2
je 0x10138892
cmp dword [ebp + 8], 0
je 0x10138820
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
call fcn.1005c6b0
add esp, 0x10
cmp dword [ebp - 0x10], 0xffffffff
je 0x101387c3
call fcn.1004fd50
push str.ossl_ecx_key_op
push 0xaa
push str.....Srcopenssl_3.0.12cryptoececx_backend.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.100500d0
add esp, 0xc
xor eax, eax
jmp 0x10138aeb
cmp dword [ebp + 0x14], 0
jne 0x101387dc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10030580
add esp, 4
mov dword [ebp + 0x14], eax
jmp 0x10138820
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.10030580
add esp, 4
cmp dword [ebp + 0x14], eax
je 0x10138820
call fcn.1004fd50
push str.ossl_ecx_key_op
push 0xb0
push str.....Srcopenssl_3.0.12cryptoececx_backend.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.100500d0
add esp, 0xc
xor eax, eax
jmp 0x10138aeb
cmp dword [ebp + 0xc], 0
je 0x10138861
cmp dword [ebp + 0x14], 0
je 0x10138861
cmp dword [ebp + 0x14], 0x40a
je 0x10138852
cmp dword [ebp + 0x14], 0x43f
je 0x10138852
xor eax, eax
cmp dword [ebp + 0x14], 0x40b
setne al
add eax, 0x38
mov dword [ebp - 0x14], eax
jmp 0x10138859
mov dword [ebp - 0x14], 0x20
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x14]
je 0x10138892
call fcn.1004fd50
push str.ossl_ecx_key_op
push 0xb6
push str.....Srcopenssl_3.0.12cryptoececx_backend.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.100500d0
add esp, 0xc
xor eax, eax
jmp 0x10138aeb
cmp dword [ebp + 0x14], 0x40a
je 0x101388b9
cmp dword [ebp + 0x14], 0x43f
je 0x101388b9
xor edx, edx
cmp dword [ebp + 0x14], 0x40b
setne dl
lea edx, [edx + edx + 1]
mov dword [ebp - 0x18], edx
jmp 0x101388cb
mov eax, dword [ebp + 0x14]
sub eax, 0x40a
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.100b96e0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1013891e
call fcn.1004fd50
push str.ossl_ecx_key_op
push 0xbd
push str.....Srcopenssl_3.0.12cryptoececx_backend.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0xc0100
push 0x10
call fcn.100500d0
add esp, 0xc
xor eax, eax
jmp 0x10138aeb
mov ecx, dword [ebp - 8]
add ecx, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x18], 0
jne 0x10138946
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x10138ad8
mov edx, dword [ebp - 8]
push edx
call fcn.100b9900
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1013898d
call fcn.1004fd50
push str.ossl_ecx_key_op
push 0xc7
push str.....Srcopenssl_3.0.12cryptoececx_backend.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0xc0100
push 0x10
call fcn.100500d0
add esp, 0xc
jmp 0x10138add
cmp dword [ebp + 0x18], 2
jne 0x10138a58
cmp dword [ebp + 0x14], 0
je 0x10138a56
cmp dword [ebp + 0x14], 0x40a
je 0x101389c7
cmp dword [ebp + 0x14], 0x43f
je 0x101389c7
xor eax, eax
cmp dword [ebp + 0x14], 0x40b
setne al
add eax, 0x38
mov dword [ebp - 0x1c], eax
jmp 0x101389ce
mov dword [ebp - 0x1c], 0x20
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.100592f0
add esp, 0x10
test eax, eax
jg 0x101389ed
jmp 0x10138add
cmp dword [ebp + 0x14], 0x40a
jne 0x10138a29
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
and edx, 0xf8
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1f]
and edx, 0x7f
mov eax, dword [ebp - 4]
mov byte [eax + 0x1f], dl
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1f]
or edx, 0x40
mov eax, dword [ebp - 4]
mov byte [eax + 0x1f], dl
jmp 0x10138a56
cmp dword [ebp + 0x14], 0x40b
jne 0x10138a56
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
jmp 0x10138a99
cmp dword [ebp + 0x14], 0x40a
je 0x10138a7e
cmp dword [ebp + 0x14], 0x43f
je 0x10138a7e
xor ecx, ecx
cmp dword [ebp + 0x14], 0x40b
setne cl
add ecx, 0x38
mov dword [ebp - 0x20], ecx
jmp 0x10138a85
mov dword [ebp - 0x20], 0x20
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.10138320
add esp, 4
test eax, eax
jne 0x10138ad8
call fcn.1004fd50
push str.ossl_ecx_key_op
push 0xdb
push str.....Srcopenssl_3.0.12cryptoececx_backend.c
call fcn.1004ffa0
add esp, 0xc
push 0
push 0xa6
push 0x10
call fcn.100500d0
add esp, 0xc
jmp 0x10138add
mov eax, dword [ebp - 8]
jmp 0x10138aeb
mov eax, dword [ebp - 8]
push eax
call fcn.100b9820
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret