Function at 0x14030bc80
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.140473cc0
sub rsp, rax
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x90], 2
je 0x14030be21
cmp qword [rsp + 0x70], 0
je 0x14030bd81
mov r9, qword [rsp + 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x54]
xor ecx, ecx
call fcn.140308050
cmp dword [rsp + 0x54], 0xffffffff
je 0x14030bd15
call fcn.1402506f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xa9
lea rcx, str.cryptoececx_backend.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402507b0
xor eax, eax
jmp 0x14030c191
cmp dword [rsp + 0x88], 0
jne 0x14030bd35
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.14024d040
mov dword [rsp + 0x88], eax
jmp 0x14030bd81
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.14024d040
cmp dword [rsp + 0x88], eax
je 0x14030bd81
call fcn.1402506f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xaf
lea rcx, str.cryptoececx_backend.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402507b0
xor eax, eax
jmp 0x14030c191
cmp qword [rsp + 0x78], 0
je 0x14030bdeb
cmp dword [rsp + 0x88], 0
je 0x14030bdeb
cmp dword [rsp + 0x88], 0x40a
je 0x14030bdd6
cmp dword [rsp + 0x88], 0x43f
je 0x14030bdd6
cmp dword [rsp + 0x88], 0x40b
jne 0x14030bdc4
mov dword [rsp + 0x30], reloc.WS2_32.dll_getservbyport
jmp 0x14030bdcc
mov dword [rsp + 0x30], reloc.WS2_32.dll_gethostname
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
jmp 0x14030bdde
mov dword [rsp + 0x34], reloc.WLDAP32.dll_Ordinal_32
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x80], eax
je 0x14030be21
call fcn.1402506f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xb5
lea rcx, str.cryptoececx_backend.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x66
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402507b0
xor eax, eax
jmp 0x14030c191
cmp dword [rsp + 0x88], 0x40a
je 0x14030be64
cmp dword [rsp + 0x88], 0x43f
je 0x14030be64
cmp dword [rsp + 0x88], 0x40b
jne 0x14030be52
mov dword [rsp + 0x38], 1
jmp 0x14030be5a
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
jmp 0x14030be8b
cmp dword [rsp + 0x88], 0x40a
jne 0x14030be7b
mov dword [rsp + 0x3c], 0
jmp 0x14030be83
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.14030b5c0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14030beed
call fcn.1402506f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xbc
lea rcx, str.cryptoececx_backend.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x80010
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402507b0
xor eax, eax
jmp 0x14030c191
mov rax, qword [rsp + 0x28]
add rax, 0x14
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x90], 0
jne 0x14030bf24
movsxd rax, dword [rsp + 0x80]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14030c17e
mov rcx, qword [rsp + 0x28]
call fcn.14030b490
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14030bf6f
call fcn.1402506f0
lea r8, str.ossl_ecx_key_op
mov edx, Ordinal_200
lea rcx, str.cryptoececx_backend.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x80010
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402507b0
jmp 0x14030c185
cmp dword [rsp + 0x90], 2
jne 0x14030c0dd
cmp dword [rsp + 0x88], 0
je 0x14030c0db
cmp dword [rsp + 0x88], 0x40a
je 0x14030bfce
cmp dword [rsp + 0x88], 0x43f
je 0x14030bfce
cmp dword [rsp + 0x88], 0x40b
jne 0x14030bfbc
mov dword [rsp + 0x44], reloc.WS2_32.dll_getservbyport
jmp 0x14030bfc4
mov dword [rsp + 0x44], reloc.WS2_32.dll_gethostname
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
jmp 0x14030bfd6
mov dword [rsp + 0x48], reloc.WLDAP32.dll_Ordinal_32
movsxd rax, dword [rsp + 0x48]
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
call fcn.140251620
test eax, eax
jg 0x14030bffc
jmp 0x14030c185
cmp dword [rsp + 0x88], 0x40a
jne 0x14030c07f
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 0x14030c0db
cmp dword [rsp + 0x88], 0x40b
jne 0x14030c0db
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 0x14030c13f
cmp dword [rsp + 0x88], 0x40a
je 0x14030c120
cmp dword [rsp + 0x88], 0x43f
je 0x14030c120
cmp dword [rsp + 0x88], 0x40b
jne 0x14030c10e
mov dword [rsp + 0x4c], reloc.WS2_32.dll_getservbyport
jmp 0x14030c116
mov dword [rsp + 0x4c], reloc.WS2_32.dll_gethostname
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
jmp 0x14030c128
mov dword [rsp + 0x50], reloc.WLDAP32.dll_Ordinal_32
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.14030c1a0
test eax, eax
jne 0x14030c17e
call fcn.1402506f0
lea r8, str.ossl_ecx_key_op
mov edx, 0xda
lea rcx, str.cryptoececx_backend.c
call fcn.140250740
xor r8d, r8d
mov edx, 0xa6
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402507b0
jmp 0x14030c185
mov rax, qword [rsp + 0x28]
jmp 0x14030c191
mov rcx, qword [rsp + 0x28]
call fcn.14030b4e0
xor eax, eax
add rsp, 0x68
ret