While the untouched capture has rainbowing, noise and stuff, for some reason the enhanced versions have halos around edges, looking a bit like edge enhancement. For example in the first shot, the edges are sharp and clean in the first pic and in the enhanced there's dark lines running along the edges of the moon and the star destroyer.
Maybe something went wrong when you did the median? Were the captures perfectly aligned?