What is this cable/device?
That's an infrared transmitter for extenders or control systems. That plastic chunk with the IR LED gets glued on a device like TV or Blu-Ray player so that it shines on the device's IR receiver.