-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'code-pe-export-are-functions' into 'main'
PE exports that correspond to code should be function entries See merge request rewriting/ddisasm!1171
- Loading branch information
Showing
5 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
all: | ||
ml64.exe /c ex.asm | ||
link.exe ex.obj /DLL /SUBSYSTEM:WINDOWS | ||
clean: | ||
del /F /Q *.dll *.obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
INCLUDELIB libcmt | ||
|
||
EXTERN __ImageBase:BYTE | ||
|
||
EXTRN puts:PROC | ||
|
||
.CODE | ||
|
||
|
||
print_ok1 PROC EXPORT | ||
JMP print_ok | ||
print_ok1 ENDP | ||
|
||
print_ok2 PROC EXPORT | ||
JMP print_ok | ||
print_ok2 ENDP | ||
|
||
print_ok3 PROC EXPORT | ||
JMP print_ok | ||
print_ok3 ENDP | ||
|
||
|
||
print_ok: | ||
LEA RCX, OFFSET $OK | ||
CALL puts | ||
|
||
exit: | ||
RET 0 | ||
.DATA | ||
$OK DB "ok", 00H | ||
|
||
|
||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters