From b495563e636c223be39d5ed516572f6a8406b2b3 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Tue, 6 Jan 2015 18:03:10 +0100 Subject: Examples: Move used samples to a common place: /samples --- example/box.exe | Bin 21827 -> 0 bytes example/box_upx.exe | Bin 14659 -> 0 bytes example/md5_arm | Bin 15381 -> 0 bytes example/samples/box.exe | Bin 0 -> 21827 bytes example/samples/box_upx.exe | Bin 0 -> 14659 bytes example/samples/md5_arm | Bin 0 -> 15381 bytes example/samples/x86_32_mod.S | 35 +++++++++++++++++++++++++++++ example/samples/x86_32_mod_self.S | 20 +++++++++++++++++ example/samples/x86_32_repmod.S | 46 ++++++++++++++++++++++++++++++++++++++ example/samples/x86_32_sc.bin | 1 + example/samples/x86_32_simple.S | 12 ++++++++++ example/x86_32_mod.S | 35 ----------------------------- example/x86_32_mod_self.S | 20 ----------------- example/x86_32_repmod.S | 46 -------------------------------------- example/x86_32_sc.bin | 1 - example/x86_32_simple.S | 12 ---------- 16 files changed, 114 insertions(+), 114 deletions(-) delete mode 100755 example/box.exe delete mode 100755 example/box_upx.exe delete mode 100755 example/md5_arm create mode 100755 example/samples/box.exe create mode 100755 example/samples/box_upx.exe create mode 100755 example/samples/md5_arm create mode 100644 example/samples/x86_32_mod.S create mode 100644 example/samples/x86_32_mod_self.S create mode 100644 example/samples/x86_32_repmod.S create mode 100644 example/samples/x86_32_sc.bin create mode 100644 example/samples/x86_32_simple.S delete mode 100644 example/x86_32_mod.S delete mode 100644 example/x86_32_mod_self.S delete mode 100644 example/x86_32_repmod.S delete mode 100644 example/x86_32_sc.bin delete mode 100644 example/x86_32_simple.S (limited to 'example') diff --git a/example/box.exe b/example/box.exe deleted file mode 100755 index 1c11bcda..00000000 Binary files a/example/box.exe and /dev/null differ diff --git a/example/box_upx.exe b/example/box_upx.exe deleted file mode 100755 index d0776ec2..00000000 Binary files a/example/box_upx.exe and /dev/null differ diff --git a/example/md5_arm b/example/md5_arm deleted file mode 100755 index 148e0611..00000000 Binary files a/example/md5_arm and /dev/null differ diff --git a/example/samples/box.exe b/example/samples/box.exe new file mode 100755 index 00000000..1c11bcda Binary files /dev/null and b/example/samples/box.exe differ diff --git a/example/samples/box_upx.exe b/example/samples/box_upx.exe new file mode 100755 index 00000000..d0776ec2 Binary files /dev/null and b/example/samples/box_upx.exe differ diff --git a/example/samples/md5_arm b/example/samples/md5_arm new file mode 100755 index 00000000..148e0611 Binary files /dev/null and b/example/samples/md5_arm differ diff --git a/example/samples/x86_32_mod.S b/example/samples/x86_32_mod.S new file mode 100644 index 00000000..df7792af --- /dev/null +++ b/example/samples/x86_32_mod.S @@ -0,0 +1,35 @@ +main: + CALL test_automod + CALL test_automod + RET + +test_automod: + PUSH EBP + MOV EBP, ESP + +loop: + MOV EAX, 0 + CMP EAX, 0 + JMP mod_addr +mod_addr: + JNZ end + + PUSH 0 + PUSH title + PUSH msg + PUSH 0 + CALL DWORD PTR [ MessageBoxA ] + + ; automodif code + MOV BYTE PTR [mod_addr], 0xEB + JMP loop +end: + MOV BYTE PTR [mod_addr], 0x75 + MOV ESP, EBP + POP EBP + RET + +title: +.string "Hello!" +msg: +.string "World!" diff --git a/example/samples/x86_32_mod_self.S b/example/samples/x86_32_mod_self.S new file mode 100644 index 00000000..398438ec --- /dev/null +++ b/example/samples/x86_32_mod_self.S @@ -0,0 +1,20 @@ +main: + PUSH EBP + MOV EBP, ESP + MOV BYTE PTR [myint], 0x90 +myint: + INT 0x3 + + PUSH 0 + PUSH title + PUSH msg + PUSH 0 + CALL DWORD PTR [ MessageBoxA ] + MOV ESP, EBP + POP EBP + RET + +title: +.string "Hello!" +msg: +.string "World!" diff --git a/example/samples/x86_32_repmod.S b/example/samples/x86_32_repmod.S new file mode 100644 index 00000000..332a876c --- /dev/null +++ b/example/samples/x86_32_repmod.S @@ -0,0 +1,46 @@ +main: + CALL test_automod + RET + +lbl_good: + NOP + NOP + NOP + NOP + NOP + NOP + NOP + NOP + NOP + +test_automod: + PUSH EBP + MOV EBP, ESP + + LEA EDI, DWORD PTR [lbl_mod] + LEA ESI, DWORD PTR [lbl_good] + + MOV ECX, 0x8 + REPE MOVSB +lbl_mod: + XOR EAX, EAX + MOV DWORD PTR [EAX], 0xDEADC0DE + + NOP + NOP + NOP + + PUSH 0 + PUSH title + PUSH msg + PUSH 0 + CALL DWORD PTR [ MessageBoxA ] + + MOV ESP, EBP + POP EBP + RET + +title: +.string "Hello!" +msg: +.string "World!" diff --git a/example/samples/x86_32_sc.bin b/example/samples/x86_32_sc.bin new file mode 100644 index 00000000..c1931ce0 --- /dev/null +++ b/example/samples/x86_32_sc.bin @@ -0,0 +1 @@ +I[t[[ \ No newline at end of file diff --git a/example/samples/x86_32_simple.S b/example/samples/x86_32_simple.S new file mode 100644 index 00000000..f38c232f --- /dev/null +++ b/example/samples/x86_32_simple.S @@ -0,0 +1,12 @@ +main: + PUSH 0 + PUSH title + PUSH msg + PUSH 0 + CALL DWORD PTR [ MessageBoxA ] + RET + +title: +.string "Hello!" +msg: +.string "World!" diff --git a/example/x86_32_mod.S b/example/x86_32_mod.S deleted file mode 100644 index df7792af..00000000 --- a/example/x86_32_mod.S +++ /dev/null @@ -1,35 +0,0 @@ -main: - CALL test_automod - CALL test_automod - RET - -test_automod: - PUSH EBP - MOV EBP, ESP - -loop: - MOV EAX, 0 - CMP EAX, 0 - JMP mod_addr -mod_addr: - JNZ end - - PUSH 0 - PUSH title - PUSH msg - PUSH 0 - CALL DWORD PTR [ MessageBoxA ] - - ; automodif code - MOV BYTE PTR [mod_addr], 0xEB - JMP loop -end: - MOV BYTE PTR [mod_addr], 0x75 - MOV ESP, EBP - POP EBP - RET - -title: -.string "Hello!" -msg: -.string "World!" diff --git a/example/x86_32_mod_self.S b/example/x86_32_mod_self.S deleted file mode 100644 index 398438ec..00000000 --- a/example/x86_32_mod_self.S +++ /dev/null @@ -1,20 +0,0 @@ -main: - PUSH EBP - MOV EBP, ESP - MOV BYTE PTR [myint], 0x90 -myint: - INT 0x3 - - PUSH 0 - PUSH title - PUSH msg - PUSH 0 - CALL DWORD PTR [ MessageBoxA ] - MOV ESP, EBP - POP EBP - RET - -title: -.string "Hello!" -msg: -.string "World!" diff --git a/example/x86_32_repmod.S b/example/x86_32_repmod.S deleted file mode 100644 index 332a876c..00000000 --- a/example/x86_32_repmod.S +++ /dev/null @@ -1,46 +0,0 @@ -main: - CALL test_automod - RET - -lbl_good: - NOP - NOP - NOP - NOP - NOP - NOP - NOP - NOP - NOP - -test_automod: - PUSH EBP - MOV EBP, ESP - - LEA EDI, DWORD PTR [lbl_mod] - LEA ESI, DWORD PTR [lbl_good] - - MOV ECX, 0x8 - REPE MOVSB -lbl_mod: - XOR EAX, EAX - MOV DWORD PTR [EAX], 0xDEADC0DE - - NOP - NOP - NOP - - PUSH 0 - PUSH title - PUSH msg - PUSH 0 - CALL DWORD PTR [ MessageBoxA ] - - MOV ESP, EBP - POP EBP - RET - -title: -.string "Hello!" -msg: -.string "World!" diff --git a/example/x86_32_sc.bin b/example/x86_32_sc.bin deleted file mode 100644 index c1931ce0..00000000 --- a/example/x86_32_sc.bin +++ /dev/null @@ -1 +0,0 @@ -I[t[[ \ No newline at end of file diff --git a/example/x86_32_simple.S b/example/x86_32_simple.S deleted file mode 100644 index f38c232f..00000000 --- a/example/x86_32_simple.S +++ /dev/null @@ -1,12 +0,0 @@ -main: - PUSH 0 - PUSH title - PUSH msg - PUSH 0 - CALL DWORD PTR [ MessageBoxA ] - RET - -title: -.string "Hello!" -msg: -.string "World!" -- cgit 1.4.1