;///////Crazy asci to integer proc ;///////Coded by fakedminded/berniee (2008) ;///////ass-koder.de.vu ||fakedminded.wordpress.com ;///////Details: This manage to get char (decimal) into integer with bruteforcing! ;/////// you can implelement char (hexa) just bt modifying %d --->%xh ;|---------___________________________________________----------------| ;| | ;| Crazy atoi() bruteforcer!!! | ;| | ;|--------___________________________________________-----------------| .586 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib .data string1 db "344512",0 decimal db "%d",0 .data? buffer1 db 16 dup(?) .code atoi: xor ecx,ecx push esi @@: inc ecx push ecx invoke RtlZeroMemory,offset buffer1,16 mov ecx,[esp] invoke wsprintf,offset buffer1,offset decimal,ecx mov esi,[esp+4] invoke lstrcmp,esi,offset buffer1 or eax,eax jz @f pop ecx jmp @b @@: pop eax pop esi ret start: mov esi,offset string1 call atoi invoke ExitProcess,0 end start