Function at 0x1400cd720
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
movsxd rbx, dword [rsp + 0x80]
xor ebp, ebp
cmp dword [rsp + 0x88], 2
mov r15, r9
mov edi, edx
mov r13, rcx
lea r14d, [rbp + 0x20]
je 0x1400cd7d6
test r8, r8
je 0x1400cd7a0
mov r9, r8
lea rdx, [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
call fcn.1400a1c40
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400cd7a0
mov dword [rsp + 0x20], 0x3a
mov ecx, reloc.WS2_32.dll_recv
lea r9, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.14006b9e0
xor eax, eax
jmp 0x1400cd9cd
test r15, r15
je 0x1400cd7cc
cmp edi, 0x40a
je 0x1400cd7c5
cmp edi, 0x43f
je 0x1400cd7c5
cmp edi, 0x40b
mov eax, ebp
setne al
add eax, 0x38
jmp 0x1400cd7c8
mov eax, r14d
cmp ebx, eax
je 0x1400cd7d6
mov dword [rsp + 0x20], 0x40
jmp 0x1400cd77f
mov r8d, 0x45
mov qword [rsp + 0x60], rsi
lea rdx, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
lea ecx, [r8 + 3]
call fcn.14006c350
mov rsi, rax
test rax, rax
jne 0x1400cd820
lea r9, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
mov dword [rsp + 0x20], 0x47
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.14006b9e0
xor eax, eax
jmp 0x1400cd9c8
cmp dword [rsp + 0x88], ebp
jne 0x1400cd83c
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call fcn.1401757c0
jmp 0x1400cd9b6
cmp edi, 0x40a
je 0x1400cd85e
cmp edi, 0x43f
je 0x1400cd85e
cmp edi, 0x40b
mov rcx, rbp
setne cl
add rcx, 0x38
jmp 0x1400cd861
mov rcx, r14
mov r8d, 0x4f
lea rdx, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
call fcn.14006c430
mov qword [rsi + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x1400cd8a1
lea r9, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
mov dword [rsp + 0x20], 0x51
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.14006b9e0
jmp 0x1400cd8f8
cmp dword [rsp + 0x88], 2
jne 0x1400cd93a
cmp edi, 0x40a
je 0x1400cd8d0
cmp edi, 0x43f
je 0x1400cd8d0
cmp edi, 0x40b
mov r14d, ebp
setne r14b
add r14d, 0x38
mov edx, r14d
mov rcx, rbx
call fcn.14006d250
test eax, eax
jg 0x1400cd914
mov r8d, 0x56
lea rdx, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
mov rcx, rbx
call fcn.14006c420
mov qword [rsi + 0x40], rbp
mov r8d, 0x78
lea rdx, str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_ec_ecx_meth.c
mov rcx, rsi
call fcn.14006c070
xor eax, eax
jmp 0x1400cd9c8
cmp edi, 0x40a
jne 0x1400cd929
and byte [rbx], 0xf8
and byte [rbx + 0x1f], 0x3f
or byte [rbx + 0x1f], 0x40
jmp 0x1400cd96b
cmp edi, 0x40b
jne 0x1400cd96b
and byte [rbx], 0xfc
or byte [rbx + 0x37], 0x80
jmp 0x1400cd96b
cmp edi, 0x40a
je 0x1400cd95a
cmp edi, 0x43f
je 0x1400cd95a
cmp edi, 0x40b
setne bpl
add rbp, 0x38
jmp 0x1400cd95d
mov rbp, r14
mov r8, rbp
mov rdx, r15
mov rcx, rbx
call fcn.1401757c0
mov ecx, edi
sub ecx, 0x40a
je 0x1400cd9ab
sub ecx, 1
je 0x1400cd99e
sub ecx, 0x34
je 0x1400cd991
cmp ecx, 1
jne 0x1400cd9b6
mov rdx, rbx
mov rcx, rsi
call fcn.140139dd0
jmp 0x1400cd9b6
mov rdx, rbx
mov rcx, rsi
call fcn.14013a5f0
jmp 0x1400cd9b6
mov rdx, rbx
mov rcx, rsi
call fcn.1401367e0
jmp 0x1400cd9b6
mov rdx, rbx
mov rcx, rsi
call fcn.14013aad0
mov r8, rsi
mov edx, edi
mov rcx, r13
call fcn.140067210
mov eax, 1
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret