Haram deeds have sin and Advertising for Haram deeds is cooperating in sin. Advertising for a sin business is cooperating in sin. Cooperating in sin is prohibited in the holy Quran:
...وَتَعَاوَنُوا عَلَى الْبِرِّ وَالتَّقْوَىٰ ۖ وَلَا تَعَاوَنُوا
عَلَى الْإِثْمِ وَالْعُدْوَانِ ۚ وَاتَّقُوا اللَّهَ ۖ إِنَّ اللَّهَ
... And cooperate in righteousness and piety, but do not cooperate in
sin and aggression. And fear Allah; indeed, Allah is severe in
And we should know who provide for us is Allah and not the boss:
أَمَّنْ هَـٰذَا الَّذِي يَرْزُقُكُمْ إِنْ أَمْسَكَ رِزْقَهُ ۚ بَل
لَّجُّوا فِي عُتُوٍّ وَنُفُورٍ
Or who is it that could provide for you if He withheld His provision?
But they have persisted in insolence and aversion. http://tanzil.net/#67:21
What God has provided for you including laptop is in sky and you should ask it from God by dua. cannot God give you a laptop by Halal way?
وَفِي السَّمَاءِ رِزْقُكُمْ وَمَا تُوعَدُونَ
And in the heaven is your provision and whatever you are promised.
The ruling about past income is that because this has been a Haram business so that business has not established in Islam and so you do not own the income. so this money is not yours at all and you should return it or have it by satisfaction of its real owner as a gift for example or if you cannot find the owner of a money you should pass it to a qualified scholar to spend it for Islamic purposes or pay it for charity by permission of qualified jurist ruler.
Reference: QA from website of Imam Khamenei