The used dedicated Vello EW-83M-F Lens Hood is specifically designed for use with Canon’s EF 24-105mm f/3.5-5.6 IS STM & EF 24-105mm f/4L IS II USM lenses.
It is primarily used to prevent unwanted stray light from entering the lens by extending and shading the end of it. A dedicated hood is crafted to perfectly suit the specific focal length of the lens it is designed for. Additionally, this hood features a non-glare matte finish on the interior surface to further prevent or limit lens flare. Also, since the end of the lens is extended, you get the added benefit of some extra protection from accidental impact.