If it's a UK company and you can get their details you can report them to the TPS.
If they get enough complaints they will write them a letter and if they persist in being a problem they can be reported to Offcom
In practice I don't know that any action is ever taken through to prosecution.
I'm afraid it's not "illegal" in the sense that they're prosecuted for just making the calls and they know it.