Re: [BLACKBOX] Decorated names in dlls

From: [at]} <Alexander>
Date: Mon, 13 Jun 2011 10:55:12 +0600

----boundary-LibPST-iamunique-1619990833_-_-
Content-type: text/plain

Hello!

DGD> I have been having a devil of time getting a dll (given to me by
DGD> a third party) to find the exported procedures.

DGD> Well it turns out that they have "decorated names" produced by C++
DGD> even though the people who created the dll don't know that.
DGD> Only by opening the dll in hex mode and scanning for the supposed
DGD> name was I able to find the actual name.

DGD> Perhaps a comment by Oberon Microsystems in their documentation
DGD> on using dlls in BlackBox would be helpful to others trying to do the same
DGD> thing.

  Can you show an example of expected vs. decorated name?

  To get a list of functions from a DLL I use xlib.exe from the XDS
  compiler suite:

    xlib /edf filename c:\windows\system32\kernel32.dll

  produces filename.edf file looking like this:

LIBRARY KERNEL32.dll

EXPORTS
   AcquireSRWLockExclusive
   AcquireSRWLockShared
   ActivateActCtx
   AddAtomA
   AddAtomW
   AddConsoleAliasA
   AddConsoleAliasW
   AddIntegrityLabelToBoundaryDescriptor
   AddLocalAlternateComputerNameA
   AddLocalAlternateComputerNameW
   AddRefActCtx
   AddSIDToBoundaryDescriptor
   AddSecureMemoryCacheCallback
   AddVectoredContinueHandler
   AddVectoredExceptionHandler
   AdjustCalendarDate
   AllocConsole
   AllocateUserPhysicalPages
   AllocateUserPhysicalPagesNuma
   ApplicationRecoveryFinished
   ApplicationRecoveryInProgress
   AreFileApisANSI
   AssignProcessToJobObject
   AttachConsole
   BackupRead
   BackupSeek
   BackupWrite
   BaseCheckAppcompatCache
   BaseCheckAppcompatCacheEx
   BaseCheckRunApp
   ...


---===---
 Alexander


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1619990833_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc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DQogICBBZGRWZWN0b3Jl
ZEV4Y2VwdGlvbkhhbmRsZXJccGFyDQogICBBZGp1c3RDYWxlbmRhckRhdGVccGFyDQogICBBbGxv
Y0NvbnNvbGVccGFyDQogICBBbGxvY2F0ZVVzZXJQaHlzaWNhbFBhZ2VzXHBhcg0KICAgQWxsb2Nh
dGVVc2VyUGh5c2ljYWxQYWdlc051bWFccGFyDQogICBBcHBsaWNhdGlvblJlY292ZXJ5RmluaXNo
ZWRccGFyDQogICBBcHBsaWNhdGlvblJlY292ZXJ5SW5Qcm9ncmVzc1xwYXINCiAgIEFyZUZpbGVB
cGlzQU5TSVxwYXINCiAgIEFzc2lnblByb2Nlc3NUb0pvYk9iamVjdFxwYXINCiAgIEF0dGFjaENv
bnNvbGVccGFyDQogICBCYWNrdXBSZWFkXHBhcg0KICAgQmFja3VwU2Vla1xwYXINCiAgIEJhY2t1
cFdyaXRlXHBhcg0KICAgQmFzZUNoZWNrQXBwY29tcGF0Q2FjaGVccGFyDQogICBCYXNlQ2hlY2tB
cHBjb21wYXRDYWNoZUV4XHBhcg0KICAgQmFzZUNoZWNrUnVuQXBwXHBhcg0KICAgLi4uXHBhcg0K
XHBhcg0KXHBhcg0KLS0tPT09PT0tLS1ccGFyDQogQWxleGFuZGVyXHBhcg0KXHBhcg0KXHBhcg0K
LS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05P
RkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19ALk6IXU
----boundary-LibPST-iamunique-1619990833_-_---
Received on Mon Jun 13 2011 - 06:55:12 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:14 UTC