flat assembler
Message board for the users of flat assembler.
Index
> Windows > typewriter app |
Author |
|
Dex4u 22 Feb 2011, 23:13
This is a simple typewriter app that sound a typewriter sound when key is pressed, users key hook.
Let me know if anyone wants the code.
|
|||||||||||
22 Feb 2011, 23:13 |
|
Madis731 23 Feb 2011, 11:42
it won't catch up if one was to type too fast. Neither does it overlap multiple samples of one audio. But its a good start.
|
|||
23 Feb 2011, 11:42 |
|
idle 23 Feb 2011, 12:37
Quote:
me wants the code ^) |
|||
23 Feb 2011, 12:37 |
|
typedef 24 Feb 2011, 01:53
Code: CPU Disasm Address Hex dump Command Comments 00402000 6A 00 PUSH 0 00402002 FF15 C4304000 CALL DWORD PTR DS:[<&KERNEL32.GetModuleHandleA>] 00402008 A3 19104000 MOV DWORD PTR DS:[401019],EAX 0040200D 6A 01 PUSH 1 0040200F 50 PUSH EAX 00402010 FF15 5E314000 CALL DWORD PTR DS:[<&USER32.LoadIconA>] 00402016 A3 4D104000 MOV DWORD PTR DS:[40104D],EAX 0040201B 68 007F0000 PUSH 7F00 00402020 6A 00 PUSH 0 00402022 FF15 5A314000 CALL DWORD PTR DS:[<&USER32.LoadCursorA>] 00402028 A3 51104000 MOV DWORD PTR DS:[401051],EAX 0040202D C705 39104000 0 MOV DWORD PTR DS:[401039],0 00402037 C705 3D104000 F MOV DWORD PTR DS:[40103D],OFFSET TypeWriter.004020FD 00402041 C705 41104000 0 MOV DWORD PTR DS:[401041],0 0040204B C705 45104000 0 MOV DWORD PTR DS:[401045],0 00402055 A1 19104000 MOV EAX,DWORD PTR DS:[401019] 0040205A A3 49104000 MOV DWORD PTR DS:[401049],EAX 0040205F C705 55104000 1 MOV DWORD PTR DS:[401055],10 00402069 C705 59104000 0 MOV DWORD PTR DS:[401059],0 00402073 C705 5D104000 0 MOV DWORD PTR DS:[40105D],OFFSET TypeWriter.0040100B ; ASCII "FASMWIN32" 0040207D 68 39104000 PUSH OFFSET TypeWriter.00401039 00402082 FF15 32314000 CALL DWORD PTR DS:[<&USER32.RegisterClassA>] 00402088 6A 00 PUSH 0 0040208A FF35 19104000 PUSH DWORD PTR DS:[401019] 00402090 6A 00 PUSH 0 00402092 6A 00 PUSH 0 00402094 68 8E000000 PUSH 8E 00402099 68 DE000000 PUSH 0DE 0040209E 68 80000000 PUSH 80 004020A3 68 80000000 PUSH 80 004020A8 68 8408C810 PUSH 10C80884 004020AD 68 00104000 PUSH OFFSET TypeWriter.00401000 ; ASCII "TypeWriter" 004020B2 68 0B104000 PUSH OFFSET TypeWriter.0040100B ; ASCII "FASMWIN32" 004020B7 6A 00 PUSH 0 004020B9 FF15 36314000 CALL DWORD PTR DS:[<&USER32.CreateWindowExA>] 004020BF A3 15104000 MOV DWORD PTR DS:[401015],EAX 004020C4 6A 00 PUSH 0 004020C6 6A 00 PUSH 0 004020C8 6A 00 PUSH 0 004020CA 68 1D104000 PUSH OFFSET TypeWriter.0040101D 004020CF FF15 3E314000 CALL DWORD PTR DS:[<&USER32.GetMessageA>] 004020D5 09C0 OR EAX,EAX 004020D7 74 18 JE SHORT 004020F1 004020D9 68 1D104000 PUSH OFFSET TypeWriter.0040101D 004020DE FF15 42314000 CALL DWORD PTR DS:[<&USER32.TranslateMessage>] 004020E4 68 1D104000 PUSH OFFSET TypeWriter.0040101D 004020E9 FF15 46314000 CALL DWORD PTR DS:[<&USER32.DispatchMessageA>] 004020EF ^ EB D3 JMP SHORT 004020C4 004020F1 FF35 25104000 PUSH DWORD PTR DS:[401025] 004020F7 FF15 C8304000 CALL DWORD PTR DS:[<&KERNEL32.ExitProcess>] 004020FD 55 PUSH EBP 004020FE 89E5 MOV EBP,ESP 00402100 53 PUSH EBX 00402101 56 PUSH ESI 00402102 57 PUSH EDI 00402103 837D 0C 01 CMP DWORD PTR SS:[EBP+0C],1 00402107 0F84 8D000000 JE 0040219A 0040210D 837D 0C 0F CMP DWORD PTR SS:[EBP+0C],0F 00402111 74 2E JE SHORT 00402141 00402113 837D 0C 02 CMP DWORD PTR SS:[EBP+0C],2 00402117 0F84 8D000000 JE 004021AA 0040211D 817D 0C E807000 CMP DWORD PTR SS:[EBP+0C],7E8 00402124 0F84 90000000 JE 004021BA 0040212A FF75 14 PUSH DWORD PTR SS:[EBP+14] 0040212D FF75 10 PUSH DWORD PTR SS:[EBP+10] 00402130 FF75 0C PUSH DWORD PTR SS:[EBP+0C] 00402133 FF75 08 PUSH DWORD PTR SS:[EBP+8] 00402136 FF15 3A314000 CALL DWORD PTR DS:[<&USER32.DefWindowProcA>] 0040213C E9 8B000000 JMP 004021CC 00402141 68 65104000 PUSH OFFSET TypeWriter.00401065 00402146 FF75 08 PUSH DWORD PTR SS:[EBP+8] 00402149 FF15 4A314000 CALL DWORD PTR DS:[<&USER32.BeginPaint>] 0040214F A3 61104000 MOV DWORD PTR DS:[401061],EAX 00402154 68 A5104000 PUSH OFFSET TypeWriter.004010A5 00402159 FF75 08 PUSH DWORD PTR SS:[EBP+8] 0040215C FF15 4E314000 CALL DWORD PTR DS:[<&USER32.GetClientRect>] 00402162 6A 01 PUSH 1 00402164 FF35 61104000 PUSH DWORD PTR DS:[401061] 0040216A FF15 40324000 CALL DWORD PTR DS:[<&GDI32.SetBkMode>] 00402170 6A 11 PUSH 11 00402172 68 A5104000 PUSH OFFSET TypeWriter.004010A5 00402177 6A FF PUSH -1 00402179 68 B5104000 PUSH OFFSET TypeWriter.004010B5 ; ASCII " TypeWriter sound emulator by Craig Bamford (c) a.k.a Dex www.dex4u.com" 0040217E FF35 61104000 PUSH DWORD PTR DS:[401061] 00402184 FF15 52314000 CALL DWORD PTR DS:[<&USER32.DrawTextA>] 0040218A 68 65104000 PUSH OFFSET TypeWriter.00401065 0040218F FF75 08 PUSH DWORD PTR SS:[EBP+8] 00402192 FF15 56314000 CALL DWORD PTR DS:[<&USER32.EndPaint>] 00402198 EB 32 JMP SHORT 004021CC 0040219A FF75 08 PUSH DWORD PTR SS:[EBP+8] 0040219D FF15 60324000 CALL DWORD PTR DS:[<&HOOK.SetHook>] 004021A3 E8 2B000000 CALL 004021D3 004021A8 ^ EB 80 JMP SHORT 0040212A 004021AA FF15 64324000 CALL DWORD PTR DS:[<&HOOK.Unhook>] 004021B0 6A 00 PUSH 0 004021B2 FF15 62314000 CALL DWORD PTR DS:[<&USER32.PostQuitMessage>] 004021B8 31C0 XOR EAX,EAX 004021BA 837D 10 1C CMP DWORD PTR SS:[EBP+10],1C 004021BE 74 07 JE SHORT 004021C7 004021C0 E8 0E000000 CALL 004021D3 004021C5 EB 05 JMP SHORT 004021CC 004021C7 E8 71000000 CALL 0040223D 004021CC 5F POP EDI 004021CD 5E POP ESI 004021CE 5B POP EBX 004021CF C9 LEAVE 004021D0 C2 1000 RETN 10 004021D3 C705 44114000 0 MOV DWORD PTR DS:[401144],0 004021DD C705 48114000 0 MOV DWORD PTR DS:[401148],OFFSET TypeWriter.00401104 ; ASCII "typewriter.wav" 004021E7 68 3C114000 PUSH OFFSET TypeWriter.0040113C 004021EC 68 00020000 PUSH 200 004021F1 68 03080000 PUSH 803 004021F6 6A 00 PUSH 0 004021F8 FF15 88324000 CALL DWORD PTR DS:[<&WINMM.mciSendCommandA>] 004021FE 68 54114000 PUSH OFFSET TypeWriter.00401154 00402203 6A 00 PUSH 0 00402205 68 06080000 PUSH 806 0040220A FF35 40114000 PUSH DWORD PTR DS:[401140] 00402210 FF15 88324000 CALL DWORD PTR DS:[<&WINMM.mciSendCommandA>] 00402216 68 96000000 PUSH 96 0040221B FF15 C0304000 CALL DWORD PTR DS:[<&KERNEL32.Sleep>] 00402221 68 50114000 PUSH OFFSET TypeWriter.00401150 00402226 6A 00 PUSH 0 00402228 68 04080000 PUSH 804 0040222D FF35 40114000 PUSH DWORD PTR DS:[401140] 00402233 FF15 88324000 CALL DWORD PTR DS:[<&WINMM.mciSendCommandA>] 00402239 C9 LEAVE 0040223A C2 1000 RETN 10 0040223D C705 44114000 0 MOV DWORD PTR DS:[401144],0 00402247 C705 48114000 1 MOV DWORD PTR DS:[401148],OFFSET TypeWriter.00401114 ; ASCII "typewriterding.wav" 00402251 68 3C114000 PUSH OFFSET TypeWriter.0040113C 00402256 68 00020000 PUSH 200 0040225B 68 03080000 PUSH 803 00402260 6A 00 PUSH 0 00402262 FF15 88324000 CALL DWORD PTR DS:[<&WINMM.mciSendCommandA>] 00402268 68 54114000 PUSH OFFSET TypeWriter.00401154 0040226D 6A 00 PUSH 0 0040226F 68 06080000 PUSH 806 00402274 FF35 40114000 PUSH DWORD PTR DS:[401140] 0040227A FF15 88324000 CALL DWORD PTR DS:[<&WINMM.mciSendCommandA>] 00402280 68 90010000 PUSH 190 00402285 FF15 C0304000 CALL DWORD PTR DS:[<&KERNEL32.Sleep>] 0040228B 68 50114000 PUSH OFFSET TypeWriter.00401150 00402290 6A 00 PUSH 0 00402292 68 04080000 PUSH 804 00402297 FF35 40114000 PUSH DWORD PTR DS:[401140] 0040229D FF15 88324000 CALL DWORD PTR DS:[<&WINMM.mciSendCommandA>] 004022A3 C9 LEAVE 004022A4 C2 1000 RETN 10 Have you ever heard of OllyDbg Hehehehe |
|||
24 Feb 2011, 01:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.