Ah, the dreaded "Gotten". ...
Gotten is the past tense of GET. However, it came over to the Americas with the British, but over time, it seemed to drop out of all UK vernacular, and only American's have held onto the word. We use it in a way that no other English speaking country does. It is reported that the UK only use it in the way that you described "ill-gotten means" or the like. We use it as "I would have gotten the bread yesterday if you told me we were out of bread." Or, "She had gotten the infection from bad seafood."