qiling icon indicating copy to clipboard operation
qiling copied to clipboard

变量解析出现了错误

Open JA1E0 opened this issue 4 years ago • 3 comments

*Describe the bug eapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025e44 HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025e64 HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x30) = 0x5025e84 HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025eb4 HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025ed4 HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025ef4 HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025f14 EnterCriticalSection(lpCriticalSection = 0x4273c8) = 0x0 LeaveCriticalSection(lpCriticalSection = 0x4273c8) = 0x0 InitializeCriticalSection(lpCriticalSection = 0x42e560) = 0x1 MultiByteToWideChar(CodePage = 0xfde9, dwFlags = 0x0, lpMultiByteStr = "kernel32.dll", cbMultiByte = 0xd, lpWideCharStr = 0xffffcdc8, cchWideChar = 0xd) = 0x1a HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025f34 LoadLibraryW(lpLibFileName = "kernel32.dll") = 0x101a3000 HeapFree(hHeap = 0x5000000, dwFlags = 0x0, lpMem = 0x5025f34) = 0x1 MultiByteToWideChar(CodePage = 0xfde9, dwFlags = 0x0, lpMultiByteStr = "advapi32.dll ", cbMultiByte = 0xd, lpWideCharStr = 0xffffcdc8, cchWideChar = 0xd) = 0x1c HeapAlloc(hHeap = 0x5000000, dwFlags = 0x0, dwBytes = 0x20) = 0x5025f54 [!] LoadLibraryW Exception Found [!] Emulation Error

Expected behavior

变量解析出现了错误,使用x32dbg调试查看是没啥问题的,

Additional context image

JA1E0 avatar Nov 13 '20 07:11 JA1E0

Can you provide a fix ?

xwings avatar Nov 13 '20 07:11 xwings

How to reproduce?

wtdcode avatar Nov 13 '20 16:11 wtdcode

How to reproduce?

https://cowtransfer.com/s/39d71adc0db345 password: 123

Log file and malware in this zip

from qiling import * from qiling.const import *

def my_sandbox(path, rootfs): # setup Qiling engine

ql = Qiling(path, rootfs)
ql.run()

if name == "main":

my_sandbox(["temp/test.dll"], "qiling/examples/rootfs/x86_windows")

JA1E0 avatar Nov 16 '20 03:11 JA1E0

Will you be able to try the latest version of Qiling and see if you still face same issue. There is lots of rework since 2021. Feel free to open a new issue if you have any similar problem.

xwings avatar Oct 06 '22 03:10 xwings