intent
stringlengths 4
313
| snippet
stringlengths 2
271
|
---|---|
move 0x14 into dl | mov dl,0x14 |
decrement edx | dec edx |
jump to the callz label | jmp callz |
subtract the contents of ecx from the contents of ecx | sub ecx, ecx |
push 0x3170762d onto the stack | push 0x3170762d |
declare cmd string and initialize it to 'cat /etc/passwd' | cmd: db 'cat /etc/passwd' |
jump short to the output label | jmp short output |
put the byte VALUE into the eax register | push byte VALUE \n pop eax |
compare the dword at the address [eax-4] and egg1 | cmp dword [eax-4], egg1 |
move /bin/sh into the ebx register | push 0x68732f2f \n push 0x6e69622f \n mov ebx, esp |
make the system call lseek | mov eax, 19 |
ecx point to the top of the stack | mov ecx, esp |
load the effective address [ebp+28] into ecx | lea ecx, [ebp+28] |
zero out the eax register and jump to the l3 label if the contents of the edx register is equal to the contents of the eax register | xor eax, eax \n cmp edx, eax \n je l3 |
move the contents at memory address z to edx | mov edx, [z] |
jump to the _start label if the zero flag is set | jz _start |
define execfile function | execfile: |
move the contents of tmp variable into edx | mov edx, tmp |
move mxcsr to eax | mov eax, mxcsr |
push the 0x2f2f2f2f onto the stack | push 0x2f2f2f2f |
declare section bss | section .bss |
declare the main label | main: |
allocate memory for the marks array of words and initialize all elements to zero | marks dw 0, 0, 0, 0 |
jump to the exit label if the contents of the eax register is equal to the contents of the ebx register | cmp eax, ebx \n je exit |
move 4 to the eax register | mov eax, 4 |
add 30 to the single byte stored at memory address var | add byte [var], 30 |
perform the xor operation between cl and 0xaa and store the result in cl | xor cl, 0xaa |
jump short to the _execline label | jmp short _execline |
subtract 12 from the contents of the esp register | sub esp, 12 |
subtract the value 4 from the contents of the bl register and jump to the l2 label if the result is not negative | sub bl, 4 \n jns l2 |
jump to the memory address 0x40 if the contents of the al register is equal to the value 0x38 else push the byte representation of the value 0x1 onto the stack | cmp al, 0x38 \n je 0x40 \n push byte 0x1 |
push 20 onto the stack | push 20 |
perform the xor operation between the al register and the value 0x4a | xor al, 0x4a |
clear the esi register | xor esi, esi |
push 0x65726f43 onto the stack | push 0x65726f43 |
if the contents of the eax register is equal to the contents of the ebx register then jump to the connect label else jump to the exit label if the unsigned contents of the eax register is greater than the unsigned contents of the ebx register | cmp eax, ebx \n je connect \n ja exit |
divide ecx by 2 using right shift | shr ecx, 1 |
put the syscall 54 into the eax register | push byte 54 \n pop eax |
transfer the value 10 to the al register | mov al, 10 |
load the effective address of the result of the operation [ebp+39] into the ebx register | lea ebx, [ebp+39] |
move the effective address edx+ecx into al | mov al, byte [edx+ecx] |
jump to connect if equal | je connec |
wait for child to terminate | mov eax, 7 |
move cl into al | mov al, cl |
define connect function | connect: |
mask out lowest 4 bits of the ebx register | and ebx, 0000000fh |
push the value 0x7 onto the stack and point edx to the stack register | push 0x7 \n mov edx, esp |
move 0x04 into al | mov al, 0x04 |
load the effective address of the result of the operation [esi+18] into the ecx register | lea ecx, [esi+18] |
move ecx into edx | mov edx, ecx |
push the 0x742f2f2f onto the stack | push 0x742f2f2f |
define a byte and initialize it to 0xdeadbeef | dd 0xdeadbeef |
move the memory address of buffer variable into ecx | mov ecx, buffer |
push the 0x66 onto the stack | push 0x66 |
if the unsigned contents of the edx register is greater than the unsigned value 0x43 then jump to the loop label else push the contents of the edx register onto the stack | cmp edx, 0x43 \n ja loop \n push edx |
jump short to the callme label | jmp short callme |
compare the contents of the al register with the value 0xf2 | cmp al, 0xf2 |
define len equal to the length of msg | len equ $ - msg |
increment the byte at the address [esp+ecx] by one | inc byte [esp+ecx] |
multiply the contents of eax by 3 | mul 3 |
load the effective address [ebp+20] into esi | lea esi, [ebp+20] |
declare section .data | section .data |
push byte 16 onto stack | push byte 16 |
load the effective address [zero_reg+66h] into eax | lea eax, [zero_reg+66h] |
perform the xor operation between the ax register and the value 0x3041 | xor ax, 0x3041 |
copy the contents of ebx into eax register | mov eax, ebx |
move decimal number 3 into ebx | mov ebx, 3 |
push 0x31313131 onto the stack | push 0x31313131 |
move donelen into edx | mov edx, donelen |
move esp into ebx | mov ebx, esp |
jump to the loop2 label if the contents of the cl register is not equal to the value 0x3 | cmp cl, 0x3 \n jne loop2 |
perform a bit-wise inversion of the byte starting at the address in esi | not byte [esi] |
clear zero_reg | xor zero_reg, zero_reg |
move bl into the byte in edi | mov byte [edi], bl |
compare ecx with 0h | cmp ecx, 0h |
restore ecx from the value we pushed onto the stack at the start | pop ecx |
test the value of the al register | test al, al |
swap the contents of the eax register with the contents of the ebx register | xchg eax, ebx |
subtract 216 from the value stored in eax | sub eax, 216 |
perform a logical xor between the eax register and 0xffffffff and save the result in eax | xor eax, 0xffffffff |
push 'sswd' onto the stack | push 'sswd' |
declare the len label equal to the length of shellcode | len: equ $-shellcode |
push 0x746f6f72 onto the stack | push 0x746f6f72 |
decrement the contents of the ecx register and jump to the counter_is_now_zero label if the result is zero | dec ecx \n jz counter_is_now_zero |
jump short to the stage label | jmp short stage |
move the byte at the address [eax] into cl | mov cl, byte [eax] |
perform a logical xor between the ebx register and the ebp register and save the result in ebx | xor ebx, ebp |
push //sh to the stack | push 0x68732f2f |
move the memory offset table+esi*4 into ax | mov ax, table[esi*4] |
define format label | format: |
jump to 0x8 if not zero | jnz 0x8 |
declare the data label | data: |
move dl into the byte at address [ecx+92] | mov byte [ecx+92], dl |
push the byte 0x8 onto the stack and point edx to the stack register | push byte 0x8 \n mov edx, esp |
jump to the exit_on_error label if the zero flag is cleared | jnz exit_on_error |
load the effective address [esi+15] into ebx | lea ebx, [esi+15] |
if the byte starting at the address contained in the edx register is not equal to the byte value 0x2e then jump to the l2 label | cmp BYTE [edx], 0x2e \n jne l2 |
perform and operation between eax and 3f465456 and save the result in eax | and eax, 3f465456 |
push the value 0x6e7a762d onto the stack and point the ebx register to the stack register | push 0x6e7a762d \n mov ebx, esp |
jump to label exit if equal to 0 | je exit |
Subsets and Splits