Function at 0x61a130
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x34
call fcn.006db7b0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 2
je 0x61a27f
cmp dword [ebp + 8], 0
je 0x61a200
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
call fcn.005a4c80
add esp, 0x10
cmp dword [ebp - 0x30], 0xffffffff
je 0x61a1a3
call fcn.005798d0
push str.ossl_ecx_key_op
push 0xaa
push str.cryptoececx_backend.c
call fcn.00579920
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x61a55e
cmp dword [ebp + 0x14], 0
jne 0x61a1bc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.005553a0
add esp, 4
mov dword [ebp + 0x14], eax
jmp 0x61a200
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.005553a0
add esp, 4
cmp dword [ebp + 0x14], eax
je 0x61a200
call fcn.005798d0
push str.ossl_ecx_key_op
push 0xb0
push str.cryptoececx_backend.c
call fcn.00579920
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x61a55e
cmp dword [ebp + 0xc], 0
je 0x61a24e
cmp dword [ebp + 0x14], 0
je 0x61a24e
cmp dword [ebp + 0x14], 0x40a
je 0x61a23f
cmp dword [ebp + 0x14], 0x43f
je 0x61a23f
cmp dword [ebp + 0x14], 0x40b
jne 0x61a230
mov dword [ebp - 0xc], 0x38
jmp 0x61a237
mov dword [ebp - 0xc], 0x39
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x61a246
mov dword [ebp - 0x10], 0x20
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x10]
je 0x61a27f
call fcn.005798d0
push str.ossl_ecx_key_op
push 0xb6
push str.cryptoececx_backend.c
call fcn.00579920
add esp, 0xc
push 0
push 0x66
push 0x10
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x61a55e
cmp dword [ebp + 0x14], 0x40a
je 0x61a2b2
cmp dword [ebp + 0x14], 0x43f
je 0x61a2b2
cmp dword [ebp + 0x14], 0x40b
jne 0x61a2a3
mov dword [ebp - 0x14], 1
jmp 0x61a2aa
mov dword [ebp - 0x14], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
jmp 0x61a2d1
cmp dword [ebp + 0x14], 0x40a
jne 0x61a2c4
mov dword [ebp - 0x18], 0
jmp 0x61a2cb
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.005bf5f0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x61a324
call fcn.005798d0
push str.ossl_ecx_key_op
push 0xbd
push str.cryptoececx_backend.c
call fcn.00579920
add esp, 0xc
push 0
push 0xc0100
push 0x10
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x61a55e
mov ecx, dword [ebp - 8]
add ecx, 0xc
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x18], 0
jne 0x61a34c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.006dccc0
add esp, 0xc
jmp 0x61a54b
mov edx, dword [ebp - 8]
push edx
call fcn.005bf530
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x61a393
call fcn.005798d0
push str.ossl_ecx_key_op
push 0xc7
push str.cryptoececx_backend.c
call fcn.00579920
add esp, 0xc
push 0
push 0xc0100
push 0x10
call fcn.00579970
add esp, 0xc
jmp 0x61a550
cmp dword [ebp + 0x18], 2
jne 0x61a4be
cmp dword [ebp + 0x14], 0
je 0x61a4bc
cmp dword [ebp + 0x14], 0x40a
je 0x61a3da
cmp dword [ebp + 0x14], 0x43f
je 0x61a3da
cmp dword [ebp + 0x14], 0x40b
jne 0x61a3cb
mov dword [ebp - 0x20], 0x38
jmp 0x61a3d2
mov dword [ebp - 0x20], 0x39
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x61a3e1
mov dword [ebp - 0x24], 0x20
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0053d070
add esp, 0x10
test eax, eax
jg 0x61a400
jmp 0x61a550
cmp dword [ebp + 0x14], 0x40a
jne 0x61a46e
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
and ecx, 0xf8
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov byte [edx + eax], cl
mov eax, 1
imul ecx, eax, 0x1f
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
and eax, 0x7f
mov ecx, 1
imul edx, ecx, 0x1f
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
mov edx, 1
imul eax, edx, 0x1f
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + eax]
or edx, 0x40
mov eax, 1
imul ecx, eax, 0x1f
mov eax, dword [ebp - 4]
mov byte [eax + ecx], dl
jmp 0x61a4bc
cmp dword [ebp + 0x14], 0x40b
jne 0x61a4bc
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edx]
and ecx, 0xfc
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov byte [edx + eax], cl
mov eax, 1
imul ecx, eax, 0x37
mov edx, dword [ebp - 4]
movzx eax, byte [edx + ecx]
or eax, 0x80
mov ecx, 1
imul edx, ecx, 0x37
mov ecx, dword [ebp - 4]
mov byte [ecx + edx], al
jmp 0x61a50c
cmp dword [ebp + 0x14], 0x40a
je 0x61a4f1
cmp dword [ebp + 0x14], 0x43f
je 0x61a4f1
cmp dword [ebp + 0x14], 0x40b
jne 0x61a4e2
mov dword [ebp - 0x28], 0x38
jmp 0x61a4e9
mov dword [ebp - 0x28], 0x39
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
jmp 0x61a4f8
mov dword [ebp - 0x2c], 0x20
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.006dccc0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0061a570
add esp, 4
test eax, eax
jne 0x61a54b
call fcn.005798d0
push str.ossl_ecx_key_op
push 0xdb
push str.cryptoececx_backend.c
call fcn.00579920
add esp, 0xc
push 0
push 0xa6
push 0x10
call fcn.00579970
add esp, 0xc
jmp 0x61a550
mov eax, dword [ebp - 8]
jmp 0x61a55e
mov ecx, dword [ebp - 8]
push ecx
call fcn.005bf560
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret