Function at 0x41c4f0
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 0x41c515
xor eax, eax
jmp 0x41c761
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 0x41c546
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jae 0x41c566
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
and ecx, 0xfe
cmp ecx, 0xe8
jne 0x41c564
jmp 0x41c566
jmp 0x41c53d
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 0x41c57c
jmp 0x41c72d
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jbe 0x41c594
mov dword [ebp - 4], 0
jmp 0x41c605
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 0x41c605
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x439390]
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 + 0x439388]
test eax, eax
je 0x41c5e3
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41c5e3
movzx edx, byte [ebp - 0x15]
cmp edx, 0xff
jne 0x41c605
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 0x41c525
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 4]
test edx, edx
je 0x41c629
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 4]
cmp ecx, 0xff
jne 0x41c711
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 0x41c66b
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x41c679
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 0x41c681
jmp 0x41c6d1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x439390]
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 0x41c6b7
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0xff
je 0x41c6b7
jmp 0x41c6d1
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 0x41c657
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 0x41c728
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 0x41c525
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
jbe 0x41c745
mov dword [ebp - 0x2c], 0
jmp 0x41c756
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