📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  Brainstorms - General  >>  Detect function call from child EXE back to main EXE

Topic created on: June 7, 2008 16:44 CDT by JohnnyVic .

Some basic info... The main application contains a VBA environment. One toolbar pick in the main app will open a second standalone EXE (call it the picker app).

The picker, on user command, communicates 3 values, a VBA function name (probably just a string value) and two others (integer and string) as a call back to the main EXE. The main EXE stores the two values somewhere and executes that VBA function. When the VBA function runs it accesses the two values through a global activex object and does its thing.

Some other observations that may help... The picker cannot be launched without the main app running but can remain open when the main app closes. If the main app restarts, the picker app can continue to function properly.

Also, If one instance of the main app is started without launching the picker app and then a second instance of the main app is started and the picker app is launched from that instance, the picker app will only communicate to the first instance of the main app.

The main app is probably a Visual Studio 6 C/C++ app. The picker app is most likely a Visual Fortran app. The picker app loads the list of available VBA functions and parameter values from a standalone MDB so the communication between the two apps is very simple: intial launch and then a call to probably one function with 3 parameters (VBA function name (string value), integer value and another string value (variable length - contains alphanumeric comma delimited values).

I want to find out how that call is made back to the main app (what that function is and where it is) and to be able to call that function from within another VBA macro within the main app. In other words, bypass the picker app functionality.

Thanks...

  igorsk     June 8, 2008 14:21.33 CDT
There's a gazillion ways an app can pass data to another. WM_COPYDATA, memory-mapped files, shared memory sections, OLE/COM, named pipes, mailslots etc. Check the commandline parameters of the picker app (e.g. with process explorer), maybe that will have some clues...

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit