Function at 0x41afa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
and ecx, 7
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 5
jae 0x41afc5
xor eax, eax
jmp 0x41b1cf
mov edx, dword [ebp + 0xc]
sub edx, 4
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
add eax, 5
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
jmp 0x41aff4
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x41b012
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx]
and eax, 0xfe
cmp eax, 0xe8
jne 0x41b010
jmp 0x41b012
jmp 0x41afeb
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 8]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x41b059
cmp dword [ebp - 0x14], 2
jbe 0x41b03e
mov dword [ebp - 0x24], 0
jmp 0x41b049
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
jmp 0x41b1cf
cmp dword [ebp - 0x14], 2
jbe 0x41b068
mov dword [ebp - 4], 0
jmp 0x41b0b6
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x41b0b6
cmp dword [ebp - 4], 4
ja 0x41b09d
cmp dword [ebp - 4], 3
je 0x41b09d
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + eax + 1]
add edx, 1
and edx, 0xfe
jne 0x41b0b6
mov eax, dword [ebp - 4]
shr eax, 1
or eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x41afd7
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 4]
add eax, 1
and eax, 0xfe
jne 0x41b1b6
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 4]
shl edx, 0x18
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 3]
shl ecx, 0x10
or edx, ecx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 2]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
or edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
add eax, 5
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
je 0x41b11c
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
jmp 0x41b125
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 4], 0
je 0x41b180
mov eax, dword [ebp - 4]
and eax, 6
shl eax, 2
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
shr edx, cl
movzx eax, dl
add eax, 1
and eax, 0xfe
jne 0x41b179
mov edx, 0x100
mov ecx, dword [ebp - 0x20]
shl edx, cl
sub edx, 1
xor edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
cmp dword [ebp + 0x18], 0
je 0x41b170
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x41b179
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x18]
mov byte [edx + 1], al
mov ecx, dword [ebp - 0x18]
shr ecx, 8
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 3], al
mov edx, dword [ebp - 0x18]
shr edx, 0x18
and edx, 1
xor eax, eax
sub eax, edx
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 4], al
jmp 0x41b1ca
mov edx, dword [ebp - 4]
shr edx, 1
or edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x41afd7
mov esp, ebp
pop ebp
ret