1 #include <libcgc.h>
2 #include <stdlib.h>
3 #include <string.h>
4 
5 /* Just leak 4 bytes from the flag page, performing a simple mutation on those bytes */
6 
main(int secret_page_i)7 int __attribute((fastcall)) main(int secret_page_i)
8 {
9     int x;
10     int *secret_page = (void *)secret_page_i;
11 
12     x = *secret_page;
13     x += 810293;
14     x ^= 0x32661109;
15     x -= 0x1337;
16 
17     transmit(1, &x, 4, NULL);
18 }
19