Real Analysis Approach:
First make the substitution $t= \cosh(x)$. Then integrate by parts.
For the antiderivative of $\frac{1}{(1+t^{2})^{2}}$ choose $$\frac{1}{2} \left( \frac{t}{1+t^{2}} + \arctan(t) \right) - \frac{\pi}{4} = \frac{1}{2} \left( \frac{t}{1+t^{2}}- \arctan \left(\frac{1}{t} \right) \right). $$
This will make the boundary term vanish as $t \to \infty$.
$$ \begin{align} I &= \int_0^{\infty} \frac{x \sinh(x)}{\left(1+\cosh^2(x)\right)^2} \, \mathrm dx \\ &= \int_{1}^{\infty} \frac{\operatorname{arcosh}(t)}{(1+t^{2})^{2}} \, \mathrm dt \\ &= \small \frac{\operatorname{arcosh}(t)}{2} \left(\frac{t}{1+t^{2}} - \arctan \left(\frac{1}{t} \right) \right) \Bigg|_{1}^{\infty} - \frac{1}{2}\int_{1}^{\infty} \frac{1}{\sqrt{t^{2}-1}} \left(\frac{t}{1+t^{2}}- \arctan \left(\frac{1}{t} \right) \right)\, \mathrm dt \\ &= 0+ \frac{1}{2} \left( \int_{1}^{\infty}\frac{\arctan \left(\frac{1}{t} \right) }{\sqrt{t^{2}-1}} \, \mathrm dt - \int_{1}^{\infty} \frac{t}{\sqrt{t^{2}-1}\left(1+t^{2} \right)} \, \mathrm dt \right) \\ &= \frac{1}{2} \left(-\int_{1}^{0} \frac{\arctan(v)}{\sqrt{\left(\frac{1}{v} \right)^{2}-1}} \frac{\mathrm d v}{v^{2}} - \int_{0}^{\infty} \frac{w}{\sqrt{w^{2}} (1+1+w^{2})} \, \mathrm d w\right) \\ &= \frac{1}{2} \left(\int_{0}^{1} \frac{\arctan (v)}{v \sqrt{1-v^{2}}} \, \mathrm dv - \int_{0}^{\infty} \frac{1}{2+w^{2}} \, \mathrm dw \right) \\ &\overset{\spadesuit}{=} \frac{1}{2} \left(\frac{\pi}{2} \, \operatorname{arsinh}(1)- \frac{\pi}{2 \sqrt{2}} \right) \\&= \frac{\pi}{8} \left(2\ln(1+\sqrt{2})-\sqrt{2} \right). \end{align}$$
$\spadesuit$ Calculate $\int_{0}^{1}\frac{\arctan(x)}{x\sqrt{1-x^2}}dx$
Complex Analysis Approach:
The following approach is somewhat similar to Svyatoslav's answer.
In a previous answer I used a rectangular contour to show that $$\int_{0}^{\infty} \frac{x \sinh(x)}{\cos(2a)+ \cosh(2x)} \, \mathrm dx = \frac{\pi}{4} \frac{a}{\sin (a)} , \quad -\frac{\pi}{2} < \Re(a) < \frac{\pi}{2}.$$
(The value of the integral at $a=0$ is $\lim_{a \to 0} \frac{\pi}{4} \frac{a}{\sin (a)} = \frac{\pi}{4}.$)
Differentiating both sides of the equation with respect to $a$, we have $$ 2 \sin(2a) \int_{0}^{\infty} \frac{x \sinh (x)}{\left( \cos(2a)+\cosh(2x)\right)^{2}} \, \mathrm dx = \frac{\pi}{4} \left(\csc(a) - a \cos(a) \csc^{2}(a) \right). $$
Therefore,
$ \begin{align} \int_{0}^{\infty} \frac{x \sinh(x)}{\left(1+\cosh^{2}(x) \right)^{2}} \, \mathrm dx &= 4\int_{0}^{\infty} \frac{x \sinh (x)}{ \left(3+ \cosh(2x) \right)^{2}} \, \mathrm dx \\ &= \small4 \, \frac{1}{2 \sin \left(\arccos(3) \right)} \frac{\pi}{4} \left(\csc \left(\frac{\arccos(3)}{2} \right) - \frac{\arccos(3)}{2} \cos \left(\frac{\arccos(3)}{2} \right) \csc^{2} \left(\frac{\arccos(3)}{2} \right)\right) \\ &\overset{\diamondsuit}{=} 4 \, \frac{1}{2 \sqrt{1-3^{2}}} \frac{\pi}{4} \left(\frac{\sqrt{2}}{\sqrt{1-3}} - \frac{\arccos(3)}{2} \sqrt{\frac{1+3}{2}} \frac{2}{1-3}\right) \\ &= \frac{\pi}{4 i \sqrt{2}} \left(\frac{1}{i} + \frac{\arccos(3) \sqrt{2}}{2} \right) \\ &\overset{\clubsuit}{=} \frac{\pi}{4 i \sqrt{2}} \left(\frac{1}{i} -\frac{\sqrt{2}}{2} i \ln \left(3-2 \sqrt{2} \right) \right) \\ &= \frac{\pi}{8} \left(- \ln \left(3-2 \sqrt{2} \right)-\sqrt{2} \right) \\ &= \frac{\pi}{8} \left( -\ln \left((1+\sqrt{2})^{-2} \right)-\sqrt{2} \right) \\ &= \frac{\pi}{8} \left(2\ln \left(1+\sqrt{2} \right) -\sqrt{2}
\right). \end{align}$
$\diamondsuit$ Use the half-angle identities $\cos^{2} (\frac{z}{2}) = \frac{1+\cos (z)}{2}$ and $\sin^{2} (\frac{z}{2}) = \frac{1-\cos (z)}{2}. $
$\clubsuit$ https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Logarithmic_forms