I'm having some trouble with a piece of malware I'm trying to work with, the main issue is that it manages to always terminate outside the user code. When I run it normally under BSA, it runs and terminates like so:
Code: Select all
I am not sure how to deal with GetModuleHandle as far as BSA is concerned, I cannot see how this would trigger my VM's detection or sandbox detection. Secondly, when I load it into Olly, It always terminates after IsDebuggerPresent even if I modify the return. Sleep works fine, but it seems to just quit at ExitProcess(0). I am not sure how to handle this, I thought it was TLS, and I can see some TLS import when i examine it in CFF Explorer, but the TLS directory and offset are just 00000. If i step through the code for awhile, I can eventually find some code outside the code section, but it so robust It would take weeks to get through it all. Is there some sort of "sweet spot" to look for to prevent termination of this process so I can continue reversing it?LoadLibrary(uxtheme.dll) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
IsDebuggerPresent() [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
FreeLibrary(C:\WINDOWS\system32\uxtheme.dll) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
Sleep(50) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
ExitProcess(0) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
OpenProcess(taskmgr.exe) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
OpenProcess(hpqtra08.exe) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
OpenProcess(wscntfy.exe) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
OpenProcess(hpwuSchd2.exe) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
GetModuleHandle(EXPLORER.EXE) [c:\documents and settings\not_a_vm\yuksfgiluegwufywpcjt.exe]
Attachments
pass is my username
(408.61 KiB) Downloaded 56 times
(408.61 KiB) Downloaded 56 times
Last edited by RageMachine on Fri Nov 30, 2012 5:48 pm, edited 1 time in total.