Tuesday, July 28, 2020

emotet api resolution, fs:30h, _PEB_LDR_DATA

just summarizing important parts in this great blog
https://distributedcompute.com/2020/04/19/how-emotet-resolves-apis/


-----------
STEPS TO GET THE DLL NAMES CURRENTLY IN MEMORY
-----------
mov eax, large fs:30h

EAX now contains pointer to TEB (thread environment block)
-----------
mov esi, [eax+0ch]

ESI now contains pointer to PEB (process environment block)
-----------
add esi, 0ch

ESI now contains pointer to _PEB_LDR_DATA (doubly linked list of in memory modules/dlls)
-----------


-----------
STEPS TO GET THE EXPORTED FUNCTION NAMES FROM A DLL
-----------
mov eax, [esi+3ch]    #esi = _PEB_LDR_DATA from above

EAX now contains pointer to PE Header
------------
add eax, 78h

EAX now contains pointer to Export Table from PE Header
-------------
mov edi, [eax]
add edi, esi
mov eax, [edi+20h]

EAX now contains point to Export NAME table
---------------
mov eax, [edi+1Ch]

EAX now contains pointer to Export ADDRESS table

EAX now

5 comments:

  1. I want to thank Dr Emu a very powerful spell caster who help me to bring my husband back to me, few month ago i have a serious problem with my husband, to the extend that he left the house, and he started dating another woman and he stayed with the woman, i tried all i can to bring him back, but all my effort was useless until the day my friend came to my house and i told her every thing that had happened between me and my husband, then she told me of a powerful spell caster who help her when she was in the same problem I then contact Dr Emu and told him every thing and he told me not to worry my self again that my husband will come back to me after he has cast a spell on him, i thought it was a joke, after he had finish casting the spell, he told me that he had just finish casting the spell, to my greatest surprise within 48 hours, my husband really came back begging me to forgive him, if you need his help you can contact him with via email: Emutemple@gmail.com or add him up on his whatsapp +2347012841542 is willing to help any body that need his help.

    ReplyDelete
  2. I lost my job few months back and there was no way to get income for my family, things was so tough and I couldn't get anything for my children, not until a met a recommendation on a page writing how Mr Bernie Wilfred helped a lady in getting a huge amount of profit every 6 working days on trading with his management on the cryptocurrency Market, to be honest I never believe it but I took the risk to take a loan of $1000. and I contacted him unbelievable and I was so happy I earn $12,500 in 6 working days, the most joy is that I can now take care of my family I don't know how to appreciate your good work Mr. Bernie Doran God will continue to bless you for being a life saver I have no way to appreciate you than to tell people about your good services.
For a perfect investment and good strategies contact Mr Bernie Doran via WhatsApp :+1(424)285-0682 or Telegram : @Bernie_doran_fx or Email : Bernie.doranfx01@gmail.com

    ReplyDelete
  3. Retrieve Your Stolen Cryptocurrency/BTC With “SPYHOST” . They have a track record of successful cryptocurrency recovery, the firm has assisted several clients in recovering their lost or stolen digital assets. This is one of the best financial recovery agencies with highly skilled experts that have a thorough understanding of the complicated workings of the blockchain and the numerous cryptocurrencies, allowing them to rapidly recover lost assets. Contact them Via; Mail Box; (Spyhost@cyberdude. com)
    WhatsAAp; + ‪1 (228) 313‑3152

    ReplyDelete
  4. Are You a Victim of Crypto Hack or Fake Crypto Investment/Mining?
    If you've fallen victim to a crypto hack or a fraudulent investment/mining scheme, it’s crucial to act quickly to recover your lost funds. I can personally recommend Morphohack Cyber Service as the best option for recovery.
    I was once a victim of crypto fraud, and I felt completely helpless until I found Morphohack. Their team was professional, transparent, and highly skilled in recovering lost funds. They guided me through every step of the process, offering both reassurance and effective solutions.
    Morphohack has years of experience in the recovery industry and a strong track record of success. Their team stays up-to-date on the latest trends in crypto fraud, using advanced techniques to trace and recover stolen assets. After doing my own research, I found numerous success stories from other clients who had their funds recovered through Morphohack.
    If you’re dealing with crypto theft or scams, don’t wait, reach out to Morphohack. They are a reliable, trusted service with a proven success rate. Don’t let your crypto losses define your financial future, take action and trust the professionals at Morphohack to help you recover your funds. (MORPHOHACK@CYBERSERVICES. COM)

    ReplyDelete
  5. One morning, I received what looked like a legitimate security alert from a platform I used regularly. The branding and language felt authentic, warning me of suspicious activity and asking me to verify my wallet to avoid restrictions.
    I hesitated briefly. Then I clicked. The page looked identical to the real platform. I connected my wallet and approved what I believed was a routine verification request. There were no warnings or errors. I closed the page and continued my day and in less than an hour later, transaction alerts began appearing. My balance was draining in real time. By the time I accessed my wallet, the entire 250k in crypto was gone.

    I felt sick. The hardest realization was understanding that I had unknowingly authorized the theft myself.
    Out of embarrassment, I stayed silent at first and assumed the loss was permanent. Crypto is often described as irreversible. But after a sleepless night, I decided to act.
    I documented everything, including transaction hashes, wallet addresses, and timestamps. During my search for help, I contacted a digital assets recovery firm called SPYHOST CYBER SERVICES.
    They handled the situation with professionalism and transparency. They explained the recovery process clearly, focusing on blockchain analysis, transaction tracing, wallet monitoring, and coordination with relevant platforms. They made no exaggerated promises, only a commitment to act quickly and thoroughly.

    Using advanced blockchain forensics tools and investigative techniques, SPYHOST CYBER SERVICES traced the movement of the stolen funds across multiple wallets. Through timely intervention and coordination with relevant platforms, every dollar of the stolen crypto was identified, secured, and eventually returned. All of my funds were fully recovered.

    Beyond the financial recovery, the experience restored my confidence and changed how I approach digital assets. I now verify links manually, separate wallets by purpose, and treat urgency as a warning sign rather than an instruction.
    I am sharing this story because silence helps scammers. Loss can happen to anyone. While recovery is never guaranteed, taking swift and informed action can make a real difference.
    SPYHOST CYBER SERVICES can be reached via email at Spyhost@cyberdude.com or through WhatsApp at +1 (228) 313 3152. One click cost me 250k.

    ReplyDelete