The end of the handbrake cable I dont think is detachable.
There are the two you mentioned that hold the shoes, then there's a long spring usually at the top and a short one at the bottom bestrewn the shoes to retract them, and that's it. They sound like spare shoe retainers that someone tossed in there so they wouldn't lose them?