Results 1 to 3 of 3

Thread: DLGTEMPLATE

  1. #1
    p:g:
    Guest

    DLGTEMPLATE

    Did anyone try to load a dialog box resource from a program instance into memory? If so, can help me?
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    Dr.Golova
    Guest
    Hi, this code ripped from PE Encrypter - it use DialogBox loaded directly from memory.

    lea ecx,[ebp+DlgTemplate]
    lea edx,[ebp+DlgProc]
    push ebp
    call [ebp+_CreateDialogIndirectParamA],eax,ecx,0,edx,WM_USER


    [skip]

    DlgTemplate dd WS_SYSMENU or WS_CAPTION or WS_VISIBLE or DS_3DLOOK or DS_MODALFRAME or WS_POPUP or DS_CENTER
    dw 0,0,1 ; num of items
    dw 100,100,100,20 ; x,y,dx,dy
    dw 0,0 ; menu & class
    db 'E',0,'n',0,'t',0,'e',0,'r',0,' ',0,'P',0,'a',0,'s',0,'s',0,'w',0,'o',0,'r',0,'d',0,0,0 ; the title of the dialog
    @wordalign Addon,0
    dd ES_PASSWORD or ES_LEFT or WS_VISIBLE or WS_CHILD or WS_BORDER or ES_AUTOHSCROLL
    dd 0 ; ext. style
    dw 5,5,90,8 ; x,y,dx,dy
    dw 1 ; control id
    dw 0ffffh, 81h ; class id = "edit"
    db 0,0 ; edit text
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  3. #3
    p:g:
    Guest
    Thanks a lot,
    But my assembly language knowledge is not so good: don't you know where I can find the same example but written in C language?
    I'm more expert in writing program usin' the C and the API.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. DLGTEMPLATE
    By p:g: in forum Malware Analysis and Unpacking Forum
    Replies: 0
    Last Post: May 2nd, 2001, 05:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •