Thumbs up Extract a firmware

hi i need to extract a firmware from a moto g
how can i do this?