Rating:
Let's try to run.

It looks like keygen. Each character has its own number.
Let's take a look at the code.

Hmm, looks like this is what we should be able to do.
Let's get the key (I don't know what to call it) for each ascii character.

Ok, we have a code for each character.
Let's get the flag.