diff --git a/mkpuzzles.py b/mkpuzzles.py index 9ace9d6..3d3e0da 100755 --- a/mkpuzzles.py +++ b/mkpuzzles.py @@ -51,6 +51,34 @@ for cat in os.listdir(opts.puzzles):
8%%>p2pzpzp8%%>pe8%%>pe(#$e(+9"
+.text:08048474 ; =============== S U B R O U T I N E ======================================= +.text:08048474 +.text:08048474 ; Attributes: bp-based frame +.text:08048474 +.text:08048474 public convert_buf +.text:08048474 convert_buf proc near ; CODE XREF: main+B2p +.text:08048474 +.text:08048474 cnt = dword ptr -4 +.text:08048474 buf = dword ptr 8 +.text:08048474 len = dword ptr 0Ch +.text:08048474 +.text:08048474 push ebp +.text:08048475 mov ebp, esp +.text:08048477 sub esp, 10h +.text:0804847A mov [ebp+cnt], 0 +.text:08048481 mov [ebp+cnt], 0 +.text:08048488 jmp short loc_80484A4 +.text:0804848A ; --------------------------------------------------------------------------- +.text:0804848A +.text:0804848A loc_804848A: ; CODE XREF: convert_buf+36j +.text:0804848A mov eax, [ebp+cnt] +.text:0804848D mov edx, eax +.text:0804848F add edx, [ebp+buf] +.text:08048492 mov eax, [ebp+cnt] +.text:08048495 add eax, [ebp+buf] +.text:08048498 movzx eax, byte ptr [eax] +.text:0804849B xor eax, 4Ah +.text:0804849E mov [edx], al +.text:080484A0 add [ebp+cnt], 1 +.text:080484A4 +.text:080484A4 loc_80484A4: ; CODE XREF: convert_buf+14j +.text:080484A4 mov eax, [ebp+cnt] +.text:080484A7 cmp eax, [ebp+len] +.text:080484AA jl short loc_804848A +.text:080484AC leave +.text:080484AD retn +.text:080484AD convert_buf endp +.text:080484AD +.text:080484AE +
+.text:08048474 ; =============== S U B R O U T I N E ======================================= +.text:08048474 +.text:08048474 ; Attributes: bp-based frame +.text:08048474 +.text:08048474 public convert_buf +.text:08048474 convert_buf proc near ; CODE XREF: main+B2p +.text:08048474 +.text:08048474 cnt = dword ptr -4 +.text:08048474 buf = dword ptr 8 +.text:08048474 len = dword ptr 0Ch +.text:08048474 +.text:08048474 push ebp +.text:08048475 mov ebp, esp +.text:08048477 sub esp, 10h +.text:0804847A mov [ebp+cnt], 0 +.text:08048481 mov [ebp+cnt], 0 +.text:08048488 jmp short loc_80484A4 +.text:0804848A ; --------------------------------------------------------------------------- +.text:0804848A +.text:0804848A loc_804848A: ; CODE XREF: convert_buf+36j +.text:0804848A mov eax, [ebp+cnt] +.text:0804848D mov edx, eax +.text:0804848F add edx, [ebp+buf] +.text:08048492 mov eax, [ebp+cnt] +.text:08048495 add eax, [ebp+buf] +.text:08048498 movzx eax, byte ptr [eax] +.text:0804849B xor eax, 4Ch +.text:0804849E mov [edx], al +.text:080484A0 add [ebp+cnt], 1 +.text:080484A4 +.text:080484A4 loc_80484A4: ; CODE XREF: convert_buf+14j +.text:080484A4 mov eax, [ebp+cnt] +.text:080484A7 cmp eax, [ebp+len] +.text:080484AA jl short loc_804848A +.text:080484AC leave +.text:080484AD retn +.text:080484AD convert_buf endp +.text:080484AD +.text:080484AE +