Function at 0x1800d6340
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r13
push r15
mov eax, 0x40
call fcn.180188f30
sub rsp, rax
movsxd rbx, dword [rsp + 0x80]
xor ebp, ebp
cmp dword [rsp + 0x88], 2
mov r13, r9
mov edi, edx
mov r15, rcx
lea r12d, [rax - 0x20]
je 0x1800d63ff
test r8, r8
je 0x1800d63c9
mov r9, r8
lea rdx, [rsp + 0x30]
xor ecx, ecx
xor r8d, r8d
call fcn.180110ee0
cmp dword [rsp + 0x30], 0xffffffff
je 0x1800d63c9
mov dword [rsp + 0x20], 0x3b
mov ecx, reloc.WS2_32.dll_recv
lea r9, str.cryptoececx_meth.c
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.1800b8900
xor eax, eax
jmp 0x1800d65f4
test r13, r13
je 0x1800d63f5
cmp edi, 0x40a
je 0x1800d63ee
cmp edi, 0x43f
je 0x1800d63ee
cmp edi, 0x40b
mov eax, ebp
setne al
add eax, 0x38
jmp 0x1800d63f1
mov eax, r12d
cmp ebx, eax
je 0x1800d63ff
mov dword [rsp + 0x20], 0x41
jmp 0x1800d63a8
mov r8d, 0x46
lea rdx, str.cryptoececx_meth.c
mov qword [rsp + 0x60], rsi
lea ecx, [r8 + 2]
call fcn.1800b7230
mov rsi, rax
test rax, rax
jne 0x1800d6449
lea r9, str.cryptoececx_meth.c
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
mov edx, 0x10a
mov dword [rsp + 0x20], 0x48
call fcn.1800b8900
xor eax, eax
jmp 0x1800d65ef
cmp dword [rsp + 0x88], ebp
jne 0x1800d6465
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.180183a80
jmp 0x1800d65dd
cmp edi, 0x40a
je 0x1800d6485
cmp edi, 0x43f
je 0x1800d6485
cmp edi, 0x40b
mov eax, ebp
setne al
add eax, 0x38
jmp 0x1800d6488
mov eax, r12d
lea rdx, str.cryptoececx_meth.c
movsxd rcx, eax
mov r8d, 0x50
call fcn.1800c55d0
mov rbx, rax
mov qword [rsi + 0x40], rax
test rax, rax
jne 0x1800d64cb
lea r9, str.cryptoececx_meth.c
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
mov edx, 0x10a
mov dword [rsp + 0x20], 0x52
call fcn.1800b8900
jmp 0x1800d6522
cmp dword [rsp + 0x88], 2
jne 0x1800d6564
cmp edi, 0x40a
je 0x1800d64fa
cmp edi, 0x43f
je 0x1800d64fa
cmp edi, 0x40b
mov r12d, ebp
setne r12b
add r12d, 0x38
mov edx, r12d
mov rcx, rax
call fcn.1800ba9a0
test eax, eax
jg 0x1800d653e
lea rdx, str.cryptoececx_meth.c
mov r8d, 0x57
mov rcx, rbx
call fcn.1800c5610
mov qword [rsi + 0x40], rbp
lea rdx, str.cryptoececx_meth.c
mov r8d, 0x79
mov rcx, rsi
call fcn.1800b72b0
xor eax, eax
jmp 0x1800d65ef
cmp edi, 0x40a
jne 0x1800d6553
and byte [rbx], 0xf8
and byte [rbx + 0x1f], 0x3f
or byte [rbx + 0x1f], 0x40
jmp 0x1800d6594
cmp edi, 0x40b
jne 0x1800d6594
and byte [rbx], 0xfc
or byte [rbx + 0x37], 0x80
jmp 0x1800d6594
cmp edi, 0x40a
je 0x1800d6583
cmp edi, 0x43f
je 0x1800d6583
cmp edi, 0x40b
setne bpl
add ebp, 0x38
jmp 0x1800d6586
mov ebp, r12d
movsxd r8, ebp
mov rdx, r13
mov rcx, rax
call fcn.180183a80
mov ecx, edi
sub ecx, 0x40a
je 0x1800d65d2
dec ecx
je 0x1800d65c5
sub ecx, 0x34
je 0x1800d65b8
dec ecx
jne 0x1800d65dd
mov rdx, rbx
mov rcx, rsi
call fcn.180110d80
jmp 0x1800d65dd
mov rdx, rbx
mov rcx, rsi
call fcn.18010d600
jmp 0x1800d65dd
mov rdx, rbx
mov rcx, rsi
call fcn.1801103f0
jmp 0x1800d65dd
mov rdx, rbx
mov rcx, rsi
call fcn.18010d740
mov r8, rsi
mov edx, edi
mov rcx, r15
call fcn.1800de910
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 r13
pop r12
ret