intent
stringlengths 4
313
| snippet
stringlengths 2
271
|
---|---|
put the syscall 0x64 into the eax register | push byte 0x64 \n pop eax |
move value of 0x010ch into the register ax | mov ax, 010ch |
declare the global _start label | global _start: |
negate all the bits of the ecx register | not ecx |
push the contents of the ebx register onto the stack and point ecx to the stack register | push ebx \n mov ecx, esp |
if the contents of the al register is greater than the decimal value 9 then jump to the label l1 | cmp al, 9 \n jg l1 |
jump to the stage label if the zero flag is cleared | jnz stage |
move 1+0feh into dl | mov dl, 1+0feh |
push the 0x6e776f64 onto the stack | push 0x6e776f64 |
move 16 into al | mov al, 16 |
subtract one from the contents of eax | dec eax |
jump to the label ready_to_proxy if the contents of the eax register is zero | test eax, eax \n jz ready_to_proxy |
move /bin/sh into the eax register | push 0x68732f2f \n push 0x6e69622f \n mov eax, esp |
move the contents at the memory location specified by the result of the operation [ebp+12] into the ecx register | mov ecx, [ebp+12] |
move address of response variable into ecx | mov ecx, response |
push the byte +0x2 onto the stack | push byte +0x2 |
jump to the encoded label if the result of the logical xor between the bl register and the value 0xBB is zero | xor bl, 0xBB \n jz encoded |
move the value 0x301 into the cx register | mov cx, 0x301 |
push the contents of the edx register onto the stack | push edx |
subtract 0x3bd04ede from the contents in eax and save the result in eax | sub eax, 0x3bd04ede |
clear the ecx register | xor ecx, ecx |
push the word 0x662d onto the stack and point the eax register to the stack register | push word 0x662d \n mov eax, esp |
push 0x6168732f to the stack | push 0x6168732f |
push address of string print_msg | push offset printf_msg |
move the address of msg string into eax | mov eax, msg |
push the contents of the edx register onto the stack and point ecx to the stack register | push edx \n mov ecx, esp |
define sys_execve equal to 0x0b | sys_execve equ 0x0b |
compare the dword at the memory location [eax-8] with the value of egg | cmp dword [eax-8],egg |
swap the values si ebx and bx registers | xchg si, bx |
increment the address in eax by one byte | inc eax |
put the syscall 5 into the eax register | push byte 5 \n pop eax |
declare the loopinghere label | loopinghere: |
define the label 3 | 3: |
jump to _read | jmp _read |
subtract the contents of the ecx register from the contents of the ecx register | sub ecx, ecx |
move the remainder into edi | mov edi, edx |
jump to the L1 label if the contents of the dx register is equal to the value 0x03e8 | cmp dx, 0x03e8 \n je L1 |
add the contents of edi to the contents of edi | add edi, edi |
move 876189623 into edi | mov edi, 876189623 |
move 3 to the eax register | mov eax, 3 |
push the word 0x6d6f onto the stack | push word 0x6d6f |
push 0x04020a0a onto the stack | push 0x04020a0a |
declare the loader label | loader: |
push 0x0a3a7964 onto the stack | push 0x0a3a7964 |
push the value 0x64687373 onto the stack and point the eax register to the stack register | push 0x64687373 \n mov eax, esp |
push 0x6f635f64 onto the stack | push 0x6f635f64 |
invoke sys_lseek | mov eax, 19 |
decrement ecx by 1 | dec ecx |
jump to the label _parent if the contents of the eax register is not zero else restore the top of the stack into the ecx register | test eax, eax \n jnz _parent \n pop ecx |
move 132 to eax 132 | mov eax, 132 |
left shift the contents of the edx register by 24 bits | shl edx, 24 |
move 1 into bl | mov bl, 1 |
add 0xb8 to the cl register | add cl, 0xb8 |
move 102 into ax | mov ax, 102 |
subtract the contents of the al register from the contents of the dl register and jump to the decode_pr label if the result is not negative | sub dl, al \n jns decode_pr |
push the value 0x6475732f and the value 0x6374652f onto the stack and point the ebx register to the stack register | push 0x6475732f \n push 0x6374652f \n mov ebx, esp |
subtract the contents of ax from the contents of ax | sub ax, ax |
push edx onto the stack | push edx |
push 0x2e373231 onto the stack | push 0x2e373231 |
make the system call mmap | mov eax, 90 |
move 2 into al | mov al, 2 |
init edi 0 | xor edi, edi |
decrement the edx register by one | dec edx |
move dword 0x65676760 into edx | mov edx, dword 0x65676760 |
reserve 64 bytes for buffer | buffer: resb 64 |
push double word 0x74652f2f onto the stack and point the edx register to the stack register | push dword 0x74652f2f \n mov edx, esp |
push 0x6567772f onto the stack | push 0x6567772f |
add 01 to ax | add ax, 01 |
add 2 to the contents of the eax register | add eax, 2 |
allocate one byte of memory for var_b variable and initialize it to 'c' | var_b db 'c' |
allocate one byte of memory for a_letter variable and initialize it to 'd' | a_letter db 'd' |
jump short to the label _parent if the contents of the eax register is not zero | test eax, eax \n jnz short _parent |
push the value 0x6e69622f onto the stack | push 0x6e69622f |
place address buff into esi | mov esi, buff |
push the byte 0x05 onto the stack | push byte 0x05 |
put the syscall 0x17 into the eax register | push byte 0x17 \n pop eax |
define an array of 20 initialized word | array word 20 |
system call getpid | mov eax, 20 |
multiply the contents of eax by the 32-bit contents of the memory location var | mul [var] |
push 0x782f2f32 to the stack | push 0x782f2f32 |
push the byte 0x11 onto the stack and point ebx to the stack register | push byte 0x11 \n mov ebx, esp |
left rotate the contents of the edx register by 0x4 bits | rol edx, 0x4 |
push 0x742f3a31 onto the stack | push 0x742f3a31 |
push the word bx onto the stack | push word bx |
move 0x14 into bl | mov bl, 0x14 |
push the word 0x7773 to the stack | push word 0x7773 |
move 0x1ff into cx | mov cx, 0x1ff |
negate the contents of var | neg var |
subtract 15444 from the contents of the dx register | sub dx, 15444 |
define set_argv label | set_argv: |
move 0x169 into ax | mov ax, 0x169 |
pop the value on the stack back into esi | pop esi |
push 0x2f6e6962 onto the stack | push 0x2f6e6962 |
define the byte value bytes and initialize it to 20 | bytes db 20 |
system call execve | mov eax, 11 |
subtract 0xd from the byte at the address esi | sub byte [esi], 0xd |
move the contents of the eax register into the ebx register | mov ebx, eax |
subtract 20000h from eax register | sub eax,20000h |
move 0x1 into lower byte of the eax register | mov al, 0x1 |
add 0x40 to the al register | add al, 0x40 |
Subsets and Splits