about summary refs log tree commit diff
path: root/bots/amaterasu.x86-32.asm
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-11-08 11:39:04 +0100
committerEmile <git@emile.space>2024-11-08 11:39:04 +0100
commitc685cc8f25adc5b2b72e4bda185fef7ec8dd6592 (patch)
treecf7e9d91eb5219349aec81b29f043b5d72d08af8 /bots/amaterasu.x86-32.asm
parent8ffae39cd303d487cf20177fab2f7b9aa29f1d77 (diff)
push all, yolo
Diffstat (limited to 'bots/amaterasu.x86-32.asm')
-rw-r--r--bots/amaterasu.x86-32.asm35
1 files changed, 35 insertions, 0 deletions
diff --git a/bots/amaterasu.x86-32.asm b/bots/amaterasu.x86-32.asm
new file mode 100644
index 0000000..55d38df
--- /dev/null
+++ b/bots/amaterasu.x86-32.asm
@@ -0,0 +1,35 @@
+start:
+    mov ebp, 0x3e0
+    mov esp, 0x3e0
+    ; lea eax, [end + 0x20]
+    ; lea ebx, [start - 0x20]
+    mov eax, 0xffffffff
+    mov ebx, 0xffffffff
+    mov ecx, 0xffffffff
+    mov edx, 0xffffffff
+    mov edi, 0xffffffff
+    mov esi, 0xffffffff
+
+bot_loop:
+    ; cmp esp, eax
+    ; cmovbe esp, ebx
+
+    ; push 128 bytes at once
+    pushad
+    pushad
+    pushad
+    pushad
+
+    ; push again
+    pushad
+    pushad
+    pushad
+    pushad
+
+    ; jmp to beginning once again
+    cmp esp, 0x10
+    cmovz esp, ebp
+    jmp bot_loop
+
+end:
+    nop
\ No newline at end of file