It is very slow but it more or less works
Read 4kB at a time to speed up the analyzer
Bitwise analysis