Code: |
format PE GUI 4.0 DLL
entry DllEntryPoint
include 'win32a.inc'
section '.text' code readable executable
proc DllEntryPoint hinstDLL,fdwReason,lpvReserved
mov eax,TRUE
ret
endp
proc funcA a,b,c,d
endp
proc funcW a,b,c,d
xor eax,eax
ret
endp
section '.edata' export data readable
export 'FAKE.DLL',\
funcA, 'funcA', funcW, 'funcW'
|
|
Code: |
funcA: 55 push ebp
.0040100D: 89E5 mov ebp,esp
funcW: 55 push ebp
.00401010: 89E5 mov ebp,esp
.00401012: 31C0 xor eax,eax
.00401014: C9 leave
.00401015: C21000 retn 00010 ;
|
|
Such crap works in Masm (no code for empty function).
I tried to make two functions with same address, now i did it trough "funcW, 'funcA', funcW, 'funcW'" in export.