intent
stringlengths 4
313
| snippet
stringlengths 2
271
|
---|---|
move the value 0x1 into the bl register | mov bl, 0x1 |
perform a logical xor between the bx register and the ax register and save the result in ax | xor ax, bx |
push ebx on the stack | push ebx |
move the contents of the al register at the memory location specified by the operation [bp+0x0a] | mov [bp+0x0a], al |
move esp into edx | mov edx, esp |
allocate one byte of memory for var_a variable and initialize it to 232 | var_a db 232 |
place the address of var in eax | lea eax, [var] |
jump to the memory address 0x8 if the contents of the edx register is equal to the contents of the ebx register | cmp edx, ebx \n je 0x8 \n |
call the _params function | call _params |
push 0x61622f6e onto the stack | push 0x61622f6e |
jump to the fillOnes label if the contents of the al register is equal to the value 0xf2 | cmp al, 0xf2 \n je fillOnes |
multiply the value of eax by 2 | shl eax, 1 |
decrement ecx and jumps to the main_push label unless decrementing ecx caused its value to become zero | loop main_push |
load the effective address of the operation [ebx+0xb] into the eax register | lea eax,[ebx+0xb] |
move m_src2 to ebx | mov ebx, m_src2 |
move 0x3f into eax | mov eax, 0x3f |
call the esp function | call esp |
move the value in ecx into eax | mov eax, ecx |
put the syscall 0x10 into the eax register | push byte 0x10 \n pop eax |
make the system call pause | mov eax, 29 |
jump to the loop label if the zero flag is cleared | jnz loop |
put the syscall 6 into the eax register | push byte 6 \n pop eax |
jump to label modtest if below | jb modtest |
move 2001Q into cx | mov cx, 2001Q |
move the contents of the address [ebp-4] into the ebx register | mov ebx, [ebp-4] |
declare the setup label | setup: |
push the word 0x7773 onto the stack | push word 0x7773 |
call _exit | call _exit |
define the doubleword arr and initialize it to 50 | arr dd 50 |
create a string filename and initialize to 'readme.txt' | filename: db 'readme.txt', 0h |
move 16666 into dx | mov dx, 16666 |
return 0 status on exit | mov ebx, 0 |
move number 9 into ebx | mov ebx, 9 |
declare a byte containing the value 64 at label the memory location var | var db 64 |
define myList array of word and initialize it to 1, 2, 3, 4, and 5 | myList word 1,2,3,4,5 |
jump to the exit label if the contents of the dl register is equal to the vale 1 else jump to the reading label | cmp dl, 1 \n je exit \n jmp reading |
if the remainder is not equal to zero jump to local label checkint | jne checkint |
create label main_push | main_push: |
push 0x68732f2f onto the stack | push 0x68732f2f |
jump to loc_402B13 if the contents of the edx register is equal to 42 | cmp edx, 42 \n je short loc_402B13 |
jump to 804809a if not equal | jne 804809a |
move the byte in eax into cl | mov cl, byte [eax] |
move edi into eax | mov eax, edi |
push 0x6374652f onto the stack | push 0x6374652f |
define string as the byte string 'file1.txt' | string: db 'file1.txt' |
divide the contents of in eax by by the word value stored at memory location var | div dword [var] |
push the 0x7372656f onto the stack | push 0x7372656f |
load the effective address of esp into the ecx register | lea ecx, [esp] |
push double word 0x2f2f2f2f and the double word 0x7273752f onto the stack and point the ebx register to the stack register | push dword 0x2f2f2f2f \n push dword 0x7273752f \n mov ebx, esp |
add 0x66 to the contents in al and save the result in al | add al, 0x66 |
move edx into eax | mov eax, edx |
push the contents of the esi register onto the stack | push esi |
add c to eax | add eax, c |
move the contents stored at the address len into the dl register | mov dl, len |
if the contents of the al register is not equal to the contents of the cl register then jump short to the decode label else jump to the shellcode label | cmp al, cl \n jne short decode \n jmp shellcode |
define next_cycle label | next_cycle: |
push 0x72706475 onto the stack | push 0x72706475 |
initialize a string to 'egg mark' | db 'egg mark' |
declare a constant size and set equal to 25 | dim: equ 25 |
subtract 23 from the contents of the ecx register | sub ecx, 23 |
move 0x9ed into cx | mov cx, 0x9ed |
move ecx into esi | mov esi, ecx |
push the 0x31373737 onto the stack | push 0x31373737 |
move eax to ebp | mov ebp, eax |
compare the contents of al with the cl register | cmp al, cl |
compare the contents at memory location ebp+var_a with 0 | cmp [ebp+var_a], 0 |
push the dword 0x64616568 onto the stack | push dword 0x64616568 |
put the syscall 0x3 into the eax register | push byte 0x3 \n pop eax |
push the 0x37373333 onto the stack | push 0x37373333 |
file descriptor 1 standard output | mov ebx, 1 |
jump to the memory location loc_402B1D if the contents of the bl register is greater than or equal to the value 78h | cmp bl, 78h \n jge short loc_402B1D |
load the syscall value 0x58 for reboot in the al register | mov al, 0x58 |
jump short to _load_data label | jmp short _load_data |
push the word 0x4255 onto the stack | push word 0x4255 |
decrement the contents of the ecx register and jump to the dup2loop label if the result is not negative | dec ecx \n jns dup2loop |
jump to the _start label if the zero flag is cleared | jnz _start |
subtract the contents of the dx register from the contents of the bx register | sub bx, dx |
push the value 0x6475732f and the value 0x6374652f onto the stack and point the edx register to the stack register | push 0x6475732f \n push 0x6374652f \n mov edx, esp |
jump to the decode label if the zero flag is cleared | jnz decode |
jump short to the _parent label if the zero flag is cleared | jnz short _parent |
move 0x2e into the byte at address [esp] | mov byte [esp], 0x2e |
move the address of the stack pointer into ecx | mov ecx, esp |
jump to the shellcode label if the contents of the bl register is equal to the value 0xaa | cmp bl, 0xaa \n je shellcode |
move buff to ebx | mov ebx, buff |
move 11 into the byte at address al | mov byte al, 11 |
if the contents of the al register is equal to the value 0xf2 then jump to the fillOnes label | cmp al, 0xf2 \n je fillOnes |
push the byte 0x1f onto the stack | push byte 0x1f |
push the 0x6168732f onto the stack | push 0x6168732f |
push '//sh' onto the stack | push '//sh' |
push 0x636e2f2f onto the stack | push 0x636e2f2f |
move al into the address [esi+22] | mov [esi+22], al |
define the numeric label 1 | 1: |
if the contents of the eax register is zero then jump to the label ready_to_proxy | test eax, eax \n jz ready_to_proxy |
define key constant equal to 0xdeadbeef | key equ 0xdeadbeef |
declare the array of words word_table initialized to 134 345 564 and 123 | word_table dw 134, 345, 564, 123 |
push the contents of the bx register onto the stack | push bx |
make the system call execve | mov eax, 11 |
push the value 0x61702f2f and the value 0x6374652f onto the stack and point the ebx register to the stack register | push 0x61702f2f \n push 0x6374652f \n mov ebx, esp |
push 0xa onto the stack | push 0xa |
jump to child if zero | jz child |
Subsets and Splits