Hello. I am writing a program (laboratory work) in which an assembler insert is needed. I am not familiar with the assembler myself, so I could be mistaken with the wording.
In general, it is necessary for the assembler insertion to save a dump of the code segment to the hard disk.
On the Internet, I found a piece of a program that encrypts a code segment:
use32 ;ROR section mov ebx, ${start+pack_len-1} mov ecx, ${pack_len-1} ror_loop: mov al, byte [ebx] ror al, ${key_encode} mov byte [ebx], al cmp ecx, 0 jz stop_loop dec ebx dec ecx jmp ror_loop stop_loop: ;GO OEP push ${original_eop} ret The fact is that the assembler insertion, which I cited above, is used in the python program. Only, this insert encrypts the code segment, and I need it to save the code segment to the file. And since I have no experience at all in assembly language, I ask you to help.