#include <stdio.h>
/*
void test()
{
// sub esp, 44h
int b;
int *k=&b;
k+=22;
(*k) = 88;
printf("aaaaaaaaaaaaa %d k = %#0x/n", (*k), k);
/* __asm
{
mov DWORD PTR [ebp-4], 'a'
mov DWORD PTR [ebp+54h], 'a'
}*/
/* printf("The address of b in test is %#0x/n", &b);
}
void taa()
{
int *k;
int *j;
int *i;
k = (int*)malloc(sizeof(int));
j = (int*)malloc(sizeof(int));
i = (int*)malloc(sizeof(int));
printf("The address of k in taa is %#0x/n", k);
printf("The address of j in taa is %#0x/n", j);
printf("The address of i in taa is %#0x/n", i);
}*/
void ccc(char *a)
{
char ta[4];
strcpy(ta, a);
}
void main()
{
// 12ff7c
/* char c=10;
printf("The address of main is %#0x/n", main);
printf("The address of test is %#0x/n", test);
taa();
// 12ff24
test();
*/
ccc("/x77/x77/x77/x77/x40/x10/x40/x00");
// printf("The address of c in main is %#0x/n", &c);
// printf("The value of c in main is %d/n", c);
}
/*
void test()
{
// sub esp, 44h
int b;
int *k=&b;
k+=22;
(*k) = 88;
printf("aaaaaaaaaaaaa %d k = %#0x/n", (*k), k);
/* __asm
{
mov DWORD PTR [ebp-4], 'a'
mov DWORD PTR [ebp+54h], 'a'
}*/
/* printf("The address of b in test is %#0x/n", &b);
}
void taa()
{
int *k;
int *j;
int *i;
k = (int*)malloc(sizeof(int));
j = (int*)malloc(sizeof(int));
i = (int*)malloc(sizeof(int));
printf("The address of k in taa is %#0x/n", k);
printf("The address of j in taa is %#0x/n", j);
printf("The address of i in taa is %#0x/n", i);
}*/
void ccc(char *a)
{
char ta[4];
strcpy(ta, a);
}
void main()
{
// 12ff7c
/* char c=10;
printf("The address of main is %#0x/n", main);
printf("The address of test is %#0x/n", test);
taa();
// 12ff24
test();
*/
ccc("/x77/x77/x77/x77/x40/x10/x40/x00");
// printf("The address of c in main is %#0x/n", &c);
// printf("The value of c in main is %d/n", c);
}