aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution/Invoke-ReflectivePEInjection_Resources/Shellcode/x86/ExitThread.asm
blob: ce665435938a763b664305f7d74f12fd90e72f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[SECTION .text]
global _start

_start:
	; Set a var to 1, let PS know the EXE is exiting
	mov ebx, 0x41414141
	mov [ebx], byte 0x01

	; Call exitthread instead of exit process
	sub esp, 0x20
	and esp, 0xFFFFFFc0 ; Needed for stack alignment
	mov ebx, 0x41414141
	call ebx