Celtic have been handed a home draw in the fifth round of the Scottish Cup, while Hearts will take on Falkirk.
Rangers will face a trip to either Forfar Athletic or Forres Mechanics if they dispose of St Johnstone in their fourth round clash.
Second Division duo Peterhead and Queens Park will battle it out for the right to make the trip to Parkhead to take on Gordon Strachan's Celtic side.
Hearts have been rewarded for their fourth round victory over Hibernian with a home tie with fellow SPL side Falkirk.
Second Division outfit East Fife have been handed a lucrative tie with Aberdeen at Pittodrie.
The winners of the replay between Ayr United and local rivals Kilmarnock will face a tricky trip to Inverness.
Hamilton will face Dundee United in an all-SPL tie after Craig Levein's men saw off East Stirling.
First Division pair Airdrie and Dunfermline will lock horns at the Excelsior Stadium.
Forfar Athletic or Forres Mechanics v St Johnstone or Rangers
Airdrie United v Dunfermline
Hearts v Falkirk
Inverurie Locos or Motherwell v Brechin City or St Mirren
Aberdeen v East Fife
Celtic v Peterhead or Queen's Park
Hamilton v Dundee United
Inverness Caledonian Thistle v Ayr United or Kilmarnock
Tie to be played on the weekend of February 7-8.