So the first set of numbers is a seed for the code that generates the second set?
That would imply that there is no casual relationship between the two, especially if it is being used as a security application..
It could be some sort of hash function or a seudo-random number generator but I don't think you will find any obvious pattern.
You could generate some form of rainbow table by writing code that generates the input sequence of numbers starting at 0000-0001 and ending at 9999-9999 (assuming that is a valid range - if they are time related that may not be the case) and analysing the output generated by the code (it is the source code that has been lost?) but I don't think that would help much in deducing the algorithm.