Jump to content

Recommended Posts

Hi,

How write in assemebler instruction call to resource in other DLL not exported function. I want call from dll to dll procedure.

call "FunctionName" ex. call SetLastError

 RtlSetSecurityObjectEx:
          push    ebp
          mov    ebp,esp
          push    [ebp+1Ch]
          push    [ebp+18h]
          push    00000001h
          push    [ebp+14h]
          push    [ebp+10h]
          push    [ebp+0Ch]
          push    [ebp+08h]
          push    00000000h
          call    SUB_L77F9B13A      How write in assembler cal to SUB_L77F9B13A
          pop    ebp
          retn    0018h

Edited by piotrhn
Link to comment
Share on other sites

  • 4 months later...

> How write in assembler instruction call to resource in other DLL not exported function.

To access a resource call LoadResource():
  call dword ptr [LoadResource]


> I want call from dll to dll procedure.
> call "FunctionName" ex. call SetLastError

  call dword ptr [SetLastError]

To call an unexported function that starts 100h (256) bytes after exported function ExportedAPI:
  call dword ptr [ExportedAPI] + 100h

or:
  mov eax, dword ptr [ExportedAPI] + 100
  call eax

To call an absolute address (very dangerous as DLLs might be relocated):
  mov eax, 77F9B13Ah
  call eax




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...