Let me clarify this: Yandex would clearly do better without the war but unlike many other companies it will come out ahead as it can pick up a lot of business through "import substitution".
Benefiting from something doesn't mean you won't suffer losses anyway. At this point which Russian company isn't performing negatively different since the day of the invasion?
This is not true. On the contrary, Yandex's business has suffered greatly. You can see it for yourself here https://www.nasdaq.com/market-activity/stocks/yndx
The company's employees are almost universally opposed to the war, but opinions about exactly how it should be stopped are, indeed, conflicted.