Function at 0x41e3cc
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 0x41e416
inc eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov edx, dword [ebx]
movzx edx, byte [edx + eax*8]
test dl, dl
je 0x41e410
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 0x41e3f9
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 0x41e445
mov eax, esi
cdq
idiv edi
mov dword [ebp - 0x24], eax
mov eax, esi
cdq
idiv edi
test edx, edx
jle 0x41e44a
inc dword [ebp - 0x24]
jmp 0x41e44a
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
dec eax
sub eax, dword [ebp - 0x24]
test eax, eax
jl 0x41e529
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 0x41e4a6
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 0x41e475
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 0x41e507
inc esi
xor eax, eax
mov edx, dword [ebx + 8]
movzx edx, byte [edx + eax*8]
test dl, dl
jne 0x41e4ca
xor edx, edx
jmp 0x41e4f1
movzx ecx, dl
cmp dword [ebx + ecx*4 + 0x18], 0
jl 0x41e4ea
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 0x41e4f1
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 0x41e4bb
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 0x41e45d
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x41e5fe
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 0x41e580
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 0x41e54f
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 0x41e5ce
inc esi
xor eax, eax
mov edx, dword [ebx + 8]
movzx edx, byte [edx + eax*8]
test dl, dl
jne 0x41e5a4
xor edx, edx
jmp 0x41e5b8
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 0x41e595
mov eax, dword [ebx + 0x10]
add dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x14]
test esi, esi
jle 0x41e5f5
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 0x41e5db
dec dword [ebp - 0x28]
jne 0x41e537
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4