Function at 0x140322140
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
mov eax, gethostbyname
call fcn.1403ffe50
sub rsp, rax
xor esi, esi
movsxd r12, r8d
cmp dword [rsp + 0x70], 2
mov ebx, r9d
mov r14, rdx
mov rdi, rcx
je 0x140322270
test rcx, rcx
je 0x1403221d3
mov r9, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
xor r8d, r8d
call fcn.1402a5660
cmp dword [rsp + 0x20], 0xffffffff
je 0x1403221c5
call fcn.14025a6f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xad
lea rcx, str.cryptoececx_backend.c
call fcn.14025a810
xor r8d, r8d
lea edx, [rsi + 0x66]
lea ecx, [rsi + 0x10]
call fcn.14025a910
xor eax, eax
jmp 0x140322312
mov rcx, qword [rdi]
call fcn.140262580
test ebx, ebx
jne 0x1403221fc
mov ebx, eax
test r14, r14
je 0x14032223d
test ebx, ebx
je 0x14032223d
cmp ebx, 0x40a
je 0x140322233
cmp ebx, 0x43f
je 0x140322233
cmp ebx, 0x40b
mov eax, esi
setne al
add eax, 0x38
jmp 0x140322238
cmp ebx, eax
je 0x1403221d3
call fcn.14025a6f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xb3
lea rcx, str.cryptoececx_backend.c
call fcn.14025a810
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x56]
call fcn.14025a910
xor eax, eax
jmp 0x140322312
mov eax, 0x20
cmp r12d, eax
je 0x140322270
call fcn.14025a6f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xb9
lea rcx, str.cryptoececx_backend.c
call fcn.14025a810
xor r8d, r8d
lea edx, [r8 + 0x66]
lea ecx, [rdx - 0x56]
call fcn.14025a910
xor eax, eax
jmp 0x140322312
mov qword [rsp + 0x50], rbp
mov r8d, 1
cmp ebx, 0x40a
je 0x14032229c
cmp ebx, 0x43f
je 0x14032229c
cmp ebx, 0x40b
mov edx, 3
cmove edx, r8d
jmp 0x1403222aa
cmp ebx, 0x40a
mov edx, 2
cmove edx, esi
mov r9, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.1402badf0
mov rbp, rax
test rax, rax
jne 0x1403222f5
call fcn.14025a6f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xc0
lea rcx, str.cryptoececx_backend.c
call fcn.14025a810
xor r8d, r8d
lea ecx, [rbp + 0x10]
mov edx, 0xc0100
call fcn.14025a910
xor eax, eax
jmp 0x14032230d
cmp dword [rsp + 0x70], esi
jne 0x140322326
mov r8, r12
lea rcx, [rax + 0x14]
mov rdx, r14
call fcn.140431380
mov rax, rbp
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
mov rcx, rbp
call fcn.1402bad40
mov rdi, rax
test rax, rax
jne 0x14032235d
call fcn.14025a6f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xca
lea rcx, str.cryptoececx_backend.c
call fcn.14025a810
mov edx, 0xc0100
jmp 0x140322437
cmp dword [rsp + 0x70], 2
jne 0x1403223d2
test ebx, ebx
je 0x140322405
cmp ebx, 0x40a
je 0x14032238c
cmp ebx, 0x43f
je 0x14032238c
cmp ebx, 0x40b
setne sil
add rsi, 0x38
jmp 0x140322391
mov esi, 0x20
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
call fcn.140275450
test eax, eax
jle 0x140322443
cmp ebx, 0x40a
jne 0x1403223c1
and byte [rdi], 0xf8
and byte [rdi + 0x1f], 0x3f
or byte [rdi + 0x1f], 0x40
jmp 0x140322405
cmp ebx, 0x40b
jne 0x140322405
and byte [rdi], 0xfc
or byte [rdi + 0x37], 0x80
jmp 0x140322405
cmp ebx, 0x40a
je 0x1403223f2
cmp ebx, 0x43f
je 0x1403223f2
cmp ebx, 0x40b
setne sil
add rsi, 0x38
jmp 0x1403223f7
mov esi, 0x20
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.140431380
mov rcx, rbp
call fcn.140322460
test eax, eax
jne 0x14032230a
call fcn.14025a6f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xde
lea rcx, str.cryptoececx_backend.c
call fcn.14025a810
mov edx, 0xa6
xor r8d, r8d
lea ecx, [r8 + 0x10]
call fcn.14025a910
mov rcx, rbp
call fcn.1402bad70
xor eax, eax
jmp 0x14032230d