section .text global getVendorId getVendorId: mov eax, 0x00 cpuid mov eax, esp mov eax, [eax+4] mov [eax], ebx mov [eax+8], ecx mov [eax+4], edx ret