; Author:       Matthew Graeber (@mattifestation)
; License:      BSD 3-Clause
; Syntax:       MASM
; Build Syntax: ml64 /c /Cx trampoline.asm
; Output:       trampoline.obj
; Notes: I really wanted to avoid having this external dependency but I couldn't
; come up with any other way to guarantee 16-byte stack alignment in 64-bit
; shellcode written in C.

EXTERN trampoline:near
PUBLIC DllCanUnloadNowAsm

_TEXT SEGMENT

DllCanUnloadNowAsm PROC
	mov eax, trampoline.DllCanUnloadNow
	jmp eax
DllCanUnloadNowAsm ENDP

_TEXT ENDS

END