Can dynare4.0.4 make "shock_decomposition" of the variables?

ths

I don’t know, you have to try it. This version is so old, we don’t really support it anymore. Why don’t you upgrade?

As a complement: the shock decomposition is present in the latest Dynare (4.3.2), so you should probably upgrade.