Function at 0x14005f080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rdx
mov rsi, rcx
cmp rdx, 0x40
jbe 0x14005f0b5
lea rcx, [rdx - 0x41]
and rcx, 0xfffffffffffff800
jmp 0x14005f0b7
xor ecx, ecx
lea rax, [rcx - 0x800]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
lea rax, [rcx - 0x1000]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0xb8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x14005f321
mov qword [rsp + 0x68], rbx
nop dword [rax]
mov rcx, qword [rdi + 0x20]
lea rax, [rcx + 0x2d0]
cmp rax, rbp
jae 0x14005f31c
lea rax, [rsp + 0x20]
nop dword [rax]
cmp qword [rax], rcx
je 0x14005f125
add rax, 8
lea rdx, [rsp + 0x38]
cmp rax, rdx
jne 0x14005f110
jmp 0x14005f133
lea rcx, [rsp + 0x38]
cmp rax, rcx
jne 0x14005f2c0
mov edx, 0x20
lea rcx, [rdi + 0x50]
call fcn.1400098d0
imul rax, qword [rsi + 0xe0]
mov rdx, qword [rsi + 0x100]
mov r10, qword [rsi + 0xf0]
mov rcx, rax
mov r9d, dword [rsi + 0x110]
shr rcx, 0x21
xor rax, rcx
mov ecx, dword [rsi + 0x114]
mov r8, rax
shr rax, 5
and r8d, 0x1f
and rdx, rax
shr r8, cl
add r8d, r9d
movzx eax, byte [r10 + rdx]
cmp r8d, eax
jne 0x14005f1be
mov rax, qword [rsi + 0xe8]
mov rcx, qword [rax + rdx*8]
mov rax, qword [rcx]
cmp qword [rdi + 0x50], rax
jne 0x14005f1be
mov rax, qword [rcx + 8]
cmp qword [rdi + 0x58], rax
jne 0x14005f1be
mov rax, qword [rcx + 0x10]
cmp qword [rdi + 0x60], rax
jne 0x14005f1be
mov rax, qword [rcx + 0x18]
cmp qword [rdi + 0x68], rax
je 0x14005f1d1
movzx eax, byte [r10 + rdx + 1]
inc rdx
add r8d, r9d
cmp r8d, eax
jbe 0x14005f18a
jmp 0x14005f24f
mov rax, qword [rsi + 0xd0]
mov qword [rcx], rax
mov qword [rsi + 0xd0], rcx
mov r8, qword [rsi + 0xf0]
mov eax, dword [rsi + 0x110]
add eax, eax
movzx ecx, byte [rdx + r8 + 1]
cmp ecx, eax
jb 0x14005f243
nop dword [rax + rax]
mov rcx, qword [rsi + 0xf0]
movzx eax, byte [rcx + rdx + 1]
sub al, byte [rsi + 0x110]
mov byte [rcx + rdx], al
mov rax, qword [rsi + 0xe8]
lea rcx, [rax + rdx*8]
inc rdx
mov rax, qword [rcx + 8]
mov qword [rcx], rax
mov r8, qword [rsi + 0xf0]
mov eax, dword [rsi + 0x110]
add eax, eax
movzx ecx, byte [r8 + rdx + 1]
cmp ecx, eax
jae 0x14005f200
mov byte [r8 + rdx], 0
dec qword [rsi + 0xf8]
mov rbx, qword [rdi + 0x10]
mov rax, rdi
cmp byte [rbx + 0x19], 0
je 0x14005f27b
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x14005f29f
cmp rax, qword [rbx + 0x10]
jne 0x14005f29f
mov rax, rbx
mov rbx, qword [rbx + 8]
cmp byte [rbx + 0x19], 0
je 0x14005f266
jmp 0x14005f29f
mov rcx, qword [rbx]
cmp byte [rcx + 0x19], 0
jne 0x14005f29f
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14005f290
mov rdx, rdi
lea rcx, [rsi + 0xb8]
call fcn.140066db0
mov edx, reloc.WS2_32.dll_WSASetLastError
mov rcx, rax
call fcn.140140cc0
mov rdi, rbx
jmp 0x14005f30f
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x19], 0
je 0x14005f2ec
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x14005f2e7
cmp rdi, qword [rax + 0x10]
jne 0x14005f2e7
mov rdi, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14005f2d4
mov rdi, rax
jmp 0x14005f30f
mov rcx, qword [rax]
mov rdi, rax
cmp byte [rcx + 0x19], 0
jne 0x14005f30f
nop dword [rax + rax]
mov rax, qword [rcx]
mov rdi, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14005f300
cmp rdi, qword [rsi + 0xb8]
jne 0x14005f0f0
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140c60
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret