Function at 0x140017f90
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
xor r15d, r15d
mov rsi, rcx
mov rcx, qword [rcx]
mov rax, rdx
sub rax, rcx
mov r14, r8
mov edi, r15d
cmp rax, 1
jge 0x140017fcb
mov eax, 0xffffffa0
add eax, 0xffffc300
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
ret
cmp byte [rcx], 0x30
je 0x140017fe5
mov eax, 0xffffff9e
add eax, 0xffffc300
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
ret
lea rax, [rcx + 1]
mov rcx, rsi
lea r8, [rsp + 0x90]
mov qword [rsi], rax
call fcn.140016000
test eax, eax
je 0x140018010
add eax, 0xffffc300
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x98], rbx
lea r9, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x60], r12
lea r8, [rsp + 0x20]
mov r12, qword [rsp + 0x90]
xor eax, eax
add r12, qword [rsi]
mov rcx, rsi
mov rdx, r12
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x40], xmm0
call fcn.140016320
test eax, eax
je 0x140018081
lea ebx, [rax - 0x3a80]
test ebx, ebx
jne 0x1400180c9
mov rcx, qword [rsi]
mov rax, r12
sub rax, rcx
cmp rax, 1
jge 0x14001811b
mov eax, 0xffffffa0
add eax, 0xffffc500
jmp 0x1400180cb
cmp qword [0x1400a5520], rdi
lea rbx, [0x1400a5520]
mov rcx, rbx
je 0x1400180c4
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
nop
cmp qword [rcx + 8], rdi
jne 0x1400180b8
mov rcx, qword [rcx]
mov r8, rdi
mov rdx, rbp
call fcn.140080030
test eax, eax
je 0x1400180eb
add rbx, 0x28
mov rcx, rbx
cmp qword [rbx], r15
jne 0x1400180a0
mov ebx, 0xffffc380
mov eax, ebx
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov r12, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
ret
test rbx, rbx
je 0x1400180c4
mov edi, dword [rbx + 0x20]
cmp edi, 1
jne 0x140018062
mov eax, dword [rsp + 0x40]
cmp eax, 5
je 0x140018109
test eax, eax
jne 0x140018114
cmp qword [rsp + 0x48], r15
je 0x140018062
mov ebx, 0xffffc580
jmp 0x1400180c9
cmp byte [rcx], 3
je 0x14001812c
mov eax, 0xffffff9e
add eax, 0xffffc500
jmp 0x1400180cb
lea rax, [rcx + 1]
mov rdx, r12
mov rcx, rsi
mov qword [rsi], rax
lea r8, [rsp + 0x90]
call fcn.140016000
test eax, eax
jne 0x140018168
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140018163
lea rcx, [rax - 1]
mov rax, qword [rsi]
cmp byte [rax], r15b
je 0x140018172
mov eax, 0xffffff98
add eax, 0xffffc500
jmp 0x1400180cb
inc rax
mov qword [rsi], rax
add rax, rcx
cmp rax, r12
je 0x14001818a
mov eax, 0xffffc49a
jmp 0x1400180cb
mov ecx, edi
sub ecx, 1
je 0x1400181c5
sub ecx, 1
je 0x1400181bc
sub ecx, 1
je 0x1400181b3
cmp ecx, 1
je 0x1400181aa
mov eax, 0xffffc380
jmp 0x1400180cb
lea rbx, reloc.WS2_32.dll_connect
jmp 0x1400181cc
lea rbx, reloc.WS2_32.dll_closesocket
jmp 0x1400181cc
lea rbx, reloc.WS2_32.dll_bind
jmp 0x1400181cc
lea rbx, reloc.WS2_32.dll_accept
cmp qword [r14], r15
jne 0x1400182e5
call qword [rbx + 0x48]
mov qword [r14 + 8], rax
test rax, rax
jne 0x1400181eb
mov eax, 0xffffc080
jmp 0x1400180cb
mov qword [r14], rbx
cmp edi, 1
jne 0x140018224
movups xmm0, xmmword [r14]
movq rcx, xmm0
movaps xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x140018211
mov ecx, dword [rcx]
cmp ecx, edi
jne 0x140018211
mov r15, qword [rsp + 0x28]
mov r8, r15
mov rdx, r12
mov rcx, rsi
call fcn.140017d60
jmp 0x1400182ab
lea eax, [rdi - 2]
cmp eax, 1
jbe 0x140018236
mov ebx, 0xffffc380
jmp 0x1400182bf
movups xmm0, xmmword [r14]
movq rcx, xmm0
movaps xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x140018261
mov ecx, dword [rcx]
sub ecx, 2
je 0x14001825a
sub ecx, 1
je 0x14001825a
cmp ecx, 1
jne 0x140018261
mov rdx, qword [rsp + 0x28]
jmp 0x140018264
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140017c40
mov ebx, eax
test eax, eax
jne 0x1400182bf
movups xmm0, xmmword [r14]
movq rcx, xmm0
movaps xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x14001829d
mov ecx, dword [rcx]
sub ecx, 2
je 0x140018298
sub ecx, 1
je 0x140018298
cmp ecx, 1
jne 0x14001829d
mov r15, qword [rsp + 0x28]
mov r8, r15
mov rdx, r12
mov rcx, rsi
call fcn.140017d00
mov ebx, eax
test eax, eax
jne 0x1400182bf
cmp qword [rsi], r12
je 0x1400180c9
mov ebx, 0xffffc49a
mov rax, qword [r14]
test rax, rax
je 0x1400182ce
mov rcx, qword [r14 + 8]
call qword [rax + 0x50]
mov rax, qword [fcn.140080540]
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 0x10]
call rax
jmp 0x1400180c9
mov eax, 0xffffc180
jmp 0x1400180cb