Function at 0x41a660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x30]
mov byte [esp + 2], 0
jmp 0x41a691
mov byte [esi + ebp], cl
inc dword [edi + 4]
cmp byte [esp + 2], 0xa
je 0x41a8be
push 0x1006c792
push dword [0x445c28]
call fcn.00439e30
add esp, 8
push 8
push 1
lea ecx, [esp + 0xa]
push ecx
mov ecx, dword [esp + 0x1c]
push dword [ecx]
call eax
mov dword [esp + 0x18], eax
test eax, eax
jle 0x41a87b
movzx ecx, byte [esp + 2]
mov ebp, dword [edi]
mov edx, dword [edi + 4]
mov ebx, edx
sub ebx, ebp
mov esi, ebp
cmp edx, dword [edi + 8]
jne 0x41a83b
mov dword [esp + 0xc], edx
mov byte [esp + 3], cl
lea eax, [ebx + 1]
mov ecx, ebx
shr ecx, 1
mov dword [esp + 8], ecx
add ecx, ebx
cmp ecx, eax
ja 0x41a6f5
mov ecx, eax
mov dword [esp + 0x14], ecx
push ecx
call fcn.00408680
add esp, 4
mov esi, eax
test ebp, ebp
je 0x41a821
cmp esi, ebp
mov dword [esp + 4], ebx
mov eax, dword [esp + 0xc]
jbe 0x41a7cf
cmp eax, esi
jbe 0x41a7cf
test ebx, ebx
je 0x41a80f
mov edx, dword [esp + 4]
lea eax, [edx + ebp]
dec eax
lea ecx, [esi + edx]
dec ecx
mov edi, edx
and edi, 7
je 0x41a764
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x41a750
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov edi, ebp
sub edi, dword [esp + 0xc]
cmp edi, 0xfffffff8
ja 0x41a80f
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x41a780
jmp 0x41a80f
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
lea edi, [esi + edx]
add edx, ebp
mov ecx, dword [esp + 8]
and ecx, 1
mov eax, edx
mov dword [esp + 8], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x41a80f
mov eax, dword [esp + 4]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 8]
mov byte [edx + eax], cl
mov edi, dword [esp + 0x30]
push dword [edi]
call fcn.00408690
add esp, 4
mov ebx, dword [esp + 4]
mov dword [edi], esi
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x14]
add eax, esi
mov dword [edi + 8], eax
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov eax, ebp
xor eax, edx
not ebp
and ebp, edx
add ebp, ebp
sub ebp, eax
cmp ebp, ebx
jae 0x41a680
lea eax, [esi + ebp]
inc eax
add esi, ebp
mov edx, esi
mov ebx, ecx
xor ecx, ecx
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, eax
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebx
mov edi, dword [esp + 0x30]
mov esi, dword [edi]
jmp 0x41a680
mov eax, dword [esp + 0x10]
cmp dword [eax], 0xffffffff
je 0x41a8be
push 0xea8d1240
push dword [0x445c28]
call fcn.00439e30
add esp, 8
push 2
mov esi, dword [esp + 0x14]
push dword [esi]
call eax
push 0xa3d60213
push dword [0x445c28]
call fcn.00439e30
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
cmp dword [esp + 0x18], 0
setg al
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4