The problem of modeling the consequences of economic sanctions for companies is considered. The introduction of economic sanctions against the economy of a country leads to a sharp change in the conditions of economic activity and business of companies. Companies have to adapt to the “new reality”, make non-standard management decisions and support measures. Under these conditions, the task of studying the impact of sanctions on the financial stability and solvency of companies becomes relevant. Another important task is to model and evaluate the effects of various countermeasures aimed at maintaining financial stability. It is shown that in the context of the application of sanctions, the direct method based on dynamic modeling of the company's financial indicators and cash flows is preferable to the indirect method based on the calculation of a set of coefficients using statistical data. The article describes software tools for building a production and financial model of a company based on the TEO-INVEST software package. An illustrative example shows the methodology for using it to predict the dynamics of the financial performance of an enterprise and the choice of management decisions.