Function at 0x1401b5d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x44]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x9c]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
sub eax, dword [rcx + 0x94]
mov dword [rsp + 0x30], eax
xor eax, eax
test eax, eax
je 0x1401b5de2
cmp dword [rsp + 0x30], 0
jne 0x1401b5dd1
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x94], 0
jne 0x1401b5dd1
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 0
jne 0x1401b5dd1
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
jmp 0x1401b5de2
cmp dword [rsp + 0x30], 0xffffffff
jne 0x1401b5de2
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x44]
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + rax - 0x106]
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + 0x94], eax
jb 0x1401b5f87
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
add rcx, qword [rdx + 0x50]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x50]
call sub.MSVCR120D.dll_memcpy
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 0x98]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x98], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 0x94]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x94], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 0x84]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x84], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x74]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x68]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x24], eax
jb 0x1401b5ed7
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x1401b5edf
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x40]
mov word [rax], cx
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1401b5ea1
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x60]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x24], eax
jb 0x1401b5f51
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x1401b5f59
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x44]
mov word [rax], cx
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1401b5f1b
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x1401b5f9a
jmp 0x1401b61d7
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x9c]
add rax, rcx
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call fcn.1401b89b0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x9c]
add eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x9c], eax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 3
jb 0x1401b6073
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x50]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x70], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x80]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
movzx ecx, al
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x70]
shl eax, cl
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x94]
inc ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x50]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
mov rcx, qword [rsp + 0x60]
and eax, dword [rcx + 0x7c]
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x70], eax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x9c], 0x106
jae 0x1401b6096
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
cmp dword [rax + 8], 0
jne 0x1401b5d7a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x58]
cmp dword [rax + 0x1718], ecx
jae 0x1401b61d7
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x94]
mov rcx, qword [rsp + 0x60]
add eax, dword [rcx + 0x9c]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x38]
cmp dword [rax + 0x1718], ecx
jae 0x1401b6135
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x102
jbe 0x1401b60fe
mov dword [rsp + 0x3c], 0x102
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x60]
add rcx, qword [rdx + 0x50]
mov r8d, eax
xor edx, edx
call sub.MSVCR120D.dll_memset
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x1718], eax
jmp 0x1401b61d7
mov eax, dword [rsp + 0x38]
add eax, 0x102
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + 0x1718], eax
jae 0x1401b61d7
mov eax, dword [rsp + 0x38]
add eax, 0x102
mov rcx, qword [rsp + 0x60]
sub eax, dword [rcx + 0x1718]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1718]
mov eax, dword [rax + 0x58]
sub eax, ecx
cmp dword [rsp + 0x3c], eax
jbe 0x1401b619b
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1718]
mov eax, dword [rax + 0x58]
sub eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x1718]
mov rdx, qword [rsp + 0x60]
add rcx, qword [rdx + 0x50]
mov r8d, eax
xor edx, edx
call sub.MSVCR120D.dll_memset
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x1718]
add eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x1718], eax
add rsp, 0x50
pop rdi
ret