joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100784e5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x10094128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x18], edx
cmp dword [edx + 0x14], 0x10
jb 0x100496c1
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x100496e5
mov esi, dword [ebp - 0x18]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x100496d0
mov esi, dword [ebp - 0x14]
push edi
push edx
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1004aee0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10049707
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x10049840
cmp dword [esi + 8], 0x5d1745d
je 0x10049856
lea eax, [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.100533df
mov esi, eax
add esp, 4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], esi
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 5
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [ecx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008b7b0]
mov eax, dword [ecx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008b7b0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ecx]
jbe 0x100497f0
call fcn.10049eb0
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004aee0
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
jmp 0x100497f3
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
inc dword [ecx + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x18]
and eax, edi
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, dword [edx + eax*8]
cmp ecx, dword [edi]
jne 0x10049820
mov dword [edx + eax*8], esi
jmp 0x10049833
cmp ecx, dword [ebp - 0x18]
jne 0x1004982a
mov dword [edx + eax*8], esi
jmp 0x10049837
mov ecx, dword [ebp - 0x14]
cmp dword [edx + eax*8 + 4], ecx
jne 0x10049837
mov dword [edx + eax*8 + 4], esi
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.100509bf
int3
Function at 0x100503a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov ecx, 0x401000
call fcn.100505b0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1000b390
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x100503fe
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x10050410
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.100505d0
cmp eax, 0x16197be9
jne 0x1005042b
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.100505d0
cmp eax, 0x94bf
jne 0x10050446
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.100505d0
cmp eax, 0x94bf
jne 0x10050461
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.100505d0
cmp eax, 0x94bf
jne 0x1005047c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.100505d0
cmp eax, 0x3539f633
jne 0x10050497
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.100505d0
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x100505d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.100505b0
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1000b390
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10050629
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10068059
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10067ecf

Function at 0x1006a18a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006a10c
Function at 0x402550
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53169b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40259d
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x118], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.BACKGRND.DLL
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4025cc
push str.BACKGRND.DLL
jmp 0x402631
push dword [ebx]
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.C:SYSTEM.SAVUTILBACKGRND.DLL
push str.BackGroundDLL
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025f8
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.00405390
lea eax, [ebp - 0x118]
push eax
call fcn.00404cc0
mov esi, dword [ebp - 0x118]
add esp, 4
push esi
call edi
test eax, eax
je 0x40263a
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40265b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret

Function at 0x4026f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00517840
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
push 5
mov ecx, 0x58f8d0
jb 0x402747
push str.Vista
jmp 0x40274c
push str.WinXP
call fcn.00405390
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00517448
mov esp, ebp
pop ebp
ret

Function at 0x4028d0
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push 0x4b0
push 0x7d0
call dword [sym.imp.USER32.dll_SetCursorPos]
push 1
call dword [sym.imp.USER32.dll_BlockInput]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x58f8b0], eax
test eax, eax
je 0x402907
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
Function at 0x402910
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5316e6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40295c
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40298f
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x11c], esi
push dword [edi]
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.C:SYSTEM.SAVUTILBACKGRND.EXE
push str.BackGroundEXE
push str.Settings
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029d0
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.00405390
lea eax, [ebp - 0x118]
push eax
call fcn.00404cc0
push edi
call fcn.00402550
add esp, 8
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.BACKGRND
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.00402db0
add esp, 0xc
call fcn.004028d0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402a46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x118]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x402a6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.00517448
mov esp, ebp
pop ebp
ret
Function at 0x402ac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x58f894], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x402c2a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push dword [ebx]
push 0
push str.xResolution
push str.Settings
call esi
push dword [ebx]
mov edi, eax
push 0
push str.yResolution
push str.Settings
mov dword [ebp - 0x10c], edi
call esi
mov esi, eax
test edi, edi
jne 0x402b98
test esi, esi
jne 0x402b98
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
call edi
push eax
lea eax, [ebp - 0x108]
push 0x541c98
push eax
call fcn.00516dd7
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push dword [ebx]
lea eax, [ebp - 0x108]
push eax
push str.xResolution
push str.Settings
call esi
push 1
call edi
push eax
lea eax, [ebp - 0x108]
push 0x541c98
push eax
call fcn.00516dd7
add esp, 0xc
push dword [ebx]
lea ecx, [ebp - 0x108]
push ecx
push str.yResolution
push str.Settings
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
cmp eax, dword [ebp - 0x10c]
jne 0x402bb2
push 1
call edi
cmp eax, esi
je 0x402b85
push 0
call edi
push eax
lea eax, [ebp - 0x108]
push 0x541c98
push eax
call fcn.00516dd7
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push dword [ebx]
lea eax, [ebp - 0x108]
push eax
push str.xResolution
push str.Settings
call esi
push 1
call edi
push eax
lea eax, [ebp - 0x108]
push 0x541c98
push eax
call fcn.00516dd7
add esp, 0xc
push dword [ebx]
lea eax, [ebp - 0x108]
push eax
push str.yResolution
push str.Settings
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00517448
mov esp, ebp
pop ebp
ret

Function at 0x402c90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0
call fcn.00517840
add esp, 0xc
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402d20
lea esp, [esp]
lea eax, [ebp - 0x108]
push str.stsprep.exe
push eax
call fcn.00515ff5
add esp, 8
test eax, eax
je 0x402d1b
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402cf0
jmp 0x402d20
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00517448
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53171b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x541c9b
lea ecx, [ebp - 0x118]
call fcn.004010d0
mov dword [ebp - 4], 0
test edi, edi
jne 0x402e06
xor ecx, ecx
jmp 0x402e19
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x402e10
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e10
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x118]
call fcn.00405390
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x402fc4
push 0
push eax
call fcn.005173ea
add esp, 8
test eax, eax
jne 0x402fc4
push str.BACKGRND
push dword [ebp - 0x118]
mov dword [ebp - 0x124], 0xc
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x130], 0xc
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x174], 0x44
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 4
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
call fcn.0051617f
add esp, 8
test eax, eax
jne 0x402f18
push dword [ebx]
lea eax, [ebp - 0x114]
push dword [esi]
push str._s__s
push eax
call fcn.00516dd7
add esp, 0x10
jmp 0x402f45
push str.HIDEALL
push dword [ebp - 0x118]
call fcn.0051617f
add esp, 8
test eax, eax
jne 0x402f45
push dword [esi]
lea eax, [ebp - 0x114]
push 0x5421d4
push eax
call fcn.00516dd7
add esp, 0xc
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x174]
push eax
push 0
push 0
push 0x20
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.BACKGRND
push dword [ebp - 0x118]
call fcn.0051617f
add esp, 8
test eax, eax
jne 0x402f9c
mov eax, dword [ebp - 0x184]
mov dword [0x58f8ac], eax
jmp 0x402fc4
push str.HIDEALL
push dword [ebp - 0x118]
call fcn.0051617f
mov ecx, dword [0x58f8a8]
add esp, 8
test eax, eax
cmove ecx, dword [ebp - 0x184]
mov dword [0x58f8a8], ecx
mov edx, dword [ebp - 0x118]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402feb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret
Function at 0x404d00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53191b
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404d4d
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x35c], eax
push dword [esi]
lea eax, [ebp - 0x218]
push str._s.
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x360], 1
call fcn.00516dd7
add esp, 0xc
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404e88
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
test byte [ebp - 0x358], 0x10
je 0x404e29
cmp byte [ebp - 0x32c], 0x2e
je 0x404e6f
lea eax, [ebp - 0x32c]
push eax
push dword [esi]
lea eax, [ebp - 0x114]
push str._s_s
push eax
call fcn.00516dd7
lea eax, [ebp - 0x114]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404df0
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x35c]
call fcn.00405390
lea eax, [ebp - 0x35c]
push eax
call fcn.00404cc0
lea eax, [ebp - 0x35c]
push eax
call fcn.00404d00
add esp, 8
jmp 0x404e6f
lea eax, [ebp - 0x32c]
push eax
push dword [esi]
lea eax, [ebp - 0x114]
push str._s_s
push eax
call fcn.00516dd7
add esp, 0x10
lea eax, [ebp - 0x114]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
and dword [ebp - 0x360], eax
lea eax, [ebp - 0x358]
push eax
push edi
call ebx
test eax, eax
jne 0x404db0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, dword [ebp - 0x35c]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x360]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404ece
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret
Function at 0x404ef0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531966
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x541c9b
lea ecx, [ebp - 0x258]
call fcn.004010d0
mov eax, dword [edi]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
mov esi, 1
jge 0x404f4a
or eax, 0xffffffff
jmp 0x404f63
push 0x542594
push eax
call fcn.00516378
add esp, 8
test eax, eax
jne 0x404f61
or eax, 0xffffffff
jmp 0x404f63
sub eax, dword [edi]
push eax
lea eax, [ebp - 0x25c]
push eax
mov ecx, edi
call fcn.00402d40
push eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.004011d0
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x404fa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
call fcn.00404cc0
mov eax, dword [ebp - 0x258]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x404fc7
xor esi, esi
jmp 0x405045
lea eax, [ebp - 0x254]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40503f
lea ecx, [ecx]
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
lea eax, [ebp - 0x114]
push str._s_s
push eax
call fcn.00516dd7
add esp, 0x10
lea eax, [ebp - 0x114]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
and esi, eax
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404fe0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x405063
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret
Function at 0x405430
Capabilities:
Find taskbar
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x58f8b0]
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x405459
push 0
push str.Shell_TrayWnd
call edi
mov dword [0x58f8b0], eax
test eax, eax
je 0x405462
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x10
push 0
push str.BACKGRNDWndClass
call edi
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push eax
call esi
push 0
push 0
push 0x10
push 0
push str.HIDEALLWndClass
call edi
push eax
call esi
push dword [ebp + 8]
call fcn.00402550
mov eax, dword [0x58f8ac]
add esp, 4
test eax, eax
jne 0x4054fa
push eax
push str.BACKGRNDWndClass
call edi
test eax, eax
je 0x405514
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 8]
test eax, eax
je 0x405514
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.USER32.dll_BlockInput]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
push dword [0x58f8ac]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.USER32.dll_BlockInput]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret