September 2017
Beginner to intermediate
290 pages
6h 58m
English
Let's get to business and write the code for our object file, obj_win.asm:
; First we need to tell the assembler that; we expect an object file compatible with MS linkerformat MS COFF; Then specify the external API we need; extrn means that the procedure is not in this file; the 4 after the '@' specifies size of procedure parameters; in bytes; ExitProcess is a label and dword is its size extrn '__imp__ExitProcess@4' as ExitProcess:dwordextrn '__imp__GetStdHandle@4' as GetStdHandle:dwordextrn '__imp__WriteConsoleA@20' as WriteConsole:dword; And, of course, our "crypto API"extrn '_GetPointers' as GetPointers:dword; Define a constant for GetStdHandle()STD_OUTPUT_HANDLE equal -11; and a structure to ease the access to "crypto functions" ...
Read now
Unlock full access