Function at 0x4f5f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ebp + 8], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
js 0x4f646f
mov eax, dword [ebp - 0x28]
mov esi, 0x8a
mov edi, 4
movzx ecx, word [eax + 2]
xor eax, eax
test cx, cx
mov ebx, ecx
mov ecx, 7
sete al
cmove ecx, esi
xor edx, edx
xor esi, esi
sub edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov edi, 0xffffffff
jmp 0x4f5fd3
mov ebx, edx
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
cmp edx, eax
lea edx, [edx + 1]
je 0x4f646f
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
movzx edx, word [ecx + edx*4 + 6]
lea ecx, [esi + 1]
cmp ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jge 0x4f5fed
cmp ebx, edx
je 0x4f5fc0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], edx
cmp eax, dword [ebp - 0x18]
jge 0x4f60b0
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
mov ecx, dword [edx + 0x170c]
jmp 0x4f6025
add ecx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [edx + 0x170c], ecx
dec eax
je 0x4f641f
movzx esi, word [edx + edi*4 + 0xace]
movzx edi, word [edx + edi*4 + 0xacc]
mov dword [ebp - 0x10], eax
mov eax, 0x10
mov ebx, edi
sub eax, esi
shl ebx, cl
or bx, word [edx + 0x1708]
cmp ecx, eax
mov word [edx + 0x1708], bx
jle 0x4f6010
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ecx + 1]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
movzx eax, byte [edx + 0x1709]
mov ebx, dword [edx + 0x14]
mov ecx, dword [edx + 8]
mov byte [ebp - 0x18], al
lea eax, [ebx + 1]
mov dword [edx + 0x14], eax
mov ah, byte [ebp - 0x18]
mov byte [ecx + ebx], ah
mov cl, 0x10
mov ebx, dword [edx + 0x170c]
sub cl, bl
shr edi, cl
lea ecx, [esi + ebx - 0x10]
mov word [edx + 0x1708], di
jmp 0x4f6012
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
test edx, edx
je 0x4f60d0
cmp edx, edi
jne 0x4f615f
mov ecx, dword [ebx + 0x170c]
mov dword [ebp - 0x1c], eax
jmp 0x4f626f
cmp esi, 9
mov dword [ebp - 0x1c], esi
jg 0x4f61e1
mov edx, dword [ebx + 0x170c]
movzx ecx, word [ebx + 0xb12]
movzx edi, word [ebx + 0xb10]
mov eax, 0x10
mov esi, ebx
mov ebx, edx
mov dword [ebp - 0x10], ecx
sub eax, ecx
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x1708]
cmp ebx, eax
mov word [esi + 0x1708], dx
jle 0x4f6351
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
lea ebx, [ecx + 1]
mov dword [esi + 0x14], ebx
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x1709]
mov ecx, dword [esi + 8]
lea ebx, [edx + 1]
mov dword [esi + 0x14], ebx
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov cl, 0x10
mov edx, dword [esi + 0x170c]
sub cl, dl
lea ebx, [eax + edx - 0x10]
shr edi, cl
mov word [esi + 0x1708], di
mov edx, edi
jmp 0x4f6354
mov dword [ebp - 0x1c], esi
movzx esi, word [ebx + edx*4 + 0xace]
mov eax, 0x10
mov ecx, dword [ebx + 0x170c]
mov edi, ebx
mov dword [ebp - 0x10], esi
sub eax, esi
movzx esi, word [ebx + edx*4 + 0xacc]
mov edx, esi
shl edx, cl
or dx, word [ebx + 0x1708]
cmp ecx, eax
mov word [ebx + 0x1708], dx
jle 0x4f6264
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
lea ebx, [ecx + 1]
mov dword [edi + 0x14], ebx
mov byte [eax + ecx], dl
mov edx, dword [edi + 0x14]
mov al, byte [edi + 0x1709]
mov ecx, dword [edi + 8]
lea ebx, [edx + 1]
mov dword [edi + 0x14], ebx
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov cl, 0x10
mov edx, dword [edi + 0x170c]
sub cl, dl
shr esi, cl
lea ecx, [eax + edx - 0x10]
mov word [edi + 0x1708], si
jmp 0x4f6267
mov edx, dword [ebx + 0x170c]
movzx ecx, word [ebx + 0xb16]
movzx edi, word [ebx + 0xb14]
mov eax, 0x10
mov esi, ebx
mov ebx, edx
mov dword [ebp - 0x10], ecx
sub eax, ecx
mov edx, edi
mov ecx, ebx
shl edx, cl
or dx, word [esi + 0x1708]
cmp ebx, eax
mov word [esi + 0x1708], dx
jle 0x4f63b0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
lea ebx, [ecx + 1]
mov dword [esi + 0x14], ebx
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x1709]
mov ecx, dword [esi + 8]
lea ebx, [edx + 1]
mov dword [esi + 0x14], ebx
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov cl, 0x10
mov edx, dword [esi + 0x170c]
sub cl, dl
lea ebx, [eax + edx - 0x10]
shr edi, cl
mov word [esi + 0x1708], di
mov edx, edi
jmp 0x4f63b3
add ecx, dword [ebp - 0x10]
mov ebx, edi
mov dword [edi + 0x170c], ecx
movzx edx, word [ebx + 0xb0e]
movzx edi, word [ebx + 0xb0c]
mov eax, 0x10
mov esi, ebx
mov dword [ebp - 0x10], edx
sub eax, edx
mov edx, edi
shl edx, cl
or dx, word [ebx + 0x1708]
cmp ecx, eax
mov word [ebx + 0x1708], dx
jle 0x4f62e4
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
lea ebx, [ecx + 1]
mov dword [esi + 0x14], ebx
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x1709]
mov ecx, dword [esi + 8]
lea ebx, [edx + 1]
mov dword [esi + 0x14], ebx
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov cl, 0x10
mov edx, dword [esi + 0x170c]
sub cl, dl
lea eax, [eax + edx - 0x10]
shr edi, cl
mov dword [ebp - 0x10], eax
mov word [esi + 0x1708], di
mov edx, edi
jmp 0x4f62ea
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
add eax, 0xfffd
mov dword [esi + 0x170c], ecx
movzx ebx, ax
mov eax, ebx
shl eax, cl
or edx, eax
cmp ecx, 0xf
mov word [esi + 0x1708], dx
jl 0x4f6346
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
lea edi, [ecx + 1]
mov dword [esi + 0x14], edi
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x1709]
mov ecx, dword [esi + 8]
lea edi, [edx + 1]
mov dword [esi + 0x14], edi
mov byte [ecx + edx], al
mov cl, 0x10
mov eax, dword [esi + 0x170c]
sub cl, al
add eax, 0xfffffff2
jmp 0x4f640d
mov eax, dword [ebp - 0x10]
add eax, 2
jmp 0x4f6416
add ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [esi + 0x170c], ecx
add eax, 0xfffe
movzx ebx, ax
mov eax, ebx
shl eax, cl
or edx, eax
cmp ecx, 0xe
mov word [esi + 0x1708], dx
jl 0x4f6461
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
lea edi, [ecx + 1]
mov dword [esi + 0x14], edi
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x1709]
mov ecx, dword [esi + 8]
lea edi, [edx + 1]
mov dword [esi + 0x14], edi
mov byte [ecx + edx], al
mov cl, 0x10
mov eax, dword [esi + 0x170c]
sub cl, al
add eax, 0xfffffff3
jmp 0x4f640d
add ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [esi + 0x170c], ecx
add eax, 0xfff6
movzx ebx, ax
mov eax, ebx
shl eax, cl
or edx, eax
cmp ecx, 0xa
mov word [esi + 0x1708], dx
jl 0x4f6468
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
lea edi, [ecx + 1]
mov dword [esi + 0x14], edi
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x14]
mov al, byte [esi + 0x1709]
mov ecx, dword [esi + 8]
lea edi, [edx + 1]
mov dword [esi + 0x14], edi
mov byte [ecx + edx], al
mov cl, 0x10
mov eax, dword [esi + 0x170c]
sub cl, al
add eax, 0xfffffff7
shr ebx, cl
mov word [esi + 0x1708], bx
mov edi, dword [ebp - 0x14]
mov dword [esi + 0x170c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
test ax, ax
je 0x4f6449
xor ecx, ecx
cmp edi, eax
mov ebx, eax
mov eax, 4
sete cl
sub eax, ecx
xor ecx, 7
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x4f6459
mov ebx, eax
mov dword [ebp - 0x14], 0x8a
mov dword [ebp - 0x18], 3
mov eax, dword [ebp + 8]
jmp 0x4f5fc2
mov eax, ecx
add eax, 3
jmp 0x4f6416
mov eax, ecx
add eax, 7
jmp 0x4f6416
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret