All welcome.
Wrote the algorithm for decrypting the firmware. It seems all is well, but did not take into account the speed of writing to the file. In general, I read four bytes from the firmware, for it is necessary, and after decrypting them, I am writing to a new file. But here's the problem, the firmware weighs ~ 71 MB and writing to the file takes a very long time. How can I optimize for faster recording?