Diffusion Model As Representation Learner License