Function at 0x14020ad70
Capabilities:
Encrypt data using curve25519
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x68
call fcn.14036a3f0
sub rsp, rax
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x90], 2
je 0x14020af11
cmp qword [rsp + 0x70], 0
je 0x14020ae71
mov r9, qword [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x54]
xor ecx, ecx
call fcn.1402070e0
cmp dword [rsp + 0x54], 0xffffffff
je 0x14020ae05
call fcn.140141f60
lea r8, str.ossl_ecx_key_op
mov edx, 0xa9
lea rcx, str.cryptoececx_backend.c
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.140142020
xor eax, eax
jmp 0x14020b281
cmp dword [rsp + 0x88], 0
jne 0x14020ae25
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.14013e760
mov dword [rsp + 0x88], eax
jmp 0x14020ae71
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.14013e760
cmp dword [rsp + 0x88], eax
je 0x14020ae71
call fcn.140141f60
lea r8, str.ossl_ecx_key_op
mov edx, 0xaf
lea rcx, str.cryptoececx_backend.c
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.140142020
xor eax, eax
jmp 0x14020b281
cmp qword [rsp + 0x78], 0
je 0x14020aedb
cmp dword [rsp + 0x88], 0
je 0x14020aedb
cmp dword [rsp + 0x88], 0x40a
je 0x14020aec6
cmp dword [rsp + 0x88], 0x43f
je 0x14020aec6
cmp dword [rsp + 0x88], 0x40b
jne 0x14020aeb4
mov dword [rsp + 0x30], reloc.WS2_32.dll_getservbyport
jmp 0x14020aebc
mov dword [rsp + 0x30], 0x39
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
jmp 0x14020aece
mov dword [rsp + 0x34], 0x20
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x80], eax
je 0x14020af11
call fcn.140141f60
lea r8, str.ossl_ecx_key_op
mov edx, 0xb5
lea rcx, str.cryptoececx_backend.c
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.140142020
xor eax, eax
jmp 0x14020b281
cmp dword [rsp + 0x88], 0x40a
je 0x14020af54
cmp dword [rsp + 0x88], 0x43f
je 0x14020af54
cmp dword [rsp + 0x88], 0x40b
jne 0x14020af42
mov dword [rsp + 0x38], 1
jmp 0x14020af4a
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
jmp 0x14020af7b
cmp dword [rsp + 0x88], 0x40a
jne 0x14020af6b
mov dword [rsp + 0x3c], 0
jmp 0x14020af73
mov dword [rsp + 0x3c], 2
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
mov r9, qword [rsp + 0xa0]
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
call fcn.14020a6b0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14020afdd
call fcn.140141f60
lea r8, str.ossl_ecx_key_op
mov edx, 0xbc
lea rcx, str.cryptoececx_backend.c
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x80010
mov ecx, reloc.WS2_32.dll_recv
call fcn.140142020
xor eax, eax
jmp 0x14020b281
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x90], 0
jne 0x14020b014
movsxd rax, dword [rsp + 0x80]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14020b26e
mov rcx, qword [rsp + 0x28]
call fcn.14020a580
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14020b05f
call fcn.140141f60
lea r8, str.ossl_ecx_key_op
mov edx, 0xc6
lea rcx, str.cryptoececx_backend.c
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x80010
mov ecx, reloc.WS2_32.dll_recv
call fcn.140142020
jmp 0x14020b275
cmp dword [rsp + 0x90], 2
jne 0x14020b1cd
cmp dword [rsp + 0x88], 0
je 0x14020b1cb
cmp dword [rsp + 0x88], 0x40a
je 0x14020b0be
cmp dword [rsp + 0x88], 0x43f
je 0x14020b0be
cmp dword [rsp + 0x88], 0x40b
jne 0x14020b0ac
mov dword [rsp + 0x44], reloc.WS2_32.dll_getservbyport
jmp 0x14020b0b4
mov dword [rsp + 0x44], 0x39
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
jmp 0x14020b0c6
mov dword [rsp + 0x48], 0x20
movsxd rax, dword [rsp + 0x48]
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
call fcn.1401313e0
test eax, eax
jg 0x14020b0ec
jmp 0x14020b275
cmp dword [rsp + 0x88], 0x40a
jne 0x14020b16f
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
and eax, 0xf8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 0x1f
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
and eax, 0x7f
mov ecx, 1
imul rcx, rcx, 0x1f
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 0x1f
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
or eax, 0x40
mov ecx, 1
imul rcx, rcx, 0x1f
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x14020b1cb
cmp dword [rsp + 0x88], 0x40b
jne 0x14020b1cb
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
and eax, 0xfc
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 0x37
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
bts eax, 7
mov ecx, 1
imul rcx, rcx, 0x37
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x14020b22f
cmp dword [rsp + 0x88], 0x40a
je 0x14020b210
cmp dword [rsp + 0x88], 0x43f
je 0x14020b210
cmp dword [rsp + 0x88], 0x40b
jne 0x14020b1fe
mov dword [rsp + 0x4c], reloc.WS2_32.dll_getservbyport
jmp 0x14020b206
mov dword [rsp + 0x4c], 0x39
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
jmp 0x14020b218
mov dword [rsp + 0x50], 0x20
movsxd rax, dword [rsp + 0x50]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x28]
call fcn.14020b290
test eax, eax
jne 0x14020b26e
call fcn.140141f60
lea r8, str.ossl_ecx_key_op
mov edx, 0xda
lea rcx, str.cryptoececx_backend.c
call fcn.140141fb0
xor r8d, r8d
mov edx, 0xa6
mov ecx, reloc.WS2_32.dll_recv
call fcn.140142020
jmp 0x14020b275
mov rax, qword [rsp + 0x28]
jmp 0x14020b281
mov rcx, qword [rsp + 0x28]
call fcn.14020a5d0
xor eax, eax
add rsp, 0x68
ret