Enigma Code was given a positive ride by Joseph O'Brien to claim the seven furlong handicap at Dundalk.
The James McAuley-trained gelding kicked on two furlongs from home and had enough in hand to hold the run of Inwood by half a length.
"His form looks dreadful but this has been coming," said McAuley afterwards.
"He's had a couple of dreadful draws up here and didn't handle the soft ground at the Curragh last time. He's just been unfortunate for a while.
"He's been getting down to a reasonable mark. He's better over six furlongs as seven just stretches him a bit. Joseph is great value for the 7lb."