Function at 0x4fd600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x500b40
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], 0
cmp byte [esi + 0xd], 0
nop
mov dword [ebp - 0x30], eax
je 0x4fd651
mov dword [ebp - 0x28], esi
jmp 0x4fd6dd
nop
cmp dword [ebx + 0x18], 0x10
jb 0x4fd65d
mov edi, dword [ebx + 4]
jmp 0x4fd660
lea edi, [ebx + 4]
nop
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x4fd690
cmp eax, dword [ebp - 0x24]
setb bl
test bl, bl
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmove eax, ecx
mov dword [ebp - 0x20], eax
movzx eax, bl
mov esi, dword [ecx + eax*8]
cmp byte [esi + 0xd], 0
jne 0x4fd6d1
mov eax, esi
cmp dword [esi + 0x28], 0x10
jb 0x4fd6a0
mov esi, dword [eax + 0x14]
jmp 0x4fd6a3
lea esi, [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
mov ebx, eax
cmovb ebx, ecx
test ebx, ebx
je 0x4fd670
xor edx, edx
nop dword [eax]
nop
movzx ecx, byte [edi + edx]
cmp byte [esi + edx], cl
jne 0x4fd673
inc edx
cmp ebx, edx
jne 0x4fd6c0
jmp 0x4fd670
xor bl, 1
movzx eax, bl
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xd], 0
je 0x4fd76c
nop
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0x5555555
mov dword [ebp - 0x10], 0xffffffff
je 0x4fd7df
push 0x30
call fcn.0071993d
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00582650
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov word [edx + 0xc], 0
mov ecx, dword [ebp - 0x34]
push edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.004fd810
mov dl, 1
nop
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ecx + 4], dl
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 8
cmp dword [eax + 0x28], 0x10
jb 0x4fd777
mov ecx, dword [eax + 0x14]
jmp 0x4fd77a
lea ecx, [eax + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x4fd794
mov edi, dword [eax + 4]
jmp 0x4fd797
lea edi, [eax + 4]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
mov ebx, esi
cmovb ebx, eax
test ebx, ebx
je 0x4fd7c1
xor edx, edx
nop word [eax + eax]
nop
movzx eax, byte [edi + edx]
mov ah, byte [ecx + edx]
cmp al, ah
jne 0x4fd7cf
inc edx
cmp ebx, edx
jne 0x4fd7b0
cmp esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
jb 0x4fd6e7
jmp 0x4fd7d8
mov eax, dword [ebp - 0x20]
jb 0x4fd6e7
xor edx, edx
jmp 0x4fd74e
call fcn.0046dda0
nop word cs:[eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
push 0x30
push dword [ebp - 0x20]
call fcn.0071996d
add esp, 8
add esp, 0xc
pop ebp
ret