Work ethic is internal; it is part of who you are. Doing your best, doing the work that needs doing, doing your best to help co-workers - these things are about you and doing them anyway is good for you and will help you in this job and every other you have; every job has things to learn from. And you can do this with inside eye rolls and mild disengagement from the work environment you find yourself in until moving on happens from their acts or yours.
As far as which factor bears the most weight, easy - management. External factors will come and go, cannot be predicted, and cannot be controlled; you can only control how you respond to them. Management lays the groundwork, structure, accountability and practices that either make a company resilient, creative, transparent, effective and efficient OR makes it Fossil.
Good times or bad, good management helps weather them, capitalize on them, or endure them with the least difficulty. But teams cannot do these things on their own down in the middle while stranded in silos without transparency and accountability, especially at a place that does not even have an org chart.