ENDCAP cells are silly cells that extend the layout a little bit to make sure that the wells are long enough. There are some variants of this, depending on which side you are trying to extend. an ENDCAP cell for left/right side might be different from and ENDCAP for top/bottom sides. Corners sometimes can be special cases too. This changes with technology. In old techs, there were no ENDCAP cells at all. Then we started to see the need for side caps on the left/right of a standard cell row, perhaps around the 90nm era. Then we started to see top and bottom as well in the 32nm era more or less. In newer FinFET nodes you can have top/bottom/left/right/corners.