Function at 0x4b01d0
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 0x4b02cb
inc dword [rbx + 8]
mov eax, dword [rbx + 8]
inc dword [rbx + 0x18]
inc qword [rbx]
cmp eax, dword [rbx + 0xc]
jne 0x4b03d1
cmp eax, 0xffffffff
jne 0x4b0258
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 0x4b024f
mov eax, dword [r8 + rcx*4]
cmp eax, edx
ja 0x4b0241
mov eax, esi
jmp 0x4b0243
sub eax, edx
mov dword [r8 + rcx*4], eax
inc rcx
cmp rcx, r9
jb 0x4b0235
sub dword [rbx + 0xc], edx
sub dword [rbx + 8], edx
sub dword [rbx + 0x10], edx
cmp byte [rbx + 0x20], sil
jne 0x4b0271
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx + 8]
cmp dword [rbx + 0x58], eax
jne 0x4b0271
mov rcx, rbx
call fcn.004ae010
mov eax, dword [rbx + 0x1c]
cmp dword [rbx + 0x18], eax
jne 0x4b027c
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 0x4b02ac
test edx, edx
je 0x4b02af
mov eax, 1
jmp 0x4b02af
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 0x4b03d1
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 0x4b03d1
cmp eax, 0xffffffff
jne 0x4b0363
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 0x4b035a
nop
mov eax, dword [r8 + rcx*4]
cmp eax, edx
ja 0x4b034c
mov eax, esi
jmp 0x4b034e
sub eax, edx
mov dword [r8 + rcx*4], eax
inc rcx
cmp rcx, r9
jb 0x4b0340
sub dword [rbx + 0xc], edx
sub dword [rbx + 8], edx
sub dword [rbx + 0x10], edx
cmp byte [rbx + 0x20], sil
jne 0x4b037c
mov eax, dword [rbx + 0x10]
sub eax, dword [rbx + 8]
cmp dword [rbx + 0x58], eax
jne 0x4b037c
mov rcx, rbx
call fcn.004ae010
mov eax, dword [rbx + 0x1c]
cmp dword [rbx + 0x18], eax
jne 0x4b0387
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 0x4b03b7
test edx, edx
je 0x4b03ba
mov eax, 1
jmp 0x4b03ba
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 0x4b01f0
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret