We know Iran is driving around bongo trucks with small SAM systems on the back that use passive IRST rather than radar. The missiles themselves have the capability to cruise in the air for some period of time searching for a target before kicking in the engine for a last, fast sprint to the target. Because they are electro-optical (and piloted by a human), even early-warning and flare deployments won't do very much against a skilled operator.
> custom software
Are you referring to screen recordings they've released?
Compare that to Ukraine defending it's skies with NATO (well mostly French IIRC) AWACS feeding early data which is what made MANPADS in Ukraine so effective against Russian attacks.
And maybe they do have some kind of radars?