Captain Deepak Thakur's brilliant hat-trick helped Indian Oil Corporation (IOC) rally brilliantly and beat Karnataka XI 4-3 in a quarter-final match of the DCB Presents Aga Khan hockey tournament - 2011, at the Bombay Gymkhana ground, in Mumbai, on Tuesday.