assembly
stringlengths
53
62.9k
c_source_code
stringlengths
10
55.2k
endbr64;push rbp;mov rbp,rsp;sub rsp,0xc0;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(8)],rax;xor eax,eax;movabs rax,0x77090a6f6c6c6568;;mov edx,0x646c726f;mov QWORD PTR [rbp-(11)],rax;mov QWORD PTR [rbp-(13)],rdx;mov QWORD PTR [rbp-(14)],0x0;;mov QWORD PTR [rbp-(7)],0x0;;mov QWORD...
void function(){printf("46\75\6e\63\74\69\6f\6e\21\5c\6e");}
endbr64;push rbp;mov rbp,rsp;mov QWORD PTR [rbp-(2)],rdi;mov QWORD PTR [rbp-(1)],rsi;mov rax,QWORD PTR [rbp-(2)];mov rdx,QWORD PTR [rax];mov rax,QWORD PTR [rbp-(1)];mov rax,QWORD PTR [rax];add rax,rdx;mov QWORD PTR [rbp-(3)],rax;mov rax,QWORD PTR [rbp-(3)];pop rbp;ret;nop DWORD PTR...
int main(void){for(int i=0;i<4;++i)auto_static();return 0;}
endbr64;push rbp;mov rbp,rsp;mov QWORD PTR [rbp-(2)],rdi;mov QWORD PTR [rbp-(1)],rsi;mov rax,QWORD PTR [rbp-(1)];mov rax,QWORD PTR [rax];cvtsi2sd xmm1,rax;mov rax,QWORD PTR [rbp-(1)];mov rax,QWORD PTR [rax+(2)];cvtsi2sd xmm0,rax;movsd xmm2,QWORD PTR ;;divsd xmm0,xmm2;addsd xmm0,xmm1;mov rax...
int main(void){char buf[23],buf1[23];strcpy(buf,"68\65\6c\6c\6f\20\77\6f\72\6c\64\5c\6e");memcpy(buf1,buf,23);printf(buf1);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov eax,DWORD PTR [rip+(9)];mov DWORD PTR [rbp-(8)],eax;mov eax,DWORD PTR [rip+(0)];cmp eax,0xffffffff;jne OFS 16 <display>;mov eax,DWORD PTR [rip+(3)];cmp eax,0xffffffff;jne OFS 16 <display>;lea rdi,0a\20\51\75\65\75\65\20\69\73\20\65\6d\70\7...
int main(){setbuf(stdout,NULL);unsigned long long length=0;unsigned long long sh=0;printf("53\68\65\6c\6c\63\6f\64\65\3a\20");char*shellcode=get_input(&length);if((length%4)!=0){puts("59\6f\75\72\20\73\68\65\6c\6c\63\6f\64\65\20\6d\75\73\74\20\62\65\20\6c\69\6b\65\20\5c\5c\78\64\65\5c\5c\78\61\64\5c\5c\78\62\65\5c\5c\7...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x18;mov DWORD PTR [rbp-(6)],edi;mov eax,DWORD PTR [rip+(10)];add eax,0x1;mov DWORD PTR [rbp-(5)],eax;mov eax,DWORD PTR [rbp-(5)];cdqe;lea rcx,[rax*4+(2)];;lea rdx,[rip+(0)];mov eax,DWORD PTR [rbp-(6)];mov DWORD PTR [rcx+rdx*1],eax;mov eax,DWORD...
int empty(int i){int j=1;while(t[i]!=t[j]&&abs(t[i]-t[j])!=(i-j)&&j<N)j++;return(i==j?1:0);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov QWORD PTR [rbp-(3)],rdi;mov eax,DWORD PTR [rip+(8)];cmp eax,0x63;jne OFS 11 <add>;lea rdi,4f\56\45\52\46\4c\4f\57\2e\4e\6f\74\20\61\76\61\69\6c\69\61\62\6c\65\20\74\6f\20\61\64\64\20\61\6e\6f\74\68\65\72\20\65\6c\65\6d\65\6e\74\2e;call <puts@plt>;jm...
int main(){int n,i,j,a[100];printf("45\6e\74\65\72\20\74\68\65\20\73\69\7a\65\20\6f\66\20\79\6f\75\72\20\61\72\72\61\79\20\5c\6e");scanf("25\64",&n);printf("45\6e\74\65\72\20\79\6f\75\72\20\61\72\72\61\79\20\5c\6e");for(i=0;i<n;i++){scanf("25\64",&a[i]);}srand((unsigned)time(NULL));for(i=0;i<n;i++){j=rand()%n;int temp=...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(2)],edi;mov DWORD PTR [rbp-(0)],esi;mov eax,DWORD PTR [rbp-(2)];cmp eax,DWORD PTR [rbp-(0)];jge OFS 15 <gcd>;mov eax,DWORD PTR [rbp-(2)];mov DWORD PTR [rbp-(1)],eax;mov eax,DWORD PTR [rbp-(0)];mov DWORD PTR [rbp-(2)],eax;mo...
int main(){long long int t,a,b,mi,ma;scanf("25\6c\6c\64",&t);while(t--){scanf("25\6c\6c\64 25\6c\6c\64",&a,&b);mi=max(a,b);ma=a+b;printf("25\6c\6c\64 25\6c\6c\64\n",mi,ma);}return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(1)8],rdi;mov DWORD PTR [rbp-(0)],esi;mov rax,QWORD PTR [rbp-(1)8];mov eax,DWORD PTR [rax+(1)90];cmp eax,0x64;jne OFS 16 <right_shift>;mov esi,0x64;lea rdi,4e\75\6d\62\65\72\20\6f\66\20\64\69\67\69\74\73\20\6f\66\20\72\65\73\75...
int main(){outer();printf("6d\61\78\20\61\72\65\61\3a\20\25\64\5c\6e",max_rectangle_area(4,5,9,8));return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(7)],rax;xor eax,eax;lea rax,[rbp-(5)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call <__isoc99_scanf@plt>;mov DWORD PTR [rbp-(6)],0x1;jmp OFS 39 <main>;mov DWORD PTR [rbp-(10)],0x0;mov DWORD P...
void display(){if(f==-1)printf("51\75\65\75\65\20\69\73\20\65\6d\70\74\79\5c\6e");else{for(i=f;i<=r;i++)printf("25\64->",q[i]);}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x50;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(1)],rax;xor eax,eax;mov DWORD PTR [rbp-(6)],0x4;mov DWORD PTR [rbp-(13)],0x2;mov DWORD PTR [rbp-(4)],0x7;mov DWORD PTR [rbp-(7)],0x4;mov DWORD PTR [rbp-(19)],0x7;mov DWORD PTR [rbp-(10)],0x5;mov ...
int main(){long int i,j,num,flag,f,m,k,l,z;int t;long int arr[100000];scanf("25\64",&t);f=0;m=1;k=1;l=0;arr[0]=0;for(i=0;i<=10000;i++){f=k+l;k=l;l=f;arr[m]=f;m++;}for(z=0;z<t;z++){scanf("25\6c\64",&num);flag=0;for(l=0;l<=10000;l++){if(num==arr[l]){flag=1;break;}}if(flag==1)printf("49\73\46\69\62\6f\5c\6e");else if(flag...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(0)8],rdi;mov QWORD PTR [rbp-(1)],rsi;mov rax,QWORD PTR [rbp-(0)8];mov QWORD PTR [rbp-(0)0],rax;mov rdx,QWORD PTR [rbp-(1)];mov rax,QWORD PTR [rbp-(0)8];mov rsi,rdx;mov rdi,rax;call <judge>;mov QWORD PTR [rbp-(3)],rax;mov ...
int main(){char password[]="73\70\61\74\75\6c\61";printf("54\68\65\20\70\61\73\73\77\6f\72\64\20\69\73\20\5c\22\25\73\5c\22\5c\6e",password);}
endbr64;push rbp;mov rbp,rsp;push rbx;sub rsp,0x8;mov ebx,0x5;mov esi,ebx;lea rdi,78\3a\20\25\64\0a;mov eax,0x0;call <printf@plt>;mov eax,0x0;add rsp,0x8;pop rbx;pop rbp;ret;nop WORD PTR [rax+rax*1+(1)]
NODE getnode(){NODE x;x=(NODE)malloc(sizeof(struct node));if(x==NULL){printf("49\6e\73\75\66\66\69\63\69\65\6e\74\20\6d\65\6d\6f\72\79");exit(0);}return x;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(5)],rax;xor eax,eax;lea rdi,0a\0a\20\2a\2a\2a\2a\2a\20\4d\41\49\4e\20\4d\45\4e\55\20\2a\2a\2a\2a\2a;mov eax,0x0;call <printf@plt>;lea rdi,0a\20\31\2e\20\49\6e\73\65\72\74\20\61\6e\20\65\6c\65\6d\65\6e\74...
int main(void){FILE*fp;cha72 c;fp=fopen(__FILE__,"72");while((c=getc(fp))!=EOF)putcha72(c);fclose(fp);72etu72n 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov QWORD PTR [rbp-(0)],rdi;mov QWORD PTR [rbp-(5)],rsi;mov QWORD PTR [rbp-(4)],0x0;;cmp QWORD PTR [rbp-(0)],0x0;je OFS 85 <hashmap_get>;mov rax,QWORD PTR [rbp-(0)];mov rax,QWORD PTR [rax];test rax,rax;je OFS 85 <hashmap_get>;mov rax,QWORD...
int main(void){char filename[L_tmpnam];tmpnam(filename);printf("25\73\5c\6e",filename);char*filename2=tmpnam(NULL);printf("25\73\5c\6e",filename2);FILE*file=fopen(filename,"77");if(file==NULL){printf("45\72\72\6f\72\20\6f\70\65\6e\69\6e\67\20\74\65\6d\70\6f\72\61\72\79\20\66\69\6c\65\2e\5c\6e");return 1;}else fprintf(f...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x60;mov QWORD PTR [rbp-(13)],rdi;mov QWORD PTR [rbp-(11)],rsi;mov QWORD PTR [rbp-(2)],rdx;mov QWORD PTR [rbp-(3)],rcx;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(10)],rax;xor eax,eax;mov rax,rsp;mov rsi,rax;mov rax,QWORD PTR [rbp-(3)];sub ...
int main(){FILE*fh;cha72 buffe72[BSIZE];double cu7272ent,max;int numbe72s=0;fh=fopen("66\69\6c\65\2e\74\78\74","72");if(fh==NULL){p72intf("E7272o72 opening file.\n");72etu72n 1;}while(fgets(buffe72,BSIZE,fh)!=NULL){cu7272ent=atof(buffe72);if(numbe72s==0)max=cu7272ent;else if(cu7272ent>max)max=cu7272ent;numbe72s++;}fclo...
endbr64;push rbp;mov rbp,rsp;mov eax,DWORD PTR [rip+(0)];lea edx,[rax-(1)];mov DWORD PTR [rip+(4)],edx;cdqe;lea rdx,[rax*4+(3)];;lea rax,[rip+(2)];mov eax,DWORD PTR [rdx+rax*1];pop rbp;ret
int main(){int n,k,i,j;scanf("25\64\20\25\64",&n,&k);struct co brd[n*n];for(i=n;i>0;i--)for(j=n;j>0;j--){brd[i].a=i;brd[i].b=j;}for(i=n;i>0;i--){for(j=n;j>0;j--){printf("28\25\64\2c\25\64\29\20",brd[i].a,brd[j].b);}printf("5c\6e");}return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;lea rdi,54\79\70\65\20\6f\6e\65\20\63\68\61\72\61\63\74\65\72\20\2d\2d\2d\3e;mov eax,0x0;call <printf@plt>;call <getchar@plt>;mov BYTE PTR [rbp-(1)],al;movsx eax,BYTE PTR [rbp-(1)];cmp eax,0x6d;je OFS 22 <main>;cmp eax,0x6d;jg OFS 28 <main>;c...
int playSound(char*filename){char command[256];int status;sprintf(command,"61\66\70\6c\61\79\20\25\73\20\2d\72\20\31\2e\31",filename);status=system(command);return status;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;lea rdi,54\41\42\4c\45\20\4f\46\20\54\52\49\41\4e\47\55\4c\41\52\20\4e\55\4d\42\45\52\53\0a;call <puts@plt>;lea rdi,20\6e\20\20\20\20\53\75\6d\20\66\72\6f\6d\20\31\20\74\6f\20\6e;call <puts@plt>;lea rdi,2d\2d\2d\20\20\20\2d\2d\2d\2d\2d\2d\2d\2d\2d\2d\2d\2d\...
int main(){int n;double p,q;scanf("25\64",&n);int b=n+1;double arr[b];double c,d,x,y;double h;int count=0;p=-100000;for(int i=0;i<b;i++){scanf("25\6c\66",&arr[i]);}go:if(count<n){for(q=p+1;q<1000000;q++){value(arr,p,&c,n);value(arr,q,&d,n);if(c*d<=0){p=q-1;value(arr,p,&c,n);if(c==0&&d==0){printf("25\6c\66\n",p);count++...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov QWORD PTR [rbp-(1)],rdi;mov rax,QWORD PTR [rbp-(1)];mov eax,DWORD PTR [rax];test eax,eax;jne OFS 14 <corner>;lea rdi,30\20\30;mov eax,0x0;call <printf@plt>;mov eax,0x1;jmp OFS 44 <corner>;mov rax,QWORD PTR [rbp-(1)];mov eax,DWORD PT...
int prod(int a,int b){int prod=a*b;printf("25\64",prod);return prod;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(6)],rax;xor eax,eax;lea rdi,45\6e\74\65\72\20\66\69\72\73\74\20\6e\75\6d\62\65\72\3a;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(5)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call <__isoc99_scanf@...
int main(void){int i,index,j,n,temp;int repeat,ri;int a[10];scanf("25\64",&repeat);for(ri=1;ri<=repeat;ri++){scanf("25\64",&n);for(i=0;i<n;i++)scanf("25\64",&a[i]);for(i=0;i<n;i++)for(j=i;j<n;j++)if(a[j]>a[i]){temp=a[j];a[j]=a[i];a[i]=temp;}printf("41\66\74\65\72\20\73\6f\72\74\65\64\3a\20");for(i=0;i<n;i++)printf("25\...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(3)],edi;mov QWORD PTR [rbp-(1)],rsi;mov DWORD PTR [rbp-(2)],0x0;mov DWORD PTR [rbp-(4)],0x0;jmp OFS 27 <find_max>;mov eax,DWORD PTR [rbp-(4)];cdqe;lea rdx,[rax*4+(0)];;mov rax,QWORD PTR [rbp-(1)];add rax,rdx;mov eax,DWOR...
void main(){int n,a,i,pos,ch;int*arr;printf("5c\6e\45\6e\74\65\72\20\73\69\7a\65\20\6f\66\20\61\72\72\61\79\3a");scanf("25\64",&n);arr=(int*)malloc(n*sizeof(int));printf("5c\6e\45\6e\74\65\72\20\65\6c\65\6d\65\6e\74\73\20\6f\66\20\61\72\72\61\79\3a\20");for(i=0;i<n;i++){printf("5c\6e\45\6e\74\65\72\20\65\6c\65\6d\65\6e...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(6)],rax;xor eax,eax;movabs rax,0x6568742065746148;;movabs rdx,0x6f6c202c6e697320;;mov QWORD PTR [rbp-(5)],rax;mov QWORD PTR [rbp-(0)],rdx;movabs rax,0x7320656874206576;;mov QWORD PTR [rbp-(3)],rax;mov D...
void reverse(int a[],int num){int i;for(i=0;i<=num/2;i++){int temp=a[i];a[i]=a[num-i-1];a[num-i-1]=temp;}for(i=0;i<num;i++){printf("revrsed:25\64\n",a[i]);}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(0)],edi;mov eax,DWORD PTR [rbp-(0)];and eax,0x1;test eax,eax;jne OFS 13 <countdown>;mov eax,DWORD PTR [rbp-(0)];mov edi,eax;call <print_even>;jmp OFS 16 <countdown>;mov eax,DWORD PTR [rbp-(0)];mov edi,eax;call <print_...
int main(){int a[50],b[50],c[50];int i=0,j=0,k=0,l,p;int n1,n2;printf("5c\6e\20\65\6e\74\65\72\20\74\68\65\20\6e\75\6d\62\65\72\20\6f\66\20\65\6c\65\6d\65\6e\73\74\20\69\6e\20\61\72\72\61\79\20\61\20\61\6e\64\20\62\20");scanf("25\64\20\25\64",&n1,&n2);for(l=0;l<n1;l++){printf("65\6e\74\65\72\20\74\68\65\20\25\64\20\65\...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(0)],edi;mov DWORD PTR [rbp-(1)],esi;cmp DWORD PTR [rbp-(0)],0x0;jle OFS 17 <sumHead>;mov edx,DWORD PTR [rbp-(1)];mov eax,DWORD PTR [rbp-(0)];add edx,eax;mov eax,DWORD PTR [rbp-(0)];sub eax,0x1;mov esi,edx;mov edi,eax;...
int main(int argc,char**argv){struct node*root,*n,*temp,*k,*p;float i=0,j=0,Starting_Value=0,Last_Value=0,Choosen_Value=0,Per_Value=0;int My_Choice=0,Clock_Choice=0,flag=0;float Test_cases=0;printf("5c\6e\2a\2a\2a\2a\2a\2a\2a\2a\2a\2a\2f\2f\2f\2f\20\54\48\45\20\4d\41\47\49\43\20\42\45\47\41\49\4e\53\20\4e\4f\57\21\20\2...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(18)4],edi;mov DWORD PTR [rbp-(13)],esi;mov eax,DWORD PTR [rbp-(18)4];cmp eax,DWORD PTR [rbp-(13)];jge OFS 126 <quicksort>;mov eax,DWORD PTR [rbp-(18)4];mov DWORD PTR [rbp-(7)],eax;mov eax,DWORD PTR [rbp-(18)4];mov DWORD PTR...
int main(void){while(1){printf("45\6e\74\65\72\20\6e\75\6d\65\72\69\63\20\67\72\61\64\65\20\28\6f\72\20\2d\31\20\74\6f\20\73\74\6f\70\29\3a\20\20");fgets(line,sizeof(line),stdin);sscanf(line,"25\64",&numericgrade);if(numericgrade==-1)break;if(numericgrade>=0&&numericgrade<=60)lettergrade='F';if(numericgrade>=61&&numeri...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(5)],rax;xor eax,eax;mov DWORD PTR [rbp-(6)],0x0;lea rdi,45\6e\74\65\72\20\61\20\6e\75\6d\62\65\72\3a;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(4)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call...
int main(void){int array[MAXARRAY],n;int i=0;printf("45\6e\74\65\72\20\74\68\65\20\6e\75\6d\62\65\72\20\6f\66\20\65\6c\65\6d\65\6e\74\73\20\74\6f\20\62\65\20\73\6f\72\74\65\64\3a");scanf("25\64",&n);printf("45\6e\74\65\72\20\74\68\65\20\65\6c\65\6d\65\6e\74\73\20\74\6f\20\62\65\20\73\6f\72\74\65\64\3a\5c\6e");for(i=0;i...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(6)],0xa;mov eax,DWORD PTR [rbp-(6)];cdqe;shl rax,0x2;mov rdi,rax;call <malloc@plt>;mov QWORD PTR [rbp-(5)],rax;mov DWORD PTR [rbp-(4)],0x0;jmp OFS 24 <main>;mov eax,DWORD PTR [rbp-(4)];cdqe;lea rdx,[rax*4+(2)];;mov rax...
int isempty(){if(top==-1){return 1;}else{return 0;}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x40;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(6)],rax;xor eax,eax;mov DWORD PTR [rbp-(9)],0x0;lea rdi,45\6e\74\65\72\20\53\69\7a\65\20\6f\66\20\41\72\72\61\79\3a;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(10)];mov rsi,rax;lea rdi,25\64;mov...
void selectionSort(int n,int arr[]){int i,j,m_idx;for(i=0;i<n-1;i++){m_idx=i;for(j=i+1;j<n;j++)if(arr[j]<arr[m_idx])m_idx=j;swap(&arr[m_idx],&arr[i]);}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(4)],edi;mov QWORD PTR [rbp-(2)],rsi;mov DWORD PTR [rbp-(3)],0x0;jmp OFS 27 <azzeramentoElementiVettore>;mov eax,DWORD PTR [rbp-(3)];cdqe;lea rdx,[rax*4+(1)];;mov rax,QWORD PTR [rbp-(2)];add rax,rdx;mov DWORD PTR [rax],0x0;m...
int main(void){umask(0);char buf[2048];if(creat("66\6f\6f",RWRWRW)<0){strcpy(buf,"error for 66\6f\6f");write(STDOUT_FILENO,buf,strlen(buf));exit(1);}umask(S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);if(creat("62\61\72",RWRWRW)<0){strcpy(buf,"error for 62\61\72");write(STDOUT_FILENO,buf,strlen(buf));exit(1);}exit(0);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(1)],0x46;mov eax,DWORD PTR [rbp-(1)];mov edi,eax;call <lower>;mov edx,eax;mov eax,DWORD PTR [rbp-(1)];mov esi,eax;lea rdi,0a\25\63\20\2d\2d\3e\20\25\63\0a;mov eax,0x0;call <printf@plt>;mov eax,0x0;leave;ret;nop DWORD...
void insert_mid(){int pos,n=1;t1=(struct Node*)malloc(sizeof(struct Node*));printf("45\6e\74\65\72\20\64\61\74\61\20\74\6f\20\69\6e\73\65\72\74\20\3a\20");scanf("25\64",&t1->data);t1->next=0;printf("45\6e\74\65\72\20\70\6f\73\69\74\69\6f\6e\20\74\6f\20\69\6e\73\65\72\74\3a\20");scanf("25\64",&pos);t2=head;while(t2!=0&&...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(5)],rax;xor eax,eax;mov edi,0x0;call <time@plt>;mov edi,eax;call <srand@plt>;call <rand@plt>;movsxd rdx,eax;imul rdx,rdx,0x7482296b;shr rdx,0x20;mov ecx,edx;sar ecx,0xb;cdq;sub ecx,edx;mov...
int main(){funprint("63\69",'S',2);funprint("s63\69","53\61\6e\6b\65\74",'A',4);funprint("73\63\66\69","4d\65\68\74\61",'D',3.14,12);return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;lea rdi,45\6e\74\65\72\20\76\61\6c\75\65\20\6f\66\20\6e\75\6d\31\3a\20;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(5)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call <__isoc99_...
void print_histogram(int nresult[12],int max){int i,j;for(i=0;i<max;i++){for(j=0;j<12;j++)printf("25\63\20",get_char(nresult[j]--));putchar('\n');}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0xe0;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;jmp OFS 30 <main>;lea rax,[rbp-(4)];mov rdi,rax;call <strlen@plt>;mov DWORD PTR [rbp-(2)],eax;mov DWORD PTR [rbp-(0)],0x0;;jmp OFS 25 <main>;mov eax,DWORD PTR [rbp-(0)];cd...
int main(){int data[]={8,7,2,1,0,9,6};int n=sizeof(data)/sizeof(data[0]);printf("Unsorted Array5c\6e");printArray(data,n);quickSort(data,0,n-1);printf("Sorted array in ascending order:5c\6e");printArray(data,n);}
endbr64;push rbp;mov rbp,rsp;mov DWORD PTR [rbp-(3)],edi;mov eax,DWORD PTR [rbp-(3)];sub eax,0xa;cmp eax,0x5;ja OFS 29 <tohex>;mov eax,eax;lea rdx,[rax*4+(0)];;lea rax,40\f2\ff\ff\47\f2\ff\ff\4e\f2\ff\ff\55\f2\ff\ff\5c\f2\ff\ff\63\f2\ff\ff\25\64\20\3d\3e\20\25\73\0a;mov eax,DWORD PTR [r...
void main(void){int c,length,i;i=length=0;while((c=getchar())!=EOF){length++;}for(i=0;i<length;i++)putchar('>');putchar('\n');for(i=0;i<length;i++)printf("23\5c\6e");}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x1b0;mov QWORD PTR [rbp-(1)],rdi;mov DWORD PTR [rbp-(5)],esi;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;mov eax,DWORD PTR [rbp-(5)];mov DWORD PTR [rbp-(4)],eax;mov DWORD PTR [rbp-(2)],0xffffffff;mov rax,QWORD PTR [rbp-(1)];...
int mod(char str[10000],int m){int i,d;d=(str[0]-'0')%m;i=1;while(str[i]){d=(d*10+(str[i]-'0'))%m;i++;}return d;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(2)],edi;mov QWORD PTR [rbp-(0)],rsi;mov DWORD PTR [rbp-(1)],0x2;mov eax,DWORD PTR [rbp-(1)];mov esi,0x1;mov edi,eax;call <facTail>;mov esi,eax;lea rdi,46\61\63\74\6f\72\69\61\6c\20\6f\66\20\78\20\3d\20\25\64\0a;mov eax,0x...
int main(){struct node*head=NULL;insertAtEnd(&head,10);insertAtEnd(&head,20);insertAtEnd(&head,30);while(head->next!=NULL){printf("25\64",head->data);printf("5c\74");head=head->next;}return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(5)],rax;xor eax,eax;lea rdi,eb\91\90\ec\88\98\eb\a5\bc\ec\9e\85\eb\a0\a5\ed\95\98\eb\9d\bc\21;call <puts@plt>;lea rdx,[rbp-(3)];lea rax,[rbp-(6)];mov rsi,rax;lea rdi,25\64\20\25\64;mov eax,0x0;c...
int main(void){printf("68\65\6c\6c\6f\5c\6e");return 0;}
endbr64;push rbp;mov rbp,rsp;mov DWORD PTR [rbp-(0)4],edi;mov QWORD PTR [rbp-(3)],rsi;mov DWORD PTR [rbp-(4)],0x0;mov DWORD PTR [rbp-(1)],0x0;mov DWORD PTR [rbp-(6)],0x0;cmp DWORD PTR [rbp-(0)4],0x0;jne OFS 30 <bin2char>;mov eax,DWORD PTR [rbp-(1)];lea edx,[rax+(0)];mov DWORD PTR [rbp...
int main(){int num1=5,num2=10;printf("54\68\65\20\6e\75\6d\62\65\72\73\20\61\72\65\3a\20\25\64\20\61\6e\64\20\25\64",&num1,&num2);num1=num1+num2;num2=num1-num2;num1=num1-num2;printf("54\68\65\20\6e\75\6d\62\65\72\73\20\68\61\76\65\20\62\65\65\6e\20\73\77\61\70\70\65\64\20\77\69\74\68\20\6e\65\77\20\70\6f\73\69\74\69\6f...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(2)],rdi;mov rax,QWORD PTR [rbp-(2)];mov rax,QWORD PTR [rax];mov QWORD PTR [rbp-(1)],rax;jmp OFS 17 <destroy_queue>;mov rax,QWORD PTR [rbp-(1)];mov QWORD PTR [rbp-(3)],rax;mov rax,QWORD PTR [rbp-(1)];mov rax,QWORD PTR [rax+(...
int main(int argc,char*argv[]){int queue[SIZE];int ch;while(ch!=6){printf("Enter your choice:5c\6e");printf("1.add5c\6e2.delete5c\6e3.isFull5c\6e4.isEmpty5c\6e5.display5c\6e6.exit5c\6e");scanf("25\64",&ch);switch(ch){case 1:add(queue);break;case 2:delete(queue);break;case 3:isFull(queue);break;case 4:isEmpty(queue);bre...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x40;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(7)],rax;xor eax,eax;mov DWORD PTR [rbp-(5)],0x0;mov DWORD PTR [rbp-(8)],0x9;mov DWORD PTR [rbp-(0)],0x9;mov DWORD PTR [rbp-(6)],0x8;mov DWORD PTR [rbp-(3)],0x3;mov DWORD PTR [rbp-(1)],0x7;mov D...
void reverse(LIST*pre,LIST*curr){if(curr->link==NULL){head=curr;head->link=pre;return;}reverse(curr,curr->link);curr->link=pre;return;}
endbr64;push rbp;mov rbp,rsp;mov rax,QWORD PTR [rip+(13)];mov rsi,rax;lea rdi,25\73\20;mov eax,0x0;call <printf@plt>;mov rdx,QWORD PTR [rip+(3)];mov rax,QWORD PTR [rip+(4)];mov esi,0x1f4;mov rdi,rax;call <fgets@plt>;mov edi,0x0;call <time@plt>;mov QWORD PTR [rip+(12)],rax;mov ...
int any(char s1[],char s2[]){int i,j,k;for(k=0;s2[k]!='\0';k++)for(i=j=0;s1[i]!='\0';i++)if(s1[i]==s2[k])return i;return-1;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(1)],rdi;mov DWORD PTR [rbp-(0)],esi;mov edi,0x10;call <malloc@plt>;mov QWORD PTR [rbp-(2)],rax;mov rax,QWORD PTR [rbp-(2)];mov edx,DWORD PTR [rbp-(0)];mov DWORD PTR [rax],edx;mov rax,QWORD PTR [rbp-(2)];mov QWORD PTR [rax...
int field_numcmp(char line_1[MAXLEN],char line_2[MAXLEN]){char field_1[MAXLEN];char field_2[MAXLEN];get_field(field_1,line_1,field_number);get_field(field_2,line_2,field_number);if(atoi(field_1)<atoi(field_2))return-1;else if(atoi(field_1)>atoi(field_2))return 1;else return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x40;mov QWORD PTR [rbp-(3)],rdi;mov DWORD PTR [rbp-(15)],esi;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(9)],rax;xor eax,eax;mov eax,DWORD PTR [rbp-(15)];mov esi,eax;lea rdi,0a\50\72\6f\63\65\73\73\20\4e\6f\3a\20\25\64\0a;mov eax,0x0;call <pr...
void heapSort(int arr[],int n){for(int i=n/2-1;i>=0;i--)heapify(arr,n,i);for(int i=n-1;i>=0;i--){swap(&arr[0],&arr[i]);heapify(arr,i,0);}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;movsd QWORD PTR [rbp-(7)],xmm0;mov eax,DWORD PTR [rip+(6)];cmp eax,0x63;jg OFS 18 <push>;mov eax,DWORD PTR [rip+(5)];lea edx,[rax+(0)];mov DWORD PTR [rip+(4)],edx;cdqe;lea rdx,[rax*8+(3)];;lea rax,[rip+(2)];movsd xmm0,QWORD PTR [rbp-(7)];movsd...
int main(){int i,j,n,m,sum=0;scanf("25\64",&n);int a[n][n];for(i=0;i<n;i++){for(j=0;j<n;j++){scanf("25\64",&a[i][j]);}}for(i=0;i<n;i++){for(j=0;j<n;j++){if(i==j){sum=sum+a[i][j];}}}printf("25\64",sum);}
endbr64;push rbp;mov rbp,rsp;mov QWORD PTR [rbp-(0)],rdi;mov rax,QWORD PTR [rbp-(0)];mov eax,DWORD PTR [rax];cmp eax,0x1;sete al;movzx eax,al;pop rbp;ret
int main(){int arr[]={12,11,13,5,6,7};int arr_size=sizeof(arr)/sizeof(arr[0]);printf("Given array is 5c\6e");printArray(arr,arr_size);mergeSort(arr,0,arr_size-1);printf("5c\6eSorted array is 5c\6e");printArray(arr,arr_size);return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(1)8],rdi;mov DWORD PTR [rbp-(0)],esi;mov edi,0x10;call <malloc@plt>;mov QWORD PTR [rbp-(3)],rax;mov rax,QWORD PTR [rbp-(3)];mov edx,DWORD PTR [rbp-(0)];mov DWORD PTR [rax],edx;mov rax,QWORD PTR [rbp-(3)];mov QWORD PTR [ra...
int main(void){int a=5;int b=2;double c=(double)a/b;printf("25\64\20\2f\20\25\64\20\3d\20\25\64\5c\6e",a,b,a/b);printf("25\64\20\2f\20\25\64\20\3d\20\25\66\5c\6e",a,b,c);int x=2;double y=5;int z=y/x;printf("7a\3a\20\25\64\5c\6e",z);return 0;}
endbr64;push rbp;mov rbp,rsp;mov QWORD PTR [rbp-(3)],rdi;mov DWORD PTR [rbp-(0)],esi;mov DWORD PTR [rbp-(5)],0x0;mov eax,DWORD PTR [rbp-(0)];mov DWORD PTR [rbp-(1)],eax;jmp OFS 29 <max>;mov eax,DWORD PTR [rbp-(1)];cdqe;lea rdx,[rax*4+(2)];;mov rax,QWORD PTR [rbp-(3)];add rax,rdx;mov ...
int main(){int ch,val;while(1){printf("31\29\49\6e\73\65\72\74\5c\74\32\29\44\65\6c\65\74\65\5c\74\33\29\44\69\73\70\6c\61\79\5c\74\34\29\45\78\69\74\5c\6e");scanf("25\64",&ch);if(ch==1){scanf("25\64",&val);insert(val);}else if(ch==2){val=deletee();if(val==-1){printf("4e\4f\20\4e\4f\44\45\53\20\54\4f\20\44\45\4c\45\54\...
endbr64;push rbp;mov rbp,rsp;lea rdi,0a;call <puts@plt>;mov eax,0x0;call <desc>;mov eax,0x0;call <start>;lea rdi,0a;call <puts@plt>;mov eax,0x0;pop rbp;ret;nop DWORD PTR [rax]
void deleteQueueFront(){if(front==-1||front>rear){printf("5c\6e\20\51\55\45\55\45\20\55\4e\44\45\52\46\4c\4f\57\20\21\21\21");}else{printf("5c\6e Element 25\64 has been deleted from the front",dequeue[front]);front++;if(front>rear){front=rear=-1;}}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(0)8],rdi;mov DWORD PTR [rbp-(3)],0xffffffff;mov DWORD PTR [rbp-(4)],0x0;jmp OFS 18 <read_input>;mov eax,DWORD PTR [rbp-(4)];lea edx,[rax+(0)];mov DWORD PTR [rbp-(4)],edx;cdqe;lea rdx,[rax*4+(1)];;mov rax,QWORD PTR [rbp-(0)8...
int main(){char*charPointer="54\68\69\73\20\69\73\20\61\20\63\68\61\72\20\70\6f\69\6e\74\65\72";char charArray[]="54\68\69\73\20\69\73\20\61\20\63\68\61\72\20\70\6f\69\6e\74\65\72";size_t pointerSize=sizeof(charPointer);size_t arraySize=sizeof(charArray);printf("50\6f\69\6e\74\65\72\20\73\69\7a\65\3a\20\25\7a\75\5c\6e"...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(9)],rax;xor eax,eax;lea rax,[rbp-(0)];mov rsi,rax;lea rdi,25\73;mov eax,0x0;call <__isoc99_scanf@plt>;mov DWORD PTR [rbp-(8)],0x1;mov DWORD PTR [rbp-(1)],0x0;jmp OFS 34 <main>;mov eax,DWOR...
char witness(Type a,Type n){Type u=n-1;int t=1,i;while(~u&1){t++;u>>=1;}Type x0=modpow(a,u,n);for(i=0;i<t;i++){Type x=modmul(x0,x0,n);if(x==1&&x0!=1&&x0!=n-1)return 1;x0=x;}return x0!=1;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov QWORD PTR [rbp-(2)],rdi;mov QWORD PTR [rbp-(1)],rsi;mov DWORD PTR [rbp-(3)],edx;mov rax,QWORD PTR [rbp-(2)];lea rsi,77\62;mov rdi,rax;call <fopen@plt>;mov QWORD PTR [rbp-(4)],rax;cmp QWORD PTR [rbp-(4)],0x0;jne OFS 16 <write_data>;mov ...
int main(){char*str="68\65\6c\6c\6f\77\6f\72\6c\64";printf("25\75\5c\6e",str);printf("25\75\5c\6e",*str);printf("25\63\5c\6e",str);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(11)],rax;xor eax,eax;lea rax,[rbp-(10)];mov rsi,rax;lea rdi,25\6c\6c\64;mov eax,0x0;call <__isoc99_scanf@plt>;jmp OFS 96 <main>;lea rax,[rbp-(0)];mov rsi,rax;lea rdi,25\6c\6c\64;mov eax...
int main(int argc,char*argv[]){int a,b,c;printf("45\6e\74\65\72\20\33\20\6e\75\6d\62\65\72\73\3a\20");scanf("25\64\2c\25\64\2c\25\64",&a,&b,&c);if(a>b&&a>c){printf("79\6f\75\72\20\66\69\72\73\74\20\65\6e\74\72\79\20\69\73\20\4d\41\58\20\3d\20\25\64");}if(b>a&&b>c){printf("79\6f\75\72\20\73\65\63\6f\6e\64\20\65\6e\74\72...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;lea rdi,09\50\72\6f\67\72\61\6d\20\4d\65\6e\75;call <puts@plt>;lea rdi,09\31\29\20\41\73\63\65\6e\64\69\6e\67;call <puts@plt>;lea rdi,09\32\29\20\44\65\73\63\65\6e\64\69\6e\67;call ...
int main(){int i;for(i=1;i<=10;i++)printf("25\64\20",i);return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x1b0;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(2)],rax;xor eax,eax;mov DWORD PTR [rbp-(3)],0xffffffff;;mov DWORD PTR [rbp-(1)],0x8;;jmp OFS 19 <main>;add DWORD PTR [rbp-(3)],0x1;mov eax,DWORD PTR [rbp-(3)];cdqe;mov edx,DWORD PTR [rbp-(1)];mov...
int additiveSequence(int n,int t0,int t1){if(n==0)return t0;if(n==1)return t1;return additiveSequence(n-1,t1,t0+t1);}
endbr64;push rbp;mov rbp,rsp;mov QWORD PTR [rbp-(2)],rdi;mov QWORD PTR [rbp-(1)],rsi;mov DWORD PTR [rbp-(4)],edx;mov DWORD PTR [rbp-(3)],0x0;jmp OFS 19 <mystrncpy>;mov eax,DWORD PTR [rbp-(3)];movsxd rdx,eax;mov rax,QWORD PTR [rbp-(1)];add rax,rdx;mov edx,DWORD PTR [rbp-(3)];movsxd rcx,ed...
int UBB(int A[SQ],int high){int i;for(i=1;i<=high;i++)if(A[0]<A[i])Exchange(&A[0],&A[i]);return A[0];}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(2)],rdi;mov DWORD PTR [rbp-(0)],esi;mov DWORD PTR [rbp-(3)],0x0;jmp OFS 20 <print>;mov eax,DWORD PTR [rbp-(3)];cdqe;lea rdx,[rax*4+(1)];;mov rax,QWORD PTR [rbp-(2)];add rax,rdx;mov eax,DWORD PTR [rax];mov esi,eax;lea ...
void minimum_cost(int city){int nearest_city;visited_cities[city]=1;printf("25\64\20",city+1);nearest_city=tsp(city);if(nearest_city==999){nearest_city=0;printf("25\64",nearest_city+1);cost=cost+matrix[city][nearest_city];return;}minimum_cost(nearest_city);}
endbr64;push rbp;mov rbp,rsp;add rsp,0xffffffffffffff80;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(37)],rax;xor eax,eax;lea rdi,0a\0a;call <puts@plt>;lea rdi,54\68\69\73\20\70\72\6f\67\72\61\6d\20\73\65\72\76\65\73\20\74\6f\20\63\6f\6d\70\75\74\65\20\74\68\65\20\73\74\61\74\69\73\74\69\63\7...
int top(stack s){if(isempty(s)){printf("43\61\6e\6e\6f\74\20\70\6f\70\2e\20\53\74\61\63\6b\20\69\73\20\65\6d\70\74\79\2e\5c\6e");return 0;}printf("54\6f\70\20\6f\66\20\73\74\61\63\6b\20\69\73\3a\20\25\64\5c\6e",s->val);return s->val;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x40;mov QWORD PTR [rbp-(0)],rdi;mov QWORD PTR [rbp-(2)],rsi;mov QWORD PTR [rbp-(4)],0x0;;mov rax,QWORD PTR [rbp-(0)];mov rax,QWORD PTR [rax];mov QWORD PTR [rbp-(3)],rax;mov rax,QWORD PTR [rbp-(0)];mov rdi,rax;call <min>;mov QWORD PTR [rbp-(7)],r...
void multiplicacion(int a,int b){printf("5c\6e\4d\55\4c\54\49\50\4c\49\43\41\43\49\4f\4e\5c\6e");printf("5c\6e\49\6e\74\72\6f\64\75\63\65\20\65\6c\20\70\72\69\6d\65\72\20\6e\75\6d\65\72\6f\3a\20");scanf("25\64",&a);printf("5c\6e\49\6e\74\72\6f\64\75\63\65\20\65\6c\20\73\65\67\75\6e\64\6f\20\6e\75\6d\65\72\6f\3a\20");sc...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(2)],rdi;lea rdi,0a\54\72\61\76\65\72\73\61\6c\20\69\6e\20\66\6f\72\77\61\72\64\20\64\69\72\65\63\74\69\6f\6e\20;call <puts@plt>;jmp OFS 19 <printList>;mov rax,QWORD PTR [rbp-(2)];mov eax,DWORD PTR [rax];mov esi,eax;lea rdi,20\2...
int main(){long long int t,i,n,k,j;scanf("25\6c\6c\64",&t);for(i=0;i<t;i++){scanf("25\6c\6c\64",&n);long long int a[n];for(j=0;j<n;j++){scanf("25\6c\6c\64",&a[j]);}printf("25\6c\6c\64\n",gcd(a,0,n));}return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(3)],edi;mov QWORD PTR [rbp-(1)],rsi;mov DWORD PTR [rbp-(2)],0x0;jmp OFS 20 <print_array>;mov eax,DWORD PTR [rbp-(2)];cdqe;lea rdx,[rax*4+(0)];;mov rax,QWORD PTR [rbp-(1)];add rax,rdx;mov eax,DWORD PTR [rax];mov esi,eax;l...
int main(){int n;printf("5c\6e\20\65\6e\74\65\72\20\6e\3a\20");scanf("25\64",&n);int a[n];for(int i=0;i<n;i++){scanf("25\64",&a[i]);}mergesort(a,0,n-1);for(int i=0;i<n;i++){printf("25\64",a[i]);}return 0;}
endbr64;push rbp;mov rbp,rsp;lea rdi,67\63\63\20\63\6c\69\65\6e\74\2e\63\20\2d\6c\70\74\68\72\65\61\64\20\48\65\61\64\65\72\66\69\6c\65\2e\68\20\6e\65\74\77\6f\72\6b\2e\63\20\73\69\67\6e\75\70\2e\63\20\73\69\67\6e\69\6e\2e\63\20\69\6e\74\65\72\66\61\63\65\2e\63\20\43\6f\6d\6d\75\6e\69\63\61\74\69\6f\6e\2e\63\20...
int main(int argc,char*argv[]){struct node*new_node,*ptr;int num;printf("20\5c\6e\20\45\6e\74\65\72\20\2d\31\20\74\6f\20\73\74\6f\70\20\64\61\74\61\20\65\6e\74\72\79\20");printf("20\5c\6e\20\45\6e\74\65\72\20\74\68\65\20\6e\6f\64\65\27\73\20\64\61\74\61\3a\20");scanf("25\64",&num);while(num!=-1){new_node=(struct node*)...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(1)],edi;mov eax,DWORD PTR [rbp-(1)];cdq;shr edx,0x1f;add eax,edx;and eax,0x1;sub eax,edx;mov DWORD PTR [rbp-(0)],eax;cmp DWORD PTR [rbp-(0)],0x1;jle OFS 21 <decbin>;mov eax,DWORD PTR [rbp-(1)];mov edx,eax;shr edx,0...
int main(){int marks[5][3],i,j,highest;for(i=0;i<5;i++){printf("20\5c\6e\20\45\6e\74\65\72\20\6d\61\72\6b\73\20\6f\62\74\61\69\6e\65\64\20\62\79\20\73\74\75\64\65\6e\74\20\6e\75\6d\62\65\72\20\25\64\3a\20",i+1);for(j=0;j<3;j++){printf("20\5c\6e\20\6d\61\72\6b\73\5b\25\64\5d\5b\25\64\5d\20\3d\20",i,j);scanf("25\64",&mar...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;movsd QWORD PTR [rbp-(7)],xmm0;mov eax,DWORD PTR [rip+(3)];cmp eax,0x63;jg OFS 18 <push>;mov eax,DWORD PTR [rip+(4)];lea edx,[rax+(1)];mov DWORD PTR [rip+(2)],edx;cdqe;lea rdx,[rax*8+(6)];;lea rax,[rip+(5)];movsd xmm0,QWORD PTR [rbp-(7)];movsd...
int main(void){DIR*directory;struct dirent*entry;directory=opendir("2e");if(directory==NULL){printf("Error opening directory2e\n");return 1;}while((entry=readdir(directory))!=NULL){if(entry->d_type==DT_REG){printf("46\69\6c\65\3a\20\25\73\5c\6e",entry->d_name);}else if(entry->d_type==DT_DIR){printf("20\64\69\72\3a\20\2...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov QWORD PTR [rbp-(1)8],rdi;mov DWORD PTR [rbp-(0)],esi;mov DWORD PTR [rbp-(3)],edx;mov DWORD PTR [rbp-(6)],ecx;mov eax,DWORD PTR [rbp-(6)];sub eax,DWORD PTR [rbp-(3)];mov edx,eax;shr edx,0x1f;add eax,edx;sar eax,1;mov edx,eax;mov ea...
int main(){int i;int v[10];for(i=0;i<10;i++)v[i]=i;printf("25\64\5c\6e",mybinsearch(2,v,10));}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov DWORD PTR [rbp-(3)],edi;mov QWORD PTR [rbp-(5)],0x0;;mov DWORD PTR [rbp-(0)],0x0;mov eax,DWORD PTR [rbp-(3)];mov edi,eax;call <getPackLen>;mov QWORD PTR [rbp-(2)],rax;cmp QWORD PTR [rbp-(2)],0x0;jns OFS 16 <getResponse>;mov eax,0x0;jmp ...
int main(){int arr[100];int i,j,n,count=0;printf("45\6e\74\65\72\20\73\69\7a\65\20\6f\66\20\74\68\65\20\61\72\72\61\79\20\3a\20");scanf("25\64",&n);printf("45\6e\74\65\72\20\65\6c\65\6d\65\6e\74\73\20\69\6e\20\61\72\72\61\79\20\3a\20\5c\6e");for(i=0;i<n;i++){scanf("25\64",&arr[i]);}for(i=0;i<n;i++){for(j=i+1;j<n;j++){i...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;mov DWORD PTR [rbp-(0)],0x0;lea rdi,45\6e\74\65\72\20\61\20\6e\75\6d\62\65\72\3a;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(2)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call...
void output(){int i;for(i=0;i<n;i++)printf("25\64%c",b[i],i==n-1?'\n':'');}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(8)],rax;xor eax,eax;lea rdi,49\6e\70\75\74\20\61\20\6e\75\6d\62\65\72\20\67\72\65\61\74\65\72\20\74\68\61\6e\20\32\3a\20;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(7)];mov rsi,rax;lea rdi,25\64;mo...
void main(){int i;int a[5],b[5],c[5];for(i=0;i<5;i++){printf("45\6e\74\65\72\20\74\68\65\20\76\61\6c\75\65\20");scanf("25\64",&a[i]);}for(i=0;i<5;i++){printf("45\6e\74\65\72\20\74\68\65\20\76\61\6c\75\65\20");scanf("25\64",&b[i]);}printf("4f\75\74\70\75\74\20\6f\66\20\61\64\64\69\74\69\6f\6e\20\6f\66\20\74\77\6f\20\61\...
endbr64;push rbp;mov rbp,rsp;sub rsp,0xfc0;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(7)],rax;xor eax,eax;lea rax,[rbp-(2)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call <__isoc99_scanf@plt>;mov DWORD PTR [rbp-(8)],0x0;;jmp OFS 21 <main>;mov eax,DWORD PTR [rbp-(8)];cdqe;mov e...
int pop(struct sNode**top_ref){char res;struct sNode*top;if(*top_ref==NULL){printf("53\74\61\63\6b\20\6f\76\65\72\66\6c\6f\77\20\5c\6e");exit(0);}else{top=*top_ref;res=top->data;*top_ref=top->next;free(top);return res;}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov QWORD PTR [rbp-(1)8],rdi;mov QWORD PTR [rbp-(3)],rsi;mov DWORD PTR [rbp-(6)],edx;mov DWORD PTR [rbp-(0)],ecx;mov DWORD PTR [rbp-(5)],r8d;mov DWORD PTR [rbp-(7)],r9d;mov eax,DWORD PTR [rbp+(1)8];cdqe;lea rdx,[rax*4+(2)];;mov rax,QWORD PTR [...
int main(){int n;printf("45\6e\74\65\72\20\74\68\65\20\6e\6f\2e\20\6f\66\20\65\6e\74\72\69\65\73\20\3a\20");scanf("25\64",&n);int i;printf("45\6e\74\65\72\20\74\68\65\20\76\61\6c\75\65\73\5c\6e");for(i=0;i<n;i++)scanf("25\64",&arr[i]);for(i=0;i<500005;i++)lazy[i]=0;build(0,n-1,0);while(1){printf("31\2e\55\70\64\61\74\6...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(7)],rax;xor eax,eax;lea rdi,45\6e\74\65\72\20\74\77\6f\20\70\6f\73\69\74\69\76\65\20\69\6e\74\65\67\65\72\73\3a\20;mov eax,0x0;call <printf@plt>;lea rdx,[rbp-(8)];lea rax,[rbp-(6)];mov rsi,rax;lea ...
struct date dateUpdate(struct date today){struct date tomorrow;int numberOfDays(struct date d);if(today.day!=numberOfDays(today)){tomorrow.day=today.day+1;tomorrow.month=today.month;tomorrow.year=today.year;}else if(today.month==12){tomorrow.day=1;tomorrow.month=1;tomorrow.year=today.year+1;}else{tomorrow.day=1;tomorro...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov QWORD PTR [rbp-(0)],rdi;mov rax,QWORD PTR [rbp-(0)];mov rax,QWORD PTR [rax];test rax,rax;je OFS 22 <print_list>;mov rax,QWORD PTR [rbp-(0)];mov rax,QWORD PTR [rax];mov eax,DWORD PTR [rax];mov esi,eax;lea rdi,4e\6f\64\65\20\4b\65\79\3a\2...
int main(){double angle1,angle2,angle3;printf("61\6e\67\6c\65\31\3a\20");scanf("25\6c\66",&angle1);printf("61\6e\67\6c\65\32\3a\20");scanf("25\6c\66",&angle2);if((angle1>0&&angle1<180)&&(angle2>0&&angle2<180)&&((angle1+angle2)<180)){angle3=180-angle1-angle2;printf("61\6e\67\6c\65\33\3a\20\25\66\5c\6e",angle3);}else pri...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(7)],edi;mov eax,ecx;mov ecx,esi;mov BYTE PTR [rbp-(8)],cl;mov BYTE PTR [rbp-(5)],dl;mov BYTE PTR [rbp-(2)0],al;cmp DWORD PTR [rbp-(7)],0x1;jne OFS 23 <towers>;movsx ecx,BYTE PTR [rbp-(5)];movsx edx,BYTE PTR [rbp-(8)];mov ...
void ft_put_alphabet(void){charletter;letter='a';while(letter<='z'){ft_putchar(letter);letter=letter+1;}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x40;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(9)],rax;xor eax,eax;mov DWORD PTR [rbp-(7)],0x2;mov DWORD PTR [rbp-(10)],0x1;mov DWORD PTR [rbp-(0)],0x3;mov DWORD PTR [rbp-(8)],0x2;mov DWORD PTR [rbp-(5)],0x4;mov DWORD PTR [rbp-(1)],0x3;mov ...
int main(){char mystring[]="52\6f\73\65\73\20\61\72\65\20\72\65\64";char end_ok[]="72\65\64";if(endswith(mystring,end_ok))printf("Yes string ends with 72\65\64.\n");else printf("No string does not end with 72\65\64.\n");char end_not_ok[]="62\6c\75\65";if(endswith(mystring,end_not_ok))printf("Yes string ends with 62\6c\...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(6)],rax;xor eax,eax;mov DWORD PTR [rbp-(5)],0x0;jmp OFS 20 <main>;mov eax,DWORD PTR [rbp-(4)];cmp eax,DWORD PTR [rbp-(5)];jle OFS 20 <main>;mov eax,DWORD PTR [rbp-(4)];mov DWORD PTR [rbp-(5)],e...
void main(){float P[6][6],Q[6][6],R[6][3],S[6][3];int i,j,k,l;printf("65\6e\74\65\72\20\74\68\65\20\36\78\36\20\6d\631\74\72\69\78\20\74\6f\20\66\69\6e\64\20\74\68\65\20\74\72\631\6e\73\70\6f\73\65\20\631\6e\64\20\74\6f\20\62\65\20\6d\75\6c\74\69\70\6c\69\65\64\5c\6e");for(i=0;i<6;i++){for(j=0;j<6;j++){scanf("25\66",&P...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(5)],rdi;mov DWORD PTR [rbp-(9)],esi;mov eax,DWORD PTR [rip+(18)];add eax,0x1;mov DWORD PTR [rip+(15)],eax;mov eax,DWORD PTR [rip+(13)];mov DWORD PTR [rbp-(6)],eax;mov edx,DWORD PTR [rip+(19)];mov eax,DWORD PTR [rip+(11)];cm...
int main(){int a[6],i;printf("45\6e\74\65\72\20\74\68\65\20\76\61\6c\75\65\73\5c\6e");for(i=0;i<=5;i++){scanf("25\64",&a[i]);}for(i=5;i>=0;i--){printf("25\64\n",a[i]);}return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x120;mov DWORD PTR [rbp-(2)],edi;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;lea rax,[rbp-(0)];movabs rsi,0x6d6d6f4320333031;;movabs rdi,0x79616b6f20646e61;;mov QWORD PTR [rax],rsi;mov QWORD PTR [rax+(3)],rdi;mov DWORD PTR [rax...
int main(void){char*s1="54\68\69\73\20\69\73\20\74\68\65\20\77\61\79\2e";int length=strlen(s1);printf("6c\65\6e\67\74\68\3a\20\25\64\5c\6e",length);int our_length=string_length(s1);printf("our 6c\65\6e\67\74\68\3a\20\25\64\5c\6e",our_length);return 0;}
endbr64;push rbp;mov rbp,rsp;lea rdi,45\6d\70\74\79;call <puts@plt>;nop;pop rbp;ret
struct node*sort_list(struct node*start){struct node*ptr1,*ptr2;int temp;ptr1=start;while(ptr1->next!=NULL){ptr2=ptr1->next;while(ptr2!=NULL){if(ptr1->data>ptr2->data){temp=ptr1->data;ptr1->data=ptr2->data;ptr2->data=temp;}ptr2=ptr2->next;}ptr1=ptr1->next;}return start;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(1)4],edi;mov DWORD PTR [rbp-(1)8],esi;mov DWORD PTR [rbp-(0)],edx;cmp DWORD PTR [rbp-(0)],0x0;jle OFS 25 <fibo>;mov edx,DWORD PTR [rbp-(1)4];mov eax,DWORD PTR [rbp-(1)8];add eax,edx;mov DWORD PTR [rbp-(3)],eax;mov eax,DW...
int getLine(char s[],int limit){int c,i;for(i=0;i<limit-1&&(c=getchar())!=EOF&&c!='\n';++i)s[i]=c;if(c=='\n'){s[i]=c,++i;}s[i]='\0';return i;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(3)],edi;mov DWORD PTR [rbp-(2)],0x0;mov DWORD PTR [rbp-(4)],0x2;jmp OFS 17 <check_display>;mov eax,DWORD PTR [rbp-(3)];cdq;idiv DWORD PTR [rbp-(4)];mov eax,edx;test eax,eax;jne OFS 16 <check_display>;mov DWORD PTR [rbp-(2)...
void print(struct hashtable*h){int i;struct node*check;for(i=0;i<97;i++){for(check=h->data[i];check!=NULL;check=check->next){printf("25\73\20\25\64\5c\6e",check->key,check->count);}}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(2)],rax;xor eax,eax;lea rdi,45\6e\74\65\72\20\74\68\65\20\6e\75\6d\62\65\72\20\6f\66\20\70\65\72\73\6f\6e\73\3a\20;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(8)];mov rsi,rax;lea rdi,25\64;mov e...
void print_error_ln_if(int line,int char_number,char message[],bool condition){if(condition){print_error_ln(line,char_number,message);}}
endbr64;push rbp;mov rbp,rsp;push rbx;sub rsp,0x28;mov QWORD PTR [rbp-(0)],rdi;mov DWORD PTR [rbp-(3)],0x0;mov DWORD PTR [rbp-(4)],0x0;jmp OFS 31 <vowel_count>;mov eax,DWORD PTR [rbp-(4)];movsxd rdx,eax;mov rax,QWORD PTR [rbp-(0)];add rax,rdx;movzx eax,BYTE PTR [rax];movsx eax,al;mov ...
int main(){int x,y,temp;printf("45\6e\74\65\72\20\74\68\65\20\74\77\6f\20\6e\75\6d\62\65\72\73\20\77\68\69\63\68\20\79\6f\75\20\77\61\6e\74\20\74\6f\20\73\77\61\70\5c\6e");scanf("25\64\20\25\64",&x,&y);printf("78\3a\20\25\64\5c\6e\20\79\3a\20\25\64\5c\6e",x,y);temp=x;x=y;y=temp;printf("2a\2a\2a\2a\73\77\61\70\70\65\64\...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x50;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(9)],rax;xor eax,eax;mov DWORD PTR [rbp-(3)],0x1;mov DWORD PTR [rbp-(16)],0x1;mov DWORD PTR [rbp-(2)],0x1;mov DWORD PTR [rbp-(15)],0x2;mov DWORD PTR [rbp-(8)],0x3;mov DWORD PTR [rbp-(10)],0x3;mov ...
int main(){int i,j,total_cost;n=6;Graph[0][0]=0;Graph[0][1]=4;Graph[0][2]=4;Graph[0][3]=0;Graph[0][4]=0;Graph[0][5]=0;Graph[0][6]=0;Graph[1][0]=4;Graph[1][1]=0;Graph[1][2]=2;Graph[1][3]=0;Graph[1][4]=0;Graph[1][5]=0;Graph[1][6]=0;Graph[2][0]=4;Graph[2][1]=2;Graph[2][2]=0;Graph[2][3]=3;Graph[2][4]=4;Graph[2][5]=0;Graph[...
endbr64;push rbp;mov rbp,rsp;push rbx;sub rsp,0x38;mov QWORD PTR [rbp-(2)],rdi;mov DWORD PTR [rbp-(12)],esi;mov DWORD PTR [rbp-(4)],edx;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(8)],rax;xor eax,eax;mov rax,rsp;mov rbx,rax;mov eax,DWORD PTR [rbp-(4)];sub eax,DWORD PTR [rbp-(1...
void swapTopTwo(){int top=pop();int second=pop();push(top);push(second);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x410;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;mov DWORD PTR [rbp-(7)],0x0;;lea rdx,[rbp-(15)];mov eax,DWORD PTR [rbp-(12)];mov rsi,rdx;mov edi,eax;call <getPlayersNames>;lea rdi,63\6c\73;call <system@plt>;nop;jmp O...
void quicksort(int number[25],int first,int last){int i,j,pivot,temp;if(first<last){pivot=first;i=first;j=last;while(i<j){while(number[i]<=number[pivot]&&i<last)i++;while(number[j]>number[pivot])j--;if(i<j){temp=number[i];number[i]=number[j];number[j]=temp;}}temp=number[pivot];number[pivot]=number[j];number[j]=temp;qui...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(3)],0x0;mov DWORD PTR [rbp-(2)],0x0;jmp OFS 16 <main>;cmp BYTE PTR [rbp-(0)],0xa;je OFS 21 <main>;cmp BYTE PTR [rbp-(0)],0x20;je OFS 13 <main>;cmp BYTE PTR [rbp-(0)],0x2e;jne OFS 15 <main>;add DWORD PTR [rbp-(2)],0x1;j...
int popB(){int val;if(topB==MAX){printf("5c\6e\20\55\4e\44\45\52\46\4c\4f\57");val=-999;}else{val=stack[topB];topB++;}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(11)],rax;xor eax,eax;lea rdi,31\29\49\6e\73\65\72\74\20\61\74\20\65\6e\64\20\32\29\44\65\6c\65\74\65\20\61\74\20\65\6e\64\20\33\29\44\69\73\70\6c\61\79\20\34\29\49\6e\73\65\72\74\20\61\74\20\68\65\61\64\20\35\29...
void insertAtEnd(struct node**head,int data){struct node*new_node,*temp;new_node=(struct node*)malloc(sizeof(struct node));new_node->data=data;temp=*head;if(NULL==*head){*head=new_node;(*head)->next=NULL;}else{while(NULL!=temp->next){temp=temp->next;}temp->next=new_node;}}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov QWORD PTR [rbp-(1)],rdi;mov rax,QWORD PTR [rbp-(1)];mov rax,QWORD PTR [rax];test rax,rax;jne OFS 12 <Dequeue>;lea rdi,0a\51\75\65\75\65\20\69\73\20\45\6d\70\74\79\20\21\2e\20\55\6e\61\62\6c\65\20\74\6f\20\44\65\71\75\65\75\65\20\2e\2e\20;call <put...
int f9_R(char*s){if(!*s)return 0;return f9_R(s+1)+1;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(5)],0x7e4;mov DWORD PTR [rbp-(4)],0x4a38;cmp DWORD PTR [rbp-(5)],0x7e2;jle OFS 13 <main>;cmp DWORD PTR [rbp-(4)],0x4e20;jg OFS 13 <main>;lea rdi,4f\4b\21;call <puts@plt>;jmp OFS 15 <main>;lea rdi,4e\6f\74\20\4f\4b\21;cal...
int totalInternalNodes(struct node*tree){if((tree==NULL)||((tree->left==NULL)&&(tree->right==NULL)))return 0;elsereturn(totalInternalNodes(tree->left)+totalInternalNodes(tree->right)+1);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov DWORD PTR [rbp-(7)],edi;mov QWORD PTR [rbp-(10)],rsi;mov QWORD PTR [rbp-(6)],rdx;mov eax,DWORD PTR [rbp-(7)];sub eax,0xa;cmp eax,0x9;ja OFS 23 <dayInEng>;mov eax,DWORD PTR [rbp-(7)];cdqe;lea rdx,[rax*8+(5)];;mov rax,QWORD PTR [rbp-(10)...
void printList(struct node*node){while(node!=NULL){printf("25\64\20\20",node->data);node=node->next;}printf("5c\6e");}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(9)],rax;xor eax,eax;lea rdi,65\6e\74\65\72\20\74\68\65\20\6e\6f\2e\6f\66\20\76\65\72\74\69\63\65\73;call <puts@plt>;lea rsi,[rip+(1)];lea rdi,25\64;mov eax,0x0;call <__isoc99_scanf@plt>;mov DWORD...
int main(void){float x_left;float x_right;float x_final;x_left=get_input(1);x_right=get_input(2);x_final=get_next(x_left,x_right);x_left=x_right;x_right=x_final;x_final=get_next(x_left,x_right);x_left=x_right;x_right=x_final;x_final=get_next(x_left,x_right);print_result(x_final);return(0);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(8)],rax;xor eax,eax;lea rdi,50\6c\65\61\73\65\20\65\6e\74\65\72\20\74\68\65\20\64\69\61\6d\65\74\65\72\3a\20;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(7)];mov rsi,rax;lea rdi,25\66;mov eax,0x0...
void main(){static int ma[10][10],mb[10][10];int i,j,k,a,m,n;printf("45\6e\74\65\72\20\74\68\65\20\6f\72\64\65\72\20\6f\66\20\74\68\65\20\6d\61\74\72\69\78\20\5c\6e");scanf("25\64\20\25\64",&m,&n);printf("45\6e\74\65\72\20\63\6f\2d\65\66\66\69\63\69\65\6e\74\73\20\6f\66\20\74\68\65\20\6d\61\74\72\69\78\20\5c\6e");for(i...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(6)],rax;xor eax,eax;lea rdi,45\6e\74\65\72\20\74\77\6f\20\6e\75\6d\62\65\72\73;call <puts@plt>;lea rax,[rbp-(3)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call <__isoc99_scanf@plt>;lea rax,[rbp-(5...
void main(){int i;struct clientData blankClient={0,"","",0.0};FILE*ptr;ptr=fopen("61\6e\61\6c\79\73\69\73\2e\6f\64\74","77\62");if(ptr==NULL){printf("46\69\6c\65\20\63\6f\75\6c\64\6d\6e\27\74\20\62\65\20\6f\70\65\6e\65\64\5c\6e");}else{for(i=1;i<=100;i++){fwrite(&blankClient,sizeof(struct clientData),1,ptr);}fclose(ptr...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(4)],rax;xor eax,eax;lea rdx,[rbp-(6)];lea rax,[rbp-(3)];mov rsi,rax;lea rdi,25\64\20\25\66;mov eax,0x0;call <__isoc99_scanf@plt>;mov eax,DWORD PTR [rbp-(3)];cvtsi2ss xmm0,eax;movss xmm1,DWORD P...
void printResult(int total,int*stamps,int stampCnt,int stampType,int tie){unsigned int i=0;if(0==stampCnt){printf("25\64\20\2d\2d\2d\2d\20\6e\6f\6e\65\5c\72\5c\6e",total);}else{printf("25\64\20\28\25\64\29\3a",total,stampType);if(tie){printf("20\74\69\65\5c\72\5c\6e");}else{sort(stamps,stampCnt);for(i=0;i<stampCnt;i++)...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x40;mov DWORD PTR [rbp-(12)],edi;mov QWORD PTR [rbp-(3)],rsi;cmp DWORD PTR [rbp-(12)],0x2;je OFS 12 <main>;lea rdi,49\6e\76\61\6c\69\64\20\6e\75\6d\62\65\72\20\6f\66\20\61\72\67\75\6d\65\6e\74\73\21;call <puts@plt>;mov eax,0x1;jmp OFS 105 <main>;mov ...
int main(void){char ch[SIZE];char a;int counter;printf("50\6f\64\61\6a\20\70\69\65\72\77\73\7a\61\20\6c\69\74\65\72\65\20\63\69\61\67\75\20\32\36\20\6c\69\74\65\72\5c\6e");scanf("25\63",&a);for(counter=0;counter<SIZE;counter++,a++){ch[counter]=a;printf("25\63",ch[counter]);}return 0;}
endbr64;push rbp;mov rbp,rsp;mov QWORD PTR [rbp-(1)],rdi;mov rax,QWORD PTR [rbp-(1)];mov eax,DWORD PTR [rax+(0)];cmp eax,0xffffffff;jne OFS 10 <isEmpty>;mov eax,0x1;jmp OFS 11 <isEmpty>;mov eax,0x0;pop rbp;ret
void function1(){int local=10;printf("6c\6f\63\61\6c\3a\20\25\64\5c\6e",local);global++;printf("67\6c\6f\62\61\6c\3a\20\25\64\5c\6e",global);int x=10;printf("78\3a\20\25\64\5c\6e",x);}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(4)],rax;xor eax,eax;lea rdi,45\6e\74\65\72\20\74\68\65\20\6e\75\6d\62\65\72\3a;call <puts@plt>;lea rax,[rbp-(6)];mov rsi,rax;lea rdi,25\64;mov eax,0x0;call <__isoc99_scanf@plt>;mov eax,DWORD P...
int main(void){int fd;char buffer[30];fd=open("64\61\74\61",O_CREAT|O_WRONLY,0600);if(fd==-1){printf("66\61\69\6c\65\64\20\74\6f\20\63\72\65\61\74\65\20\61\6e\64\20\6f\70\65\6e\20\74\68\65\20\66\69\6c\65\2e\5c\6e");exit(1);}write(fd,"48\65\6c\6c\6f\20\6d\79\66\69\6c\65\2e\43\72\65\61\74\65\64\20\46\65\62\72\65\61\72\79...
endbr64;push rbp;mov rbp,rsp;sub rsp,0x30;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(4)],rax;xor eax,eax;lea rdi,0a\20\45\6e\74\65\72\20\74\68\65\20\69\6e\66\69\78\20\65\78\70\72\65\73\73\69\6f\6e\20\20\3a\20;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(5)];mov rsi,rax;lea rdi,25\73...
int main(){int a[]={0,1,2,3,4,5,6,7,8,9};for(int i=0;i<10;i++)a[i]=a[i]*5;#ifdef DEBUG_OUTPUT for(int i=0;i<10;i++)printf("61\5b\25\64\5d\20\3d\20\25\64\5c\6e",i,a[i]);#endif#ifdef DEBUG_OUTPUT printf("41\64\64\69\74\69\6f\6e\61\6c\20\6f\75\74\70\75\74\20\73\74\61\74\65\6d\65\6e\74\2e\5c\6e");#endif int sum=0;for(int i...
endbr64;push rbp;mov rbp,rsp;push r15;push r14;push r13;push r12;push rbx;sub rsp,0x38;mov rax,QWORD PTR fs:0x28;;mov QWORD PTR [rbp-(3)],rax;xor eax,eax;mov rax,rsp;mov rbx,rax;lea rdi,4c\65\6e\67\74\68\3a\20;mov eax,0x0;call <printf@plt>;lea rax,[rbp-(1)];mov rsi,rax;lea...
int main(void){char dest[1000];char str[]="54\68\69\73\20\43\6f\6e\74\65\6e\74\09\20\68\6f\68\6f\09\09\69\73\09\20\6f\6b";printf("25\73\5c\6e",str);printf("25\73\5c\6e",shrink_space(dest,str,1000));return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x10;mov DWORD PTR [rbp-(0)],0x1;mov DWORD PTR [rbp-(3)],0x1;jmp OFS 20 <main>;mov eax,DWORD PTR [rbp-(3)];mov esi,eax;lea rdi,25\64\0a;mov eax,0x0;call <printf@plt>;mov edx,DWORD PTR [rbp-(3)];mov eax,DWORD PTR [rbp-(0)];add eax,edx;mov DW...
int main(){int i,odd=0,even=0,numbers[10]={1,5,66,21,25,70,44,62,28,6};for(i=0;i<10;i++){if(numbers[i]%2==0){even++;}else{odd++;}}printf("4f\64\64\3a\20\25\64\2c\20\45\76\65\6e\3a\20\25\64\5c\6e",odd,even);return 0;}
endbr64;push rbp;mov rbp,rsp;sub rsp,0x20;mov QWORD PTR [rbp-(3)],rdi;mov DWORD PTR [rbp-(0)],esi;mov DWORD PTR [rbp-(4)],0x0;jmp OFS 20 <print>;mov eax,DWORD PTR [rbp-(4)];cdqe;lea rdx,[rax*4+(2)];;mov rax,QWORD PTR [rbp-(3)];add rax,rdx;mov eax,DWORD PTR [rax];mov esi,eax;lea ...
void inorder(struct tree*tree_node){if(tree_node!=NULL){inorder(tree_node->left);printf("25\64\t",tree_node->num);inorder(tree_node->right);}}