After lagging behind its mega-cap tech rivals for months, Microsoft just made a dramatic comeback that caught Wall Street's full attention.

MSFT defies tech sector weakness, rising 2% to $389.65. Key resistance sits near $395.50 ahead of upcoming earnings.

Microsoft Corp (NASDAQ:MSFT) shares are gaining Tuesday. Citizens Securities analyst Patrick Walravens kept his Market Outperform rating and $550 price target. Here's what you…