Advertisement
finalshare

HPNY.ASm

Jan 28th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "1.c"
  2.     .intel_syntax noprefix
  3.     .def    ___main;    .scl    2;  .type   32; .endef
  4.     .section .rdata,"dr"
  5. LC0:
  6.     .ascii "Chuc Mung Nam Moi.\0"
  7. LC1:
  8.     .ascii "Happy New Year 2017.\0"
  9.     .section    .text.unlikely,"x"
  10. LCOLDB2:
  11.     .section    .text.startup,"x"
  12. LHOTB2:
  13.     .p2align 4,,15
  14.     .globl  _main
  15.     .def    _main;  .scl    2;  .type   32; .endef
  16. _main:
  17.     push    ebp
  18.     mov ebp, esp
  19.     and esp, -16
  20.     sub esp, 16
  21.     call    ___main
  22.     mov DWORD PTR [esp], OFFSET FLAT:LC0
  23.     call    _printf
  24.     mov DWORD PTR [esp], OFFSET FLAT:LC1
  25.     call    _printf
  26.     xor eax, eax
  27.     leave
  28.     ret
  29.     .section    .text.unlikely,"x"
  30. LCOLDE2:
  31.     .section    .text.startup,"x"
  32. LHOTE2:
  33.     .ident  "GCC: (tdm-1) 4.9.2"
  34.     .def    _printf;    .scl    2;  .type   32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement