intent
stringlengths
4
313
snippet
stringlengths
2
271
push the word 0x1b6 onto the stack
push word 0x1b6
set signal delivery alarm clock
mov eax, 27
define shift_decode label
shift_decode:
push the dword [edx+2] onto the stack
push dword [edx+2]
declare section containing uninitialized data
section .bss
restore the top of the stack into edx register
pop edx
push double word 0x2f2f2f2f and the double word 0x7273752f onto the stack and point the eax register to the stack register
push dword 0x2f2f2f2f \n push dword 0x7273752f \n mov eax, esp
move 4 bytes at memory address esi-4 into eax
mov eax, [esi-4]
jump to the lowbound label if the byte starting at the address contained in the esi register is lower than the byte value 0x7 else subtract the byte value 0x7 from byte starting at the address contained in the esi register
cmp BYTE [esi], 0x7 \n jl lowbound \n sub BYTE [esi], 0x7
declare odd_numer function
odd_number:
move ecx to edi
mov edi, ecx
decrement the cl register by one
dec cl
increment address if no match
jnz incaddr
system call alarm
mov eax, 27
push the dword 0x656e7265 onto the stack
push dword 0x656e7265
push the byte 0x02 to the stack
push byte 0x02
declare section containing code
section .text
decrease eax by 3
sub eax, 3
define msg_len equal to the length of msg
msg_len equ $-msg
move bl into the single byte at the address stored in esi+ecx
mov byte [esi+ecx], bl
move the contents of the esi register into the ax register
mov ax, [esi]
load the effective address of edx+0x4 into ebx
lea ebx, [edx+0x4]
decrement the ecx register and jump to the l2 label if the contents of the ecx register is not zero else move the contents of the esp register into the ebx register
loop l2 \n mov ebx, esp
move 0x0 into ecx
mov ecx, 0x0
push double word 0x74652f2f onto the stack and point the ebx register to the stack register
push dword 0x74652f2f \n mov ebx, esp
move 0x02 into bl
mov bl, 0x02
push 0x6475732f onto the stack
push 0x6475732f
push the value 0x61702f2f and the value 0x6374652f onto the stack and point the ecx register to the stack register
push 0x61702f2f \n push 0x6374652f \n mov ecx, esp
decrement the esp register by one
dec esp
test the contents of the ebx register
test ebx, ebx
jump to the memory address 0x47 if the contents of the eax register is equal to the contents of the edi register else zero out the ecx register
cmp eax, ebx \n je 0x47 \n xor ecx, ecx
add 40000h to eax register
add eax, 40000h
move 0x782f2f into eax
mov eax, 0x782f2f
if the contents of the al register is greater than or equal to the decimal value 9 then jump to the label l1
cmp al, 9 \n jge l1
declare the todo label
todo:
perform the xor operation between the byte at memory location esi+ecx and 0x0f
xor byte [esi+ecx],0x0f
jump to the decode_insertion label if the contents of the al register is equal to the vale 0xaa else perform a logical xor operation between the al register and the bl register and store the result in the al register
cmp al, 0xaa \n je decode_insertion \n xor al, bl
jump to the point in the code labeled nextchar
jmp nextchar
init eax 0
xor eax, eax
move filename into ebx
mov ebx, filename
jump to the Next_Cycle label if the result of the logical xor between the dl register and the value 0xBB is zero
xor dl, 0xBB \n jz Next_Cycle
move the contents of eax into the 4 bytes at memory address var1
mov [var1], eax
push the contents of edx register onto the stack
push edx
jump to the _while_loop label if the operands of the above comparison are not equals
jne short _while_loop
multiply edx by 2 using left shift
shl edx, 1
invoke sys_fork
mov eax, 2
compare the contents of eax and the contents of eax
cmp eax, eax
push name onto the stack
push name
put the syscall 15 into the eax register
push byte 15 \n pop eax
system call kill
mov eax, 37
move eax into ebx+12
mov [ebx+12], eax
move 4 into bl
mov bl, 4
subtract 1564 from ax and save the result into ax
sub ax, 1564
add 64 to the contents of the edx register
add edx, 64
add the contents of edx to the contents of eax
add eax, edx
move dl into bl
mov bl, dl
move 25 decimal into the memory address ecx
mov [ecx], 25
define the byte string 'egg mark'
db 'egg mark'
move 0x3 into bl
mov bl, 0x3
move the byte at the address 0bh into al
mov al, byte 0bh
jump to the _end label if the value in the eax register is not equal to the doubleword addressed by edi
scasd \n jnz _end
push the contents of the ebp register onto the stack
push ebp
compare ecx and ebp
cmp ecx, ebp
push the 0x2 onto the stack
push 0x2
move n to ebx
mov ebx, n
move the single byte in esi into dl
mov dl, byte [esi]
multiply eax by 0x10 and stores the result in edx:eax
mul 0x10
increment the contents of the esp register
inc esp
subtract 1564 from the contents of ax register and save the result in ax
sub ax, 1564
increment edx
inc edx
push the byte 0x0b onto the stack
push byte 0x0b
pop the top element of the stack into memory at the four bytes starting at location eax
pop [eax]
push the doubleword ebx to the stack
push dword ebx
move filename into edx
mov edx, filename
jump to the label l3 if the contents of the dl register is greater than the decimal value 27
cmp dl, 27 \n jg l3
define stage label
stage:
push the contents of the cx register onto the stack
push cx
put 8 into edx
mov edx, 8
push 0x53534150 onto the stack
push 0x53534150
if the byte starting at the address contained in the esi register is lower than the byte value 0x7 then jump to the lowbound label else subtract the byte value 0x7 from byte starting at the address contained in the esi register
cmp BYTE [esi], 0x7 \n jl lowbound \n sub BYTE [esi], 0x7
jump short to _star label
jmp short _star
call the quit function
call quit
move the memory address of message string into ecx
mov ecx, msg
jump to the exit label if the operands of the above comparison are equals
je exit
put the syscall 1 into the eax register
push byte 1 \n pop eax
zero out the eax register and the ecx register
xor ecx, ecx \n mul ecx
jump to the infinite label if the contents of the eax register is not equal to the contents of the edi register
cmp eax, edi \n jne infinite
decrement the contents of the ecx register and jump to the loop2 label if the result is not negative
dec ecx \n jns loop2
load the effective address [zero_reg+117] into ecx
lea ecx, [zero_reg+117]
push 0x29 to the stack
push 0x29
compare the contents of the dl register and 1h
cmp dl, 1h
if the contents of the bl register is equal to the contents of the al register then jump to the loop_2 label
cmp bl, al \n je loop_2
syscall 102
mov al, 0x66
load the effective address of the result of the operation [zero_reg+3] into the ebx register
lea ebx, [zero_reg+3]
execute the reboot syscall
int 0x80
move decimal 2 into edx
mov edx, 2
clear the bx register
xor bx, bx
negate all the bits of dl register
not dl
push esi to the stack
push esi
move /bin/sh into the edx register
push 0x68732f2f \n push 0x6e69622f \n mov edx, esp