Function at 0x140018640
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 0x140018681
mov eax, 0xffffffa0
add eax, 0xffffc300
jmp 0x140018760
cmp byte [rcx], 0x30
je 0x140018695
mov eax, 0xffffff9e
add eax, 0xffffc300
jmp 0x140018760
inc rcx
sub rdx, rcx
mov qword [rsi], rcx
cmp rdx, 1
jl 0x140018672
movzx eax, byte [rcx]
test al, al
js 0x1400186b5
inc rcx
mov edx, eax
mov qword [rsi], rcx
jmp 0x1400186f8
mov edi, eax
and edi, 0x7f
lea eax, [rdi - 1]
cmp eax, 3
ja 0x140018a97
mov eax, edi
cmp rdx, rax
jle 0x140018672
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 0x1400186e0
sub r9, rcx
cmp rdx, r9
ja 0x140018672
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.14001a190
test eax, eax
je 0x140018775
lea ebx, [rax - 0x3a80]
test ebx, ebx
je 0x14001883a
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 [0x14005d770], r12
lea rdi, [0x14005d770]
mov rbp, qword [rsp + 0x50]
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
je 0x1400187b6
cmp qword [rcx + 8], rbx
jne 0x1400187aa
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rbp
call fcn.140051e50
test eax, eax
je 0x1400187fe
add rdi, 0x28
mov rcx, rdi
cmp qword [rdi], r12
jne 0x140018792
cmp qword [0x14005d890], r12
lea rdi, [0x14005d890]
mov rcx, rdi
je 0x1400187f4
nop dword [rax]
cmp qword [rcx + 8], rbx
jne 0x1400187e8
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rbp
call fcn.140051e50
test eax, eax
je 0x14001882c
add rdi, 0x28
mov rcx, rdi
cmp qword [rdi], r12
jne 0x1400187d0
mov ebx, 0xffffc380
jmp 0x14001874e
test rdi, rdi
je 0x1400187b6
mov ebp, dword [rdi + 0x20]
cmp ebp, 1
jne 0x14001883a
mov edx, dword [rsp + 0x20]
cmp edx, 5
je 0x140018818
test edx, edx
jne 0x140018822
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x14001883f
mov ebx, 0xffffc580
jmp 0x14001874e
test rdi, rdi
je 0x1400187f4
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 0x14001885d
mov eax, 0xffffffa0
add eax, 0xffffc500
jmp 0x140018750
cmp byte [rcx], 3
je 0x140018871
mov eax, 0xffffff9e
add eax, 0xffffc500
jmp 0x140018750
inc rcx
mov rdx, r15
sub rdx, rcx
mov qword [rsi], rcx
cmp rdx, 1
jl 0x14001884e
movzx eax, byte [rcx]
test al, al
js 0x140018894
inc rcx
mov edx, eax
mov qword [rsi], rcx
jmp 0x1400188d8
mov edi, eax
and edi, 0x7f
lea eax, [rdi - 1]
cmp eax, 3
ja 0x140018a88
mov eax, edi
cmp rdx, rax
jle 0x14001884e
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 0x1400188c0
mov rax, r15
sub rax, rcx
cmp rdx, rax
ja 0x14001884e
test rdx, rdx
jne 0x1400188fb
mov eax, 0xffffff98
add eax, 0xffffc500
jmp 0x140018750
cmp byte [rcx], r12b
jne 0x1400188ec
lea rax, [rcx + 1]
mov qword [rsi], rax
dec rax
add rax, rdx
cmp rax, r15
je 0x14001891c
mov eax, 0xffffc49a
jmp 0x140018750
mov ecx, ebp
sub ecx, 1
je 0x140018957
sub ecx, 1
je 0x14001894e
sub ecx, 1
je 0x140018945
cmp ecx, 1
je 0x14001893c
mov eax, 0xffffc380
jmp 0x140018750
lea rdi, reloc.WS2_32.dll_connect
jmp 0x14001895e
lea rdi, reloc.WS2_32.dll_closesocket
jmp 0x14001895e
lea rdi, reloc.WS2_32.dll_bind
jmp 0x14001895e
lea rdi, reloc.WS2_32.dll_accept
cmp qword [r14], r12
jne 0x140018a7e
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x140018985
call rax
mov qword [r14 + 8], rax
test rax, rax
jne 0x140018985
mov eax, 0xffffc080
jmp 0x140018750
mov qword [r14], rdi
cmp ebp, 1
jne 0x1400189e1
movups xmm0, xmmword [r14]
movq rcx, xmm0
movaps xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x1400189ab
mov ecx, dword [rcx]
cmp ecx, ebp
jne 0x1400189ab
mov r12, qword [rsp + 0x28]
mov rdx, qword [rsi]
mov r8, r15
sub r8, rdx
mov rcx, r12
call fcn.14001be60
mov ebx, eax
test eax, eax
jne 0x1400189ca
mov qword [rsi], r15
jmp 0x14001874e
add eax, 0x6c
cmp eax, 0xc
ja 0x1400189da
sub ebx, 0x3b00
jmp 0x140018a3d
mov ebx, 0xffffc500
jmp 0x140018a56
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x1400189f0
mov ebx, 0xffffc380
jmp 0x140018a56
lea eax, [r13 - 9]
test eax, 0xfffffffb
je 0x140018a0a
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.1400185a0
jmp 0x140018a21
cmp dword [rsp + 0x20], r12d
jne 0x140018a51
test rbx, rbx
jne 0x140018a51
mov edx, r13d
mov rcx, r14
call fcn.14001bd60
mov ebx, eax
test eax, eax
jne 0x140018a56
mov rdx, qword [rsi]
mov r8, r15
sub r8, rdx
mov rcx, r14
call fcn.14001be10
mov ebx, eax
mov qword [rsi], r15
test ebx, ebx
jne 0x140018a56
cmp qword [rsi], r15
je 0x14001874e
mov ebx, 0xffffc49a
jmp 0x140018a56
mov ebx, 0xffffc300
mov rax, qword [r14]
test rax, rax
je 0x140018a6d
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x140018a6d
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 0x14001874e
mov eax, 0xffffc180
jmp 0x140018750
mov eax, 0xffffff9c
add eax, 0xffffc500
jmp 0x140018750
mov eax, 0xffffff9c
add eax, 0xffffc300
jmp 0x140018760