It's certainly well known as The Rogues' March. I have heard it said that it was used as a gallows march and that one version only had thirteen bars because that's how long it took them to reach the gallows ...
Probably not true but it's a good story anyway.
Marje