I recently came across a script that would read a file into a string, then do the equivalent of
CallWindowProc((pointer to string), (pointer to encrypted string), (length of encrypted string), 0, 0)
in the scripting language to decrypt an encrypted string defined earlier in the file. What's going on here? How did the call to
CallWindowProc decrypt the string?