Green’s Dictionary of Slang

sure! excl.

also shure!
[coined in the UK, the term moved to the US by the mid-19C, although it returned to the UK in the early 20C+]

[early 18C+] definitely! absolutely!

In exclamations

sure, Mike!

[late 19C-1920s] (US) excl. of affirmation.