joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.004717b0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.InstallDate
push dword [0x52708c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40cbbc
lea edx, [ebp - 0x20c]
lea ecx, [esi + 8]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40cba0
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
push edx
push eax
call fcn.004089b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042788a
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push edi
mov edi, ecx
mov ebx, dword [edi + 0x74]
jne 0x40ce9d
push esi
mov esi, dword [edi + 0x28]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d6f0
mov dword [edi + 0x28], esi
pop esi
test eax, eax
je 0x40ce50
mov dword [edi + 0x74], ebx
mov eax, 1
pop edi
pop ebx
pop ebp
ret 0x18
cmp dword [ebp + 0xc], 0x10
jne 0x40ce9d
push 0
push dword [edi + 4]
mov dword [edi + 0x74], 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x52b3f8
call fcn.00404e20
call fcn.00414160
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [edi + 0x74], 0
jne 0x40ce42
mov dword [edi + 0x74], ebx
xor eax, eax
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x411b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e83d6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x411bec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x411bec
call fcn.00410860
mov edi, eax
jmp 0x411d0b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x411c0f
call fcn.00410860
jmp 0x411cfe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x411c2d
call fcn.00410860
jmp 0x411cfe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x411c4e
mov edi, 0x8007000e
jmp 0x411d00
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x411d44
jb 0x411c6c
cmp eax, 0xffffffff
ja 0x411d44
cmp eax, 0x400
jbe 0x411c81
push eax
lea ecx, [ebp - 0x418]
call fcn.00410780
jmp 0x411ca7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x411ca7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x411cbe
mov edi, 0x8007000e
jmp 0x411d00
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x411cde
call fcn.00410860
jmp 0x411cfe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004119a0
mov edi, eax
test esi, esi
je 0x411d0b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x411d24
lea ecx, [ebp - 0x418]
call fcn.00410bf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00404020
int3
Function at 0x4159a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8722
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x527354]
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]
xor eax, eax
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x81c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x800
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 0x81c], 1
call fcn.004717b0
add esp, 0xc
mov dword [ebp - 0x82c], 1
cmp dword [0x52724c], 0
mov esi, 0x20019
mov dword [ebp - 0x828], 0x800
mov dword [ebp - 0x814], 0
je 0x415b2e
push str.GetNativeSystemInfo
push 0x4fb7b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415b24
xorps xmm0, xmm0
mov dword [ebp - 0x834], 0
lea ecx, [ebp - 0x854]
push ecx
movups xmmword [ebp - 0x854], xmm0
movups xmmword [ebp - 0x844], xmm0
call eax
mov ax, word [ebp - 0x854]
cmp ax, 9
je 0x415b1a
cmp ax, 6
je 0x415b1a
cmp ax, 0xc
je 0x415b1a
push str.IsWow64Process2
push 0x4fb7e8
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x818], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x824], eax
test eax, eax
je 0x415b11
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x824]
test eax, eax
je 0x415b11
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x818], cx
sete al
mov dword [0x52b430], eax
jmp 0x415b24
xor eax, eax
mov dword [0x52b430], eax
jmp 0x415b24
mov dword [0x52b430], 1
mov dword [0x52724c], 0
cmp dword [0x52b430], 0
mov eax, 0x20119
cmovne esi, eax
lea eax, [ebp - 0x814]
push eax
push esi
push 0
push 0x4fb868
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415bbe
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x814]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x415bbe
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ba0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040e0f0
mov eax, edi
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.0042788a
mov esp, ebp
pop ebp
ret
Function at 0x416130
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e87d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x527354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41617a
test al, 0x10
je 0x41617a
push esi
mov edi, 1
call fcn.0041ae20
add esp, 4
jmp 0x416181
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4161aa
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4161aa
push esi
test edi, edi
jne 0x4161a2
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4161aa
call fcn.0041ae20
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41622b
push esi
lea ecx, [ebp - 0x10]
call fcn.00408240
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
cmp dword [esi + 8], edi
je 0x4161ea
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00406000
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [esi + 4], 4
jmp 0x4161f6
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push edi
call fcn.00414af0
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416218
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4181b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8a80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x527354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00406320
mov ecx, eax
test ecx, ecx
je 0x418291
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push str.nProgress_d_n
push eax
mov dword [ebp - 4], 0
call fcn.00408820
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 0x64
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov eax, 0x63
mov dword [ebp - 0x1c], 0x4182b0
cmovl eax, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call fcn.00419670
add esp, 4
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov dword [ebp - 0x1c], 0
add esi, 0xfffffff0
mov dword [ebp - 0x18], 0
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41827d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.00404020
int3
Function at 0x4187a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004278a0
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x804]
push dword [0x527254]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1004]
push eax
call fcn.0041b3b0
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004717b0
add esp, 0x10
lea eax, [ebp - 0x1804]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x1804]
push dword [0x527254]
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x2004]
push eax
call fcn.0041b3b0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
Function at 0x419d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x419deb
test ecx, ecx
je 0x419deb
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x419deb
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x419deb
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x419dd6
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
call fcn.0049dd2a
add esp, 0xc
test eax, eax
je 0x419dfe
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x419d80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x4c0]
call fcn.0041a7f0
xor ecx, ecx
test edi, edi
je 0x419e1c
cmp edi, 0x7fffffff
jbe 0x419e21
mov ecx, 0x80070057
test ecx, ecx
js 0x419e57
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x419e3f
cmp word [eax], 0
je 0x419e3f
add eax, 2
sub esi, 1
jne 0x419e31
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x419e59
xor esi, esi
test ecx, ecx
js 0x419eaa
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x419e9d
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x419e9d
movzx eax, word [edi + ecx]
test ax, ax
je 0x419e9d
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x419e84
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042788a
mov esp, ebp
pop ebp
ret
Function at 0x419ec0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x419f38
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x4fb9b4
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret

Function at 0x41a000
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004278a0
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x41a13a
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x41a13a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41a13a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x41a10f
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004717b0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00472564
add esp, 0x14
test eax, eax
je 0x41a0d4
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x41a0d4
mov ecx, 1
jmp 0x41a0d6
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.0041a7f0
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41a0ef
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00419d10
add esp, 0xc
mov edi, eax
jmp 0x41a0f5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042788a
mov esp, ebp
pop ebp
ret
Function at 0x41a470
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5178b0
push 0x472a40
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.004278a0
mov eax, dword [0x527354]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x41a62e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a4c6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x41a62e
mov dword [ebp - 4], 0
call fcn.00419ec0
mov dword [ebp - 4], 0xfffffffe
jmp 0x41a50c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.004717b0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.004717b0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x41a62e
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0049dce7
lea eax, [ebp - 0x224]
push eax
call fcn.0049a2a2
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x41a62e
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.0041a000
add esp, 0xc
test eax, eax
je 0x41a621
lea eax, [ebp - 0xa24]
push eax
call fcn.0049a2a2
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a5f6
test dx, dx
je 0x41a5f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a5f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a5d0
xor eax, eax
jmp 0x41a5fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41a621
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41a621
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x41a594
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret 4

Function at 0x41a900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x41a91c
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
Function at 0x41ae40
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41b053
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b053
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae73
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x41b053
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.004717b0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004717b0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push str..
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41aef4
test al, 1
je 0x41aef4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x41b039
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41b02d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x41afa8
cmp word [ebp - 0x638], 0x2e
jne 0x41af67
mov ax, word [ebp - 0x636]
test ax, ax
je 0x41b012
cmp ax, 0x2e
jne 0x41af67
cmp word [ebp - 0x634], 0
je 0x41b012
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0041ae40
add esp, 4
jmp 0x41b010
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41afff
test al, 1
je 0x41afff
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41af30
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0042788a
mov esp, ebp
pop ebp
ret
Function at 0x41b070
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b0c8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b0c8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41b0a8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b0c8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b0c3
test al, 0x10
je 0x41b0c3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41b0c8
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x41b3b0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b3f8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b3f8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41b3e8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b3f8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret