Function at 0x4f7920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd600
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x72cec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + edx]
mov byte [eax + edx], 0xff
mov edx, dword [ebp + 8]
movzx eax, cl
mov byte [ebp - 0xd], cl
lea edi, [eax + eax*4]
mov eax, dword [edx + 0x80]
mov eax, dword [eax + edi*4 + 0x10]
test eax, eax
je 0x4f7988
mov esi, dword [eax + 4]
push 8
push eax
call fcn.005966fb
add esp, 8
mov eax, esi
test esi, esi
jne 0x4f7971
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x80]
mov al, byte [edx + 0x85]
mov byte [ecx + edi*4], al
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0xd]
mov byte [eax + 0x85], cl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edi, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 0x24], edx
dec dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
jmp 0x4f79c6
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x80
jne 0x4f7a0d
mov esi, dword [ecx + 0x10]
add edi, 0x88
mov ecx, edi
mov dword [ebp - 0x20], 0
sub ecx, esi
mov eax, 0x78787879
imul ecx
mov eax, dword [ebp - 0x14]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
mov eax, dword [eax + 8]
add ecx, edx
mov edx, dword [ebp - 0x24]
shr eax, 7
cmp ecx, eax
cmove edi, esi
xor esi, esi
mov dword [ebp - 0x18], edi
lea eax, [esi + edi]
mov dword [ebp - 0x28], eax
movzx eax, byte [eax]
cmp eax, 0xff
je 0x4f7b6e
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x80]
mov edi, dword [ebp - 0x14]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
mov edi, dword [edi + 8]
shl ecx, 4
add ecx, dword [eax + 8]
add ecx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
xor ecx, dword [eax + 0xc]
lea eax, [edi - 1]
and ecx, eax
mov eax, ecx
shr eax, 7
imul edi, eax, 0x88
mov eax, dword [ebp - 0x14]
add edi, dword [eax + 0x10]
and ecx, 0x7f
mov eax, dword [ebp - 0x18]
cmp edi, eax
jne 0x4f7a6c
cmp ecx, esi
je 0x4f79c0
cmp edi, edx
jne 0x4f7a75
cmp ecx, dword [ebp - 0x1c]
je 0x4f7abd
inc ecx
cmp ecx, 0x80
jne 0x4f7a60
mov eax, dword [ebp - 0x14]
add edi, 0x88
mov edx, edi
xor ecx, ecx
sub edx, dword [eax + 0x10]
mov eax, 0x78787879
imul edx
mov eax, dword [ebp - 0x14]
sar edx, 6
mov esi, edx
shr esi, 0x1f
mov eax, dword [eax + 8]
add esi, edx
mov edx, dword [ebp - 0x24]
shr eax, 7
cmp esi, eax
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
jne 0x4f7a60
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x10]
jmp 0x4f7a5d
mov edi, dword [ebp - 0x18]
cmp edi, edx
jne 0x4f7ad9
mov ecx, dword [ebp - 0x1c]
mov al, byte [esi + edx]
mov byte [ecx + edx], al
mov eax, dword [ebp + 8]
mov byte [esi + eax], 0xff
jmp 0x4f7b59
mov al, byte [edx + 0x85]
cmp al, byte [edx + 0x84]
jne 0x4f7af7
mov ecx, edx
call fcn.004f7580
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
movzx eax, byte [edx + 0x85]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + edx], al
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x85]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x80]
lea esi, [eax + ecx*4]
movzx eax, byte [esi]
mov byte [edx + 0x85], al
mov eax, dword [ebp - 0x28]
mov dl, byte [eax]
mov byte [eax], 0xff
movzx eax, dl
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x80]
movups xmm0, xmmword [eax + ecx*4]
lea ecx, [eax + ecx*4]
movups xmmword [esi], xmm0
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 0x85]
mov esi, dword [ebp - 0x20]
mov byte [ecx], al
mov byte [edi + 0x85], dl
mov edx, edi
mov eax, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
jmp 0x4f79c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8