After spending a lot of time looking into the functions and algorithms, I noticed that because the string started with flag{ and the differences in the numbers matched that, we could easily use that to figure out the alphabetical parts of the strings. Figuring out the rest of the flag's string would be trivial from there.