intent
stringlengths 4
313
| snippet
stringlengths 2
271
|
---|---|
push the word 0x5974 onto the stack
|
push word 0x5974
|
subtract the contents of al register from the contents of bl register and save the result in bl
|
sub bl, al
|
push 0x81e3a8c0 onto the stack
|
push 0x81e3a8c0
|
compare the contents of edx to 42
|
cmp edx, 42
|
pop the value on the stack back into edx
|
pop edx
|
define an array of bytes and initialize it to 0x3e,0xcd,0x5d,0x75,0x3c,0x3c,0x80,0x75,0x75,0x3c,0x6f,0x76,0x7b
|
db 0x3e,0xcd,0x5d,0x75,0x3c,0x3c,0x80,0x75,0x75,0x3c,0x6f,0x76,0x7b
|
subtract 0x2c3d2dff from the contents in eax and save the result in eax
|
sub eax, 0x2c3d2dff
|
jump to the address specified by the operation fupdisasm+3
|
jmp fupdisasm+3
|
move 61 into al
|
mov al, 61
|
perform a logical xor between the ebx register and the word __flag_byte and save the result in ebx
|
xor ebx, word __flag_byte
|
divide ebx by 4 using right shift
|
shr ebx, 2
|
define the _dup2_loop label
|
_dup2_loop:
|
define the byte addr and initialize it to 0x1
|
addr: db 0x1
|
if the contents of the eax register is not zero then jump to the label l1 else call the function myfunct
|
test eax, eax \n jnz l1 \n call myfunct
|
jump to the edi label
|
jmp edi
|
move 0x1 into dl
|
mov dl, 0x1
|
push the contents of the edi register onto the stack and point edx to the stack register
|
push edi \n mov edx, esp
|
jump to the memory address 0x47 if the contents of the eax register is equal to the contents of the edi register
|
cmp eax, ebx \n je 0x47
|
define chmod_call equal to 15
|
chmod_call equ 15
|
write to the stdout file
|
mov ebx, 1
|
push the 0x64777373 onto the stack
|
push 0x64777373
|
move al into edi
|
mov [edi], al
|
add an immediate operand 65 to byte_value
|
add byte_value, 65
|
declare the exit label
|
exit:
|
move n to edx
|
mov edx, n
|
push double word 0x39396e2d onto the stack and point the ebp register to the stack register
|
push dword 0x39396e2d \n mov ebp, esp
|
jump to the data label
|
jmp data
|
jump to the _start label if the value in the eax register is not equal to the doubleword addressed by edi else jump to the edi register
|
scasd \n jnz _start \n jmp edi
|
jump to the label l1 if the contents of the al register is greater than or equal to the decimal value 9
|
cmp al, 9 \n jge l1
|
push the 0x69622f2f onto the stack
|
push 0x69622f2f
|
move 0x6374652f into the dword at address [esp-12]
|
mov dword [esp-12], 0x6374652f
|
push esp to the stack
|
push esp
|
subtract 1564 from the contents of the ax register
|
sub ax, 1564
|
declare .text section
|
section .text
|
move ecx into the address [ebp+12]
|
mov [ebp+12], ecx
|
jump to the memory address 0x8 if the contents of the eax register is not equal to the contents of the eax register else zero out the eax register
|
cmp eax, eax \n jne 0x8 \n xor eax, eax
|
declare _shell as global label
|
global _shell
|
move cl into bl
|
mov bl, cl
|
multiply eax by 2 using left shift
|
shl eax, 1
|
declare the stage label
|
stage:
|
subtract the address in ebx from the address in eax
|
sub eax, ebx
|
move 0x68732f2f into the dword at address [esp-8]
|
mov dword [esp-8], 0x68732f2f
|
push 0x706d742f onto the stack
|
push 0x706d742f
|
push the byte 0x64 onto the stack
|
push byte 0x64
|
jump to the formatting label if the zero flag is set
|
jz formatting
|
move 0x4 into bl
|
mov bl, 0x4
|
push 0x2e383631 to the stack
|
push 0x2e383631
|
declare an array of six words each initialized with the numbers 34 45 56 67 75 89
|
numbers dw 34, 45, 56, 67, 75, 89
|
set eax to 0
|
xor eax, eax
|
subtract 20h from the 8-bit at memory location ebp+ecx
|
sub byte [ebp+ecx],20h
|
return
|
ret
|
move ebx into the address [esp+59]
|
mov [esp+59], ebx
|
jump to incaddr if no match
|
jnz incaddr
|
push the word cx onto the stack
|
push word cx
|
move the first element of array into ecx
|
mov ecx, array
|
declare the createfile label
|
createfile:
|
add 0x2 to the contents in bl and save the result in bl
|
add bl, 0x2
|
push 0x1c onto the stack
|
push 0x1c
|
define the _random label
|
_random:
|
install portable signal handler
|
mov eax, 67
|
call the start function
|
call start
|
move the contents of the eax into the double word starting at the address [esp-0x4]
|
mov dword [esp-0x4], eax
|
move the value 0x4 into the al register
|
mov al, 0x4
|
if the unsigned contents of the al register is greater than the unsigned contents of the bl register then jump to the l2 label else add the value 3 to the eax register
|
cmp al, bl \n ja l2 \n add eax, 3
|
move 0x243525f0 into esi
|
mov esi, 0x243525f0
|
put the offset of hello in ecx
|
mov ecx, hello
|
move the contents of memory address ebx+esi into ebx
|
mov ebx, [ebx+esi]
|
push the contents of eax onto the stack
|
push eax
|
push the dword 0x68732f63 onto the stack
|
push dword 0x68732f63
|
push the word 0x662d onto the stack and point the edx register to the stack register
|
push word 0x662d \n mov edx, esp
|
move 0x978cd092 into edi
|
mov edi, 0x978cd092
|
define find_egg function
|
find_egg:
|
define two label
|
two:
|
move 1 into eax
|
mov eax, 1
|
declare three doublewords of memory starting at address z and initialized to 1 2 and 3
|
z dd 1,2,3
|
add the byte in edi to the al register
|
add al, byte [edi]
|
move al into cl
|
mov cl, al
|
jump to decode_pr if not signed
|
jns decode_pr
|
move al into the byte at address [esi+21]
|
mov byte [esi+21], al
|
direction flag equal to zero
|
cld
|
define fupdisasm function
|
fupdisasm:
|
push the contents of the eax register onto the stack and point ecx to the stack register
|
push eax \n mov ecx, esp
|
sigaction
|
push byte 0x43
|
left shift the contents of the edi register by 0x1 bit
|
shl edi, 0x1
|
jump short to decode if not zero
|
jnz short decode
|
push the 0x6475732f onto the stack
|
push 0x6475732f
|
move 02001 into cx
|
mov cx, 02001
|
push the word [edx] onto the stack
|
push word [edx]
|
move dl into the single byte at the address stored in ecx+92
|
mov byte [ecx+92], dl
|
decrement ecx and jumps to the fill label unless decrementing ecx caused its value to become zero
|
loop fill
|
reserve 1 byte for number variable
|
number: resb 1
|
move the byte at the address 2h into al
|
mov al, byte 2h
|
if the contents of the bl register is greater than the value 78h then jump to the memory location loc_402B1D
|
cmp bl, 78h \n jg short loc_402B1D
|
move eatlen into edx
|
mov edx, eatlen
|
clear edx
|
xor edx, edx
|
add ecx to ebx
|
add ebx, ecx
|
put the syscall 0x8 into the al register
|
mov al, 0x8
|
move edi into ecx
|
mov ecx, edi
|
left shift the contents of al by 4 bit positions
|
shl al, 4
|
move decimal 78 into edx
|
mov edx, 78
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.