Let the vertices be
\[A(3,5,-4),\qquad B(-1,1,2),\qquad C(-5,-5,-2).\]
The direction ratios of a side are the differences of the coordinates of its endpoints. The direction cosines are obtained by dividing these direction ratios by the length of the side.
Side \(AB\):
\[\overrightarrow{AB}=(-1-3,\,1-5,\,2-(-4))=(-4,-4,6).\]
\[|\overrightarrow{AB}|=\sqrt{(-4)^2+(-4)^2+6^2}=\sqrt{16+16+36}=\sqrt{68}=2\sqrt{17}.\]
Hence the direction cosines of \(AB\) are
\[\left(\frac{-4}{2\sqrt{17}},\frac{-4}{2\sqrt{17}},\frac{6}{2\sqrt{17}}\right)
=\left(\frac{-2}{\sqrt{17}},\frac{-2}{\sqrt{17}},\frac{3}{\sqrt{17}}\right).\]
Side \(BC\):
\[\overrightarrow{BC}=(-5-(-1),\,-5-1,\,-2-2)=(-4,-6,-4).\]
\[|\overrightarrow{BC}|=\sqrt{(-4)^2+(-6)^2+(-4)^2}=\sqrt{16+36+16}=\sqrt{68}=2\sqrt{17}.\]
Thus the direction cosines of \(BC\) are
\[\left(\frac{-4}{2\sqrt{17}},\frac{-6}{2\sqrt{17}},\frac{-4}{2\sqrt{17}}\right)
=\left(\frac{-2}{\sqrt{17}},\frac{-3}{\sqrt{17}},\frac{-2}{\sqrt{17}}\right).\]
Side \(CA\):
\[\overrightarrow{CA}=(3-(-5),\,5-(-5),\,-4-(-2))=(8,10,-2).\]
\[|\overrightarrow{CA}|=\sqrt{8^2+10^2+(-2)^2}=\sqrt{64+100+4}=\sqrt{168}=2\sqrt{42}.\]
Therefore the direction cosines of \(CA\) are
\[\left(\frac{8}{2\sqrt{42}},\frac{10}{2\sqrt{42}},\frac{-2}{2\sqrt{42}}\right)
=\left(\frac{4}{\sqrt{42}},\frac{5}{\sqrt{42}},\frac{-1}{\sqrt{42}}\right).\]
Taking the opposite direction along a side changes the signs of all three direction cosines, so the answers may also be written with all signs reversed.