Function at 0x14005f2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x60], 5
jae 0x14005f2e2
xor eax, eax
jmp 0x14005f650
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x4df8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4e00]
mov dword [rsp], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4e04]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
lea rax, [rax + rcx - 4]
mov qword [rsp + 0x38], rax
jmp 0x14005f351
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 8], rax
jae 0x14005f375
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
and eax, 0xfe
cmp eax, 0xe8
jne 0x14005f373
jmp 0x14005f375
jmp 0x14005f344
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 8], rax
jb 0x14005f39b
jmp 0x14005f612
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x10]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 3
jbe 0x14005f3c4
mov dword [rsp], 0
jmp 0x14005f455
mov eax, dword [rsp + 0x20]
dec eax
movzx ecx, al
mov eax, dword [rsp]
shl eax, cl
and eax, 7
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x14005f455
mov eax, dword [rsp]
lea rcx, [0x1400fbf70]
movzx eax, byte [rcx + rax]
mov ecx, 4
sub ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
mov byte [rsp + 4], al
mov eax, dword [rsp]
lea rcx, [0x1400fbf68]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x14005f42b
movzx eax, byte [rsp + 4]
test eax, eax
je 0x14005f42b
movzx eax, byte [rsp + 4]
cmp eax, 0xff
jne 0x14005f455
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp]
shl eax, 1
and eax, 7
or eax, 1
mov dword [rsp], eax
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
jmp 0x14005f319
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x20], rax
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x14005f492
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0xff
jne 0x14005f5f2
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
shl eax, 0x18
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 8]
movzx ecx, byte [rdx + rcx]
shl ecx, 0x10
or eax, ecx
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
movzx ecx, byte [rdx + rcx]
shl ecx, 8
or eax, ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x18], eax
cmp dword [rsp], 0
jne 0x14005f50d
jmp 0x14005f57d
mov eax, dword [rsp]
lea rcx, [0x1400fbf70]
movzx eax, byte [rcx + rax]
shl eax, 3
mov dword [rsp + 0x28], eax
mov eax, 0x18
sub eax, dword [rsp + 0x28]
movzx ecx, al
mov eax, dword [rsp + 0x18]
shr eax, cl
mov byte [rsp + 5], al
movzx eax, byte [rsp + 5]
test eax, eax
je 0x14005f54f
movzx eax, byte [rsp + 5]
cmp eax, 0xff
je 0x14005f54f
jmp 0x14005f57d
mov eax, 0x20
sub eax, dword [rsp + 0x28]
mov ecx, 1
mov dword [rsp + 0x34], ecx
movzx ecx, al
mov eax, dword [rsp + 0x34]
shl eax, cl
dec eax
mov ecx, dword [rsp + 0x18]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x14005f4ed
mov eax, dword [rsp + 0x18]
shr eax, 0x18
and eax, 1
dec eax
not eax
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x18]
shr eax, 0x10
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x18]
shr eax, 8
mov ecx, 1
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx edx, byte [rsp + 0x18]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x10]
add rax, 5
mov qword [rsp + 0x10], rax
jmp 0x14005f60d
mov eax, dword [rsp]
shl eax, 1
and eax, 7
or eax, 1
mov dword [rsp], eax
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
jmp 0x14005f319
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x4df8], rcx
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp]
mov dword [rax + 0x4e00], ecx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x4e04]
add eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x4e04], eax
mov rax, qword [rsp + 0x10]
add rsp, 0x48
ret