>>3
Not OP, but here it goes:
ELF(LUNIX) library
3 exports:
imprime_edx
imprime_ecx
imprime_ebx
imprime_eax
they just print the registers. like this:
printf("eax %d 0x%x\n",®);
printf("ebx %d 0x%x\n",®);
printf("ecx %d 0x%x\n",®);
printf("edx %d 0x%x\n",®);
it was coded in assembly most likely, as the instruction used to save regs is pushad/popad, only braindead compilers use those.