Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Recommended Posts

Posted (edited)

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

Share this post


Link to post
Share on other sites

> 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




Share this post


Link to post
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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×