Function at 0x4b0600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, edx
mov rbx, rcx
xor esi, esi
nop
nop
cmp dword [rbx + 0x14], 3
jae 0x4b06fb
inc dword [rbx + 8]
mov eax, dword [rbx + 8]
inc dword [rbx + 0x18]
inc qword [rbx]
cmp eax, dword [rbx + 0xc]
jne 0x4b0801
cmp eax, 0xffffffff
jne 0x4b0688
mov r9, qword [rbx + 0x478]
mov r8, qword [rbx + 0x28]
mov edx, 0xfffffffe
sub edx, dword [rbx + 0x68]
mov rcx, rsi
and edx, 0xfffffc00
test r9, r9
je 0x4b067f
mov eax, dword [r8 + rcx*4]
cmp eax, edx
ja 0x4b0671
mov eax, esi
jmp 0x4b0673
sub eax, edx
mov dword [r8 + rcx*4], eax
inc rcx
cmp rcx, r9
jb 0x4b0665
sub dword [rbx + 0xc], edx
sub dword [rbx + 8], edx
sub dword [rbx + 0x10], edx
cmp byte [rbx + 0x20], sil
jne 0x4b06a1
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx + 8]
cmp dword [rbx + 0x58], eax
jne 0x4b06a1
mov rcx, rbx
call fcn.004ae440
mov eax, dword [rbx + 0x1c]
cmp dword [rbx + 0x18], eax
jne 0x4b06ac
mov dword [rbx + 0x18], esi
sub eax, dword [rbx + 0x18]
mov r9d, dword [rbx + 8]
mov edx, dword [rbx + 0x10]
mov r8d, dword [rbx + 0x58]
mov ecx, 0xffffffff
sub ecx, r9d
cmp eax, ecx
cmovb ecx, eax
sub edx, r9d
cmp edx, r8d
mov eax, edx
ja 0x4b06dc
test edx, edx
je 0x4b06df
mov eax, 1
jmp 0x4b06df
sub eax, r8d
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [rbx + 0x24]
cmp edx, eax
cmova edx, eax
lea eax, [r9 + rcx]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x14], edx
jmp 0x4b0801
mov rcx, qword [rbx]
movzx edx, byte [rcx]
movzx eax, byte [rcx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 1]
mov rcx, qword [rbx + 0x28]
xor edx, dword [rbx + rax*4 + 0x78]
movzx eax, dx
mov rdx, rax
mov r8d, dword [rcx + rax*4]
mov eax, dword [rbx + 8]
mov dword [rcx + rdx*4], eax
mov ecx, dword [rbx + 0x18]
mov rax, qword [rbx + 0x30]
mov dword [rax + rcx*4], r8d
inc dword [rbx + 8]
mov eax, dword [rbx + 8]
inc dword [rbx + 0x18]
inc qword [rbx]
cmp eax, dword [rbx + 0xc]
jne 0x4b0801
cmp eax, 0xffffffff
jne 0x4b0793
mov r9, qword [rbx + 0x478]
mov r8, qword [rbx + 0x28]
mov edx, 0xfffffffe
sub edx, dword [rbx + 0x68]
mov rcx, rsi
and edx, 0xfffffc00
test r9, r9
je 0x4b078a
nop
mov eax, dword [r8 + rcx*4]
cmp eax, edx
ja 0x4b077c
mov eax, esi
jmp 0x4b077e
sub eax, edx
mov dword [r8 + rcx*4], eax
inc rcx
cmp rcx, r9
jb 0x4b0770
sub dword [rbx + 0xc], edx
sub dword [rbx + 8], edx
sub dword [rbx + 0x10], edx
cmp byte [rbx + 0x20], sil
jne 0x4b07ac
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx + 8]
cmp dword [rbx + 0x58], eax
jne 0x4b07ac
mov rcx, rbx
call fcn.004ae440
mov eax, dword [rbx + 0x1c]
cmp dword [rbx + 0x18], eax
jne 0x4b07b7
mov dword [rbx + 0x18], esi
sub eax, dword [rbx + 0x18]
mov r9d, dword [rbx + 8]
mov edx, dword [rbx + 0x10]
mov r8d, dword [rbx + 0x58]
mov ecx, 0xffffffff
sub ecx, r9d
cmp eax, ecx
cmovb ecx, eax
sub edx, r9d
cmp edx, r8d
mov eax, edx
ja 0x4b07e7
test edx, edx
je 0x4b07ea
mov eax, 1
jmp 0x4b07ea
sub eax, r8d
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [rbx + 0x24]
cmp edx, eax
cmova edx, eax
lea eax, [r9 + rcx]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x14], edx
add edi, 0xffffffff
jne 0x4b0620
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret