>>8at a first glance looks like an RC4 variant but then it has bitwse ANDs and ORs which don't belong in RC4. so it's probably a custom stream cipher that apparently has a hardcoded key (the seed and password you mentioned) and no IV. what is it used for, if I may ask? because in most uses, such crypto would be disastrously bad.