Step 1: Use series expansions.
To solve this, we expand the terms \( e^{a(x-1)} \), \( \cos(bx) \), and \( e^{-x}(c-1) \) into their Taylor series around \( x = 0 \).
Step 2: Analyze the denominator.
Similarly, expand \( x \cos x - \ln(1 + x) \) using the series for \( \cos x \) and \( \ln(1 + x) \).
Step 3: Apply the limit.
After simplifying the expression and equating the limit to 2, we solve for \( a^2 + b^2 + c^2 \).
Final Answer:
\[
\boxed{10}.
\]