Function at 0x140018560
Capabilities:
Encrypt data using openssl rsa

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r12d, r12d
mov rsi, rcx
mov rcx, qword [rcx]
mov rax, rdx
sub rax, rcx
mov r14, r8
mov r9, rdx
mov ebp, r12d
mov r13d, r12d
cmp rax, 1
jge 0x1400185a1
mov eax, 0xffffffa0
add eax, 0xffffc300
jmp 0x140018680
cmp byte [rcx], 0x30
je 0x1400185b5
mov eax, 0xffffff9e
add eax, 0xffffc300
jmp 0x140018680
inc rcx
sub rdx, rcx
mov qword [rsi], rcx
cmp rdx, 1
jl 0x140018592
movzx eax, byte [rcx]
test al, al
js 0x1400185d5
inc rcx
mov edx, eax
mov qword [rsi], rcx
jmp 0x140018618
mov edi, eax
and edi, 0x7f
lea eax, [rdi - 1]
cmp eax, 3
ja 0x1400189b7
mov eax, edi
cmp rdx, rax
jle 0x140018592
lea rax, [rcx + 1]
mov rdx, r12
mov qword [rsi], rax
nop word [rax + rax]
mov rcx, qword [rsi]
shl rdx, 8
movzx eax, byte [rcx]
or rdx, rax
inc rcx
mov qword [rsi], rcx
sub edi, 1
jne 0x140018600
sub r9, rcx
cmp rdx, r9
ja 0x140018592
xor eax, eax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], r15
lea r9, [rsp + 0x20]
lea r15, [rdx + rcx]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
movups xmmword [rsp + 0x20], xmm0
call fcn.14001a0b0
test eax, eax
je 0x140018695
lea ebx, [rax - 0x3a80]
test ebx, ebx
je 0x14001875a
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
cmp qword [0x14005d7e0], r12
lea rdi, [0x14005d7e0]
mov rbp, qword [rsp + 0x50]
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
je 0x1400186d6
cmp qword [rcx + 8], rbx
jne 0x1400186ca
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rbp
call fcn.140051eb0
test eax, eax
je 0x14001871e
add rdi, 0x28
mov rcx, rdi
cmp qword [rdi], r12
jne 0x1400186b2
cmp qword [0x14005d900], r12
lea rdi, [0x14005d900]
mov rcx, rdi
je 0x140018714
nop dword [rax]
cmp qword [rcx + 8], rbx
jne 0x140018708
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rbp
call fcn.140051eb0
test eax, eax
je 0x14001874c
add rdi, 0x28
mov rcx, rdi
cmp qword [rdi], r12
jne 0x1400186f0
mov ebx, 0xffffc380
jmp 0x14001866e
test rdi, rdi
je 0x1400186d6
mov ebp, dword [rdi + 0x20]
cmp ebp, 1
jne 0x14001875a
mov edx, dword [rsp + 0x20]
cmp edx, 5
je 0x140018738
test edx, edx
jne 0x140018742
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x14001875f
mov ebx, 0xffffc580
jmp 0x14001866e
test rdi, rdi
je 0x140018714
mov r13d, dword [rdi + 0x20]
mov ebp, 2
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsi]
mov rax, r15
sub rax, rcx
cmp rax, 1
jge 0x14001877d
mov eax, 0xffffffa0
add eax, 0xffffc500
jmp 0x140018670
cmp byte [rcx], 3
je 0x140018791
mov eax, 0xffffff9e
add eax, 0xffffc500
jmp 0x140018670
inc rcx
mov rdx, r15
sub rdx, rcx
mov qword [rsi], rcx
cmp rdx, 1
jl 0x14001876e
movzx eax, byte [rcx]
test al, al
js 0x1400187b4
inc rcx
mov edx, eax
mov qword [rsi], rcx
jmp 0x1400187f8
mov edi, eax
and edi, 0x7f
lea eax, [rdi - 1]
cmp eax, 3
ja 0x1400189a8
mov eax, edi
cmp rdx, rax
jle 0x14001876e
lea rax, [rcx + 1]
mov rdx, r12
mov qword [rsi], rax
nop word [rax + rax]
mov rcx, qword [rsi]
shl rdx, 8
movzx eax, byte [rcx]
or rdx, rax
inc rcx
mov qword [rsi], rcx
sub edi, 1
jne 0x1400187e0
mov rax, r15
sub rax, rcx
cmp rdx, rax
ja 0x14001876e
test rdx, rdx
jne 0x14001881b
mov eax, 0xffffff98
add eax, 0xffffc500
jmp 0x140018670
cmp byte [rcx], r12b
jne 0x14001880c
lea rax, [rcx + 1]
mov qword [rsi], rax
dec rax
add rax, rdx
cmp rax, r15
je 0x14001883c
mov eax, 0xffffc49a
jmp 0x140018670
mov ecx, ebp
sub ecx, 1
je 0x140018877
sub ecx, 1
je 0x14001886e
sub ecx, 1
je 0x140018865
cmp ecx, 1
je 0x14001885c
mov eax, 0xffffc380
jmp 0x140018670
lea rdi, reloc.WS2_32.dll_connect
jmp 0x14001887e
lea rdi, reloc.WS2_32.dll_closesocket
jmp 0x14001887e
lea rdi, reloc.WS2_32.dll_bind
jmp 0x14001887e
lea rdi, reloc.WS2_32.dll_accept
cmp qword [r14], r12
jne 0x14001899e
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x1400188a5
call rax
mov qword [r14 + 8], rax
test rax, rax
jne 0x1400188a5
mov eax, 0xffffc080
jmp 0x140018670
mov qword [r14], rdi
cmp ebp, 1
jne 0x140018901
movups xmm0, xmmword [r14]
movq rcx, xmm0
movaps xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x1400188cb
mov ecx, dword [rcx]
cmp ecx, ebp
jne 0x1400188cb
mov r12, qword [rsp + 0x28]
mov rdx, qword [rsi]
mov r8, r15
sub r8, rdx
mov rcx, r12
call fcn.14001bd80
mov ebx, eax
test eax, eax
jne 0x1400188ea
mov qword [rsi], r15
jmp 0x14001866e
add eax, 0x6c
cmp eax, 0xc
ja 0x1400188fa
sub ebx, 0x3b00
jmp 0x14001895d
mov ebx, 0xffffc500
jmp 0x140018976
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x140018910
mov ebx, 0xffffc380
jmp 0x140018976
lea eax, [r13 - 9]
test eax, 0xfffffffb
je 0x14001892a
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.1400184c0
jmp 0x140018941
cmp dword [rsp + 0x20], r12d
jne 0x140018971
test rbx, rbx
jne 0x140018971
mov edx, r13d
mov rcx, r14
call fcn.14001bc80
mov ebx, eax
test eax, eax
jne 0x140018976
mov rdx, qword [rsi]
mov r8, r15
sub r8, rdx
mov rcx, r14
call fcn.14001bd30
mov ebx, eax
mov qword [rsi], r15
test ebx, ebx
jne 0x140018976
cmp qword [rsi], r15
je 0x14001866e
mov ebx, 0xffffc49a
jmp 0x140018976
mov ebx, 0xffffc300
mov rax, qword [r14]
test rax, rax
je 0x14001898d
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x14001898d
mov rcx, qword [r14 + 8]
call rdx
mov rdi, r14
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
jmp 0x14001866e
mov eax, 0xffffc180
jmp 0x140018670
mov eax, 0xffffff9c
add eax, 0xffffc500
jmp 0x140018670
mov eax, 0xffffff9c
add eax, 0xffffc300
jmp 0x140018680