Function at 0x41c45c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
dec eax
test eax, eax
jl 0x41c4a6
inc eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov edx, dword [ebx]
movzx edx, byte [edx + eax*8]
test dl, dl
je 0x41c4a0
mov ecx, dword [ebx]
mov ecx, dword [ecx + eax*8 + 4]
and edx, 0x7f
mov dword [ebp + edx*8 - 0x4c], ecx
inc eax
dec dword [ebp - 0x28]
jne 0x41c489
mov edi, dword [ebx + 0x14]
mov esi, edi
imul esi, dword [ebp - 0xc]
mov ecx, 4
mov eax, esi
cdq
idiv ecx
mov esi, edx
test esi, esi
je 0x41c4d5
mov eax, esi
cdq
idiv edi
mov dword [ebp - 0x24], eax
mov eax, esi
cdq
idiv edi
test edx, edx
jle 0x41c4da
inc dword [ebp - 0x24]
jmp 0x41c4da
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
dec eax
sub eax, dword [ebp - 0x24]
test eax, eax
jl 0x41c5b9
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov esi, dword [ebx + 4]
dec esi
test esi, esi
jl 0x41c536
inc esi
xor eax, eax
mov edx, dword [ebx]
movzx edx, byte [edx + eax*8]
mov ecx, dword [ebx]
mov ecx, dword [ecx + eax*8 + 4]
mov edi, 1
shl edi, cl
dec edi
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x18]
and ecx, dword [ebp - 0x20]
and edx, 0x7f
mov dword [ebp + edx*8 - 0x50], ecx
mov edx, dword [ebx]
mov ecx, dword [edx + eax*8 + 4]
shr dword [ebp - 0x18], cl
inc eax
dec esi
jne 0x41c505
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx + 0xc]
dec esi
test esi, esi
jl 0x41c597
inc esi
xor eax, eax
mov edx, dword [ebx + 8]
movzx edx, byte [edx + eax*8]
test dl, dl
jne 0x41c55a
xor edx, edx
jmp 0x41c581
movzx ecx, dl
cmp dword [ebx + ecx*4 + 0x18], 0
jl 0x41c57a
movzx ecx, dl
mov ecx, dword [ebx + ecx*4 + 0x18]
and edx, 0x7f
add ecx, dword [ebp + edx*8 - 0x50]
mov edx, dword [ebx + 0x40]
mov edx, dword [edx + ecx*4]
jmp 0x41c581
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x2c]
mov ecx, dword [ebp - 0x1c]
shl edx, cl
or dword [ebp - 0x18], edx
mov edx, dword [ebx + 8]
mov edx, dword [edx + eax*8 + 4]
add dword [ebp - 0x1c], edx
inc eax
dec esi
jne 0x41c54b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add eax, edx
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebx + 0x14]
add dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
add dword [ebp - 0x10], eax
dec dword [ebp - 0x28]
jne 0x41c4ed
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x41c68e
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov esi, dword [ebx + 4]
dec esi
test esi, esi
jl 0x41c610
inc esi
xor eax, eax
mov edx, dword [ebx]
movzx edx, byte [edx + eax*8]
mov ecx, dword [ebx]
mov ecx, dword [ecx + eax*8 + 4]
mov edi, 1
shl edi, cl
dec edi
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x18]
and ecx, dword [ebp - 0x20]
and edx, 0x7f
mov dword [ebp + edx*8 - 0x50], ecx
mov edx, dword [ebx]
mov ecx, dword [edx + eax*8 + 4]
shr dword [ebp - 0x18], cl
inc eax
dec esi
jne 0x41c5df
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebx + 0xc]
dec esi
test esi, esi
jl 0x41c65e
inc esi
xor eax, eax
mov edx, dword [ebx + 8]
movzx edx, byte [edx + eax*8]
test dl, dl
jne 0x41c634
xor edx, edx
jmp 0x41c648
movzx ecx, dl
mov ecx, dword [ebx + ecx*4 + 0x18]
and edx, 0x7f
add ecx, dword [ebp + edx*8 - 0x50]
mov edx, dword [ebx + 0x40]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x1c]
shl edx, cl
or dword [ebp - 0x18], edx
mov edx, dword [ebx + 8]
mov edx, dword [edx + eax*8 + 4]
add dword [ebp - 0x1c], edx
inc eax
dec esi
jne 0x41c625
mov eax, dword [ebx + 0x10]
add dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x14]
test esi, esi
jle 0x41c685
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
movzx ecx, byte [ebp - 0x18]
and cl, 0xff
mov byte [eax + edx], cl
inc dword [ebp - 0x14]
shr dword [ebp - 0x18], 8
dec esi
jne 0x41c66b
dec dword [ebp - 0x28]
jne 0x41c5c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4