Function at 0x140147020
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.1402b4ee0
sub rsp, rax
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x90], 2
je 0x1401471c1
cmp qword [rsp + 0x70], 0
je 0x140147121
mov r9, qword [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x54]
xor ecx, ecx
call fcn.1400c3cd0
cmp dword [rsp + 0x54], 0xffffffff
je 0x1401470b5
call fcn.1400a1d90
lea r8, str.ossl_ecx_key_op
mov edx, 0xaa
lea rcx, str.cryptoececx_backend.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a1e50
xor eax, eax
jmp 0x140147531
cmp dword [rsp + 0x88], 0
jne 0x1401470d5
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1400977b0
mov dword [rsp + 0x88], eax
jmp 0x140147121
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1400977b0
cmp dword [rsp + 0x88], eax
je 0x140147121
call fcn.1400a1d90
lea r8, str.ossl_ecx_key_op
mov edx, 0xb0
lea rcx, str.cryptoececx_backend.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a1e50
xor eax, eax
jmp 0x140147531
cmp qword [rsp + 0x78], 0
je 0x14014718b
cmp dword [rsp + 0x88], 0
je 0x14014718b
cmp dword [rsp + 0x88], 0x40a
je 0x140147176
cmp dword [rsp + 0x88], 0x43f
je 0x140147176
cmp dword [rsp + 0x88], 0x40b
jne 0x140147164
mov dword [rsp + 0x30], reloc.WS2_32.dll_getservbyport
jmp 0x14014716c
mov dword [rsp + 0x30], 0x39
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
jmp 0x14014717e
mov dword [rsp + 0x34], 0x20
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x80], eax
je 0x1401471c1
call fcn.1400a1d90
lea r8, str.ossl_ecx_key_op
mov edx, 0xb6
lea rcx, str.cryptoececx_backend.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a1e50
xor eax, eax
jmp 0x140147531
cmp dword [rsp + 0x88], 0x40a
je 0x140147204
cmp dword [rsp + 0x88], 0x43f
je 0x140147204
cmp dword [rsp + 0x88], 0x40b
jne 0x1401471f2
mov dword [rsp + 0x38], 1
jmp 0x1401471fa
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
jmp 0x14014722b
cmp dword [rsp + 0x88], 0x40a
jne 0x14014721b
mov dword [rsp + 0x3c], 0
jmp 0x140147223
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.1400cf900
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14014728d
call fcn.1400a1d90
lea r8, str.ossl_ecx_key_op
mov edx, 0xbd
lea rcx, str.cryptoececx_backend.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a1e50
xor eax, eax
jmp 0x140147531
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x90], 0
jne 0x1401472c4
movsxd rax, dword [rsp + 0x80]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14014751e
mov rcx, qword [rsp + 0x28]
call fcn.1400cf800
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14014730f
call fcn.1400a1d90
lea r8, str.ossl_ecx_key_op
mov edx, 0xc7
lea rcx, str.cryptoececx_backend.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a1e50
jmp 0x140147525
cmp dword [rsp + 0x90], 2
jne 0x14014747d
cmp dword [rsp + 0x88], 0
je 0x14014747b
cmp dword [rsp + 0x88], 0x40a
je 0x14014736e
cmp dword [rsp + 0x88], 0x43f
je 0x14014736e
cmp dword [rsp + 0x88], 0x40b
jne 0x14014735c
mov dword [rsp + 0x44], reloc.WS2_32.dll_getservbyport
jmp 0x140147364
mov dword [rsp + 0x44], 0x39
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
jmp 0x140147376
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.140092780
test eax, eax
jg 0x14014739c
jmp 0x140147525
cmp dword [rsp + 0x88], 0x40a
jne 0x14014741f
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 0x14014747b
cmp dword [rsp + 0x88], 0x40b
jne 0x14014747b
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 0x1401474df
cmp dword [rsp + 0x88], 0x40a
je 0x1401474c0
cmp dword [rsp + 0x88], 0x43f
je 0x1401474c0
cmp dword [rsp + 0x88], 0x40b
jne 0x1401474ae
mov dword [rsp + 0x4c], reloc.WS2_32.dll_getservbyport
jmp 0x1401474b6
mov dword [rsp + 0x4c], 0x39
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
jmp 0x1401474c8
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.140147540
test eax, eax
jne 0x14014751e
call fcn.1400a1d90
lea r8, str.ossl_ecx_key_op
mov edx, 0xdb
lea rcx, str.cryptoececx_backend.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xa6
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a1e50
jmp 0x140147525
mov rax, qword [rsp + 0x28]
jmp 0x140147531
mov rcx, qword [rsp + 0x28]
call fcn.1400cf850
xor eax, eax
add rsp, 0x68
ret