Duals of compact groups realized by semigroups of non-unital endomorphisms of C*-algebraas