If you have the summary statistics (sample mean, sample standard deviation, and sample size), you should be able to reconstruct the ANOVA table directly without simulation.
There is a 1:1 relationship between $SS$ and $s$: $$s = \sqrt{s^2} = \sqrt{\frac{SS}{n-1}}$$ Therefore: $$SS_A=s_A^2\left(n_A-1\right)$$ $$SS_B=s_B^2\left(n_B-1\right)$$ $$SS_{AB}=s_{AB}^2\left(n_{AB}-1\right)$$
If you do not already have $s_{AB}$, I believe that $s_{pooled}$ would provide an acceptable alternative, which is defined based upon a series of samples, $s^2_i$, the $i$th sample variance, and $n_i$, the $i$th sample size (which does not need to be constant): $$s_{pooled}=\sqrt{\frac{\sum^m_{i=1} \left (n_i-1 \right )s^2_i}{\sum^m_{i=1}\left ( n_i-1 \right )}}$$
In doing some additional research, I found this web page which claims to conduct 2-way ANOVAS from summary data:
http://vassarstats.net/anova2u.html
This presentation discusses the method for using summary data to create a 2-way ANOVA:
www.stat.ufl.edu/~winner/cases/ethicgen.ppt
This paper discusses the math and then proposes a STATA macro to perform a 2-way ANOVA from summary data:
https://www.pjsor.com/index.php/pjsor/article/download/87/64
In addition, https://www.google.com/#safe=active&q=%222-way+ANOVA+from+summary+data%22 yields a large number of answers to this question on multiple platforms. (It is interesting to note that your question is the only result if you keep the quotes but spell out "Two-way.")