Its not possible. All languages C, C++, Delphi, VB, etc create a file. So you have no way of knowing which language the file is. Further more, there is more than one way of accomplishing most things in asm, so different compilers will transform the same code into different asm. The best you can do is interpret the file as asm.