bits 64 global _start _start: push rax push rdi push rsi push rdx mov rdi, 1 lea rsi, [rel msg] mov rax, rsi sub rax, qword [rel text_section] ;text_section address mov r8, qword [rel section_sisze] ;text_section size mov r9, 0 ;increment register xor r10, r10 ; encrypt: ; cmp r8, r9 ; je end_encrypt ; mov r10b, byte[rax + r9] ; inc r10b ;rot + 1 ; mov byte[rax + r9], r10b ; inc r9 ; jmp encrypt ; end_encrypt: mov rdx, 10 mov rax, 1 syscall pop rdx pop rsi pop rdi pop rax jmp 0x00000000 ;for now it needs to be the first jmp msg db "..WOODY..",10 text_section dq 0xbabababababababa section_sisze dq 0xcacacacacacacaca