Deposed Egyptian president Hosni Mubarak won an appeal for his release over the killing of hundreds of protesters during the revolution that toppled his dictatorial regime but will remain in custody for corruption charges.