Function at 0x41b410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
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 0x41b435
xor eax, eax
jmp 0x41b681
mov edx, dword [ebp + 0x10]
add edx, 5
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx - 4]
mov dword [ebp - 0x14], eax
jmp 0x41b466
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jae 0x41b486
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
and ecx, 0xfe
cmp ecx, 0xe8
jne 0x41b484
jmp 0x41b486
jmp 0x41b45d
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x41b49c
jmp 0x41b64d
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jbe 0x41b4b4
mov dword [ebp - 4], 0
jmp 0x41b525
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov edx, dword [ebp - 4]
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x41b525
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x436a70]
mov edx, 4
sub edx, ecx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + edx]
mov byte [ebp - 0x15], cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x436a68]
test eax, eax
je 0x41b503
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41b503
movzx edx, byte [ebp - 0x15]
cmp edx, 0xff
jne 0x41b525
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
shl ecx, 1
and ecx, 7
or ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x41b445
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 4]
test edx, edx
je 0x41b549
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 4]
cmp ecx, 0xff
jne 0x41b631
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 4]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 3]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 2]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 1]
or eax, edx
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x18], 0
je 0x41b58b
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x41b599
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 4], 0
jne 0x41b5a1
jmp 0x41b5f1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x436a70]
shl ecx, 3
mov dword [ebp - 0x24], ecx
mov ecx, 0x18
sub ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
shr edx, cl
mov byte [ebp - 0x25], dl
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x41b5d7
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0xff
je 0x41b5d7
jmp 0x41b5f1
mov ecx, 0x20
sub ecx, dword [ebp - 0x24]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
jmp 0x41b577
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
and eax, 1
sub eax, 1
not eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 4], al
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], dl
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 1], cl
mov edx, dword [ebp - 8]
add edx, 5
mov dword [ebp - 8], edx
jmp 0x41b648
mov eax, dword [ebp - 4]
shl eax, 1
and eax, 7
or eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x41b445
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
jbe 0x41b665
mov dword [ebp - 0x2c], 0
jmp 0x41b676
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov eax, dword [ebp - 4]
shl eax, cl
and eax, 7
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret