joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4170d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565f9b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x18]
push str.ServiceStartFromCmdLine
push eax
mov ebx, ecx
call fcn.00401190
add esp, 0xc
push ebx
push str.lpszService___s
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x1098], 0
call fcn.00401410
push 0x400
lea edx, [esp + 0x88]
push 0
push edx
call fcn.00541d20
add esp, 0x1c
push 0x400
lea eax, [esp + 0x478]
push 0
push eax
call fcn.00541d20
add esp, 0xc
push 0x200
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.cmd.exe
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x47c]
push 0x594b70
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00541d20
add esp, 0x1c
push ebx
push str._C_net_start___s___Y
lea ecx, [esp + 0x87c]
xor eax, eax
push 0x400
push ecx
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], ax
mov dword [esp + 0x68], 1
call fcn.0053ca82
add esp, 0x10
xor ecx, ecx
call fcn.004177b0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x498]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x41725a
mov ecx, 1
call fcn.004177b0
mov esi, eax
mov eax, dword [esp + 0x1c]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
push esi
push str.return___08x
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x1088], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x417660
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5c0490]
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
xor edi, edi
push edi
lea eax, [ebp - 0x40]
push str.GetServiceStartAndStopStatus
push eax
mov esi, ecx
call fcn.00401190
add esp, 0xc
push esi
push str.lpszService___s
lea ecx, [ebp - 0x40]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.00401410
add esp, 0x10
call fcn.0044b52d
mov ecx, dword [eax + 4]
call fcn.0044b937
push 0xf003f
push edi
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x417755
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x41773b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ebx, [ebx]
lea edx, [ebp - 0x2c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x417729
push 0x64
call ebx
inc esi
cmp esi, 0x96
jb 0x417700
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x38]
jmp 0x41774b
mov eax, dword [ebp - 0x28]
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x38]
jmp 0x41774b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x41774b
mov dword [ebp - 0x30], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x30]
push edi
push str.return___08x
lea ecx, [ebp - 0x40]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 0
call fcn.0040dcb0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
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 - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x418950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563788
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push str.Tool_ShoutCutCreateFolder
push eax
call fcn.00401190
add esp, 0xc
push 0x17
push str.nFolder___d
lea ecx, [ebp - 0x1c]
push 1
push ecx
mov dword [ebp - 4], ebx
call fcn.00401410
add esp, 0x10
push 0x208
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
cmp esi, ebx
jne 0x4189f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.return___s
lea edx, [ebp - 0x1c]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x17
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebp - 0x10]
push esi
push ecx
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x418a1a
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp edi, ebx
jne 0x418a55
cmp dword [ebp - 0x10], ebx
je 0x418a55
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, ebx
jl 0x418a55
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x418a55
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], ebx
push esi
push str.return___s
lea eax, [ebp - 0x1c]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, esi
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 0x419080
Capabilities:
Access peb ldr_data
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x563368
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [esp + 0x28]
push str.CheckConIme
push eax
call fcn.00401190
add esp, 0xc
push edi
push str.nMode___d
lea ecx, [esp + 0x2c]
push 1
push ecx
mov dword [esp + 0x48], esi
call fcn.00401410
add esp, 0x10
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], esi
call fcn.0044b52d
mov ebx, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push esi
push str.Console
push SysReAllocString
mov dword [ebx + 0x868], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4191cb
mov eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push str.LoadConIme
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x4191ba
mov dword [esp + 0x18], 4
cmp edi, esi
je 0x419177
cmp dword [esp + 0xc], esi
je 0x41917f
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], 1
jmp 0x41917f
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push str.LoadConIme
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x4191ba
cmp dword [esp + 0x20], esi
je 0x4191be
mov dword [ebx + 0x868], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4191cf
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4191cf
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x14]
push esi
push str.return___08x
lea ecx, [esp + 0x2c]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a280
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56370b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5c0490]
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
xor edi, edi
push edi
lea eax, [ebp - 0x224]
push str.Tool_DIASDeleteService
push eax
call fcn.00401190
add esp, 0xc
push 0x44
lea ecx, [ebp - 0x288]
push edi
push ecx
mov dword [ebp - 4], edi
call fcn.00541d20
add esp, 0xc
xor eax, eax
push 0x208
lea edx, [ebp - 0x218]
push edi
push edx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
call fcn.00541d20
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push edi
push str.SOFTWARECanonDIASSETUP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a38a
lea edx, [ebp - 0x22c]
push edx
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
push ecx
push edi
push str.Path
mov esi, 1
push edx
mov dword [ebp - 0x22c], 0x208
mov dword [ebp - 0x228], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41a3ba
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.return___08x
lea ecx, [ebp - 0x224]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x41a4a1
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
xor eax, eax
push ecx
mov dword [ebp - 0x288], 0x44
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x258], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x41a40c
push 0x5958c8
lea edx, [ebp - 0x218]
push edx
call esi
push str.CnxDIAS.EXE
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x288]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push str.__remove
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x238]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x23c]
push ecx
mov edi, eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x41a473
lea edx, [ebp - 0x240]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
push edi
push str.return___08x
lea eax, [ebp - 0x224]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
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 - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41a4c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5636cb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [ebp - 0x228]
push str.Tool_DeleteRegOfPortSetUserID
push eax
call fcn.00401190
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], esi
push esi
push ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
call fcn.00541d20
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x2001f
push esi
push str.SOFTWARECanonPortSetPortSetUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x41a5aa
mov eax, dword [ebp - 0x21c]
push eax
lea ebx, [esi + 1]
call fcn.0041a600
mov eax, dword [ebp - 0x21c]
add esp, 4
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
push esi
push eax
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
je 0x41a59b
push str.SOFTWARECanonPortSetPortSetUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, ebx
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a5af
mov esi, 1
push esi
push str.return___08x
lea edx, [ebp - 0x228]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41a600
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56368b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
lea ecx, [esp + 0x1c]
push str.Tool_DeleteRegValueOfPortSetUserID
push ecx
mov dword [esp + 0x1c], eax
call fcn.00401190
add esp, 0xc
push ebx
push str.bDeleteKey___d
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x250], edi
call fcn.00401410
add esp, 0x10
mov dword [esp + 0x14], edi
call fcn.0044b52d
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41a6e6
lea eax, [esp + 0x10]
push eax
push 0x2001f
push edi
push str.SOFTWARECanonPortSetPortSetUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x14], 1
test eax, eax
je 0x41a6e2
push edi
push str.return___08x
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x41a7a3
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
test ebx, ebx
je 0x41a712
mov ecx, dword [esi + 0xe8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a766
mov esi, dword [esi + 0xe8]
mov edx, dword [esp + 0x10]
push esi
push edx
jmp 0x41a75b
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push 1
push eax
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41a766
mov eax, dword [esi + 0xe8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a766
mov esi, dword [esi + 0xe8]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, 1
cmp dword [esp + 0x14], 0
je 0x41a778
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.return___08x
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.00401370
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41a8b0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x5c0490]
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
xor edi, edi
push edi
lea eax, [ebp - 0x634]
push str.Tool_DeleteRestoreFile
push eax
call fcn.00401190
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.0044b52d
mov ecx, dword [eax + 4]
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x62c], ecx
mov word [ebp - 0x420], dx
call fcn.00541d20
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
call fcn.00541d20
add esp, 0xc
push 0x208
lea edx, [ebp - 0x628]
push edi
push edx
call fcn.00541d20
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0041abb0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Canon_
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a990
lea edi, [eax + 1]
lea eax, [ebp - 0x218]
push eax
call ebx
push str.InstRestore
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a9bb
lea edi, [eax + 1]
lea eax, [ebp - 0x218]
push eax
call ebx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x62c]
mov eax, dword [eax + 0xe8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.color_
lea ecx, [ebp - 0x420]
push ecx
call esi
test edi, edi
jne 0x41aa88
lea edx, [ebp - 0x218]
push edx
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41aa4e
lea ecx, [ebp - 0x218]
push ecx
call fcn.0041ac50
add esp, 4
lea edx, [ebp - 0x218]
push edx
call esi
lea ecx, [ebp - 0x628]
call fcn.0041bb00
cmp eax, 1
jne 0x41aa7a
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x41aa7a
lea ecx, [ebp - 0x420]
push ecx
call fcn.0041ac50
add esp, 4
lea edx, [ebp - 0x628]
push edx
call esi
mov edi, 1
push edi
push str.return___08x
lea eax, [ebp - 0x634]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
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 - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41aad0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5631d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x1c]
push str.Tool_GetSpecialFolder
push eax
call fcn.00401190
add esp, 0xc
push 0x26
push str.nCsidl___d
lea ecx, [ebp - 0x1c]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.00401410
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
xor esi, esi
push 0x26
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x41ab77
mov eax, dword [ebp - 0x10]
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x41ab77
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
push ebx
push str.lpPath___s__return___08x
lea eax, [ebp - 0x1c]
push 2
push eax
call fcn.00401410
add esp, 0x14
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ac50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56364b
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5c0490]
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 edi, dword [ebp + 8]
xor esi, esi
push esi
lea eax, [ebp - 0x888]
push str.Tool_DeleteFileInFolder
push eax
call fcn.00401190
add esp, 0xc
push edi
push str.lpszDirectory___s
lea ecx, [ebp - 0x888]
push 1
push ecx
mov dword [ebp - 4], esi
call fcn.00401410
push 0x208
lea edx, [ebp - 0x21c]
push esi
push edx
call fcn.00541d20
add esp, 0x1c
push 0x208
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.00541d20
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x424]
push esi
push ecx
call fcn.00541d20
add esp, 0xc
push 0x250
lea edx, [ebp - 0x87c]
push esi
push edx
call fcn.00541d20
add esp, 0xc
cmp edi, esi
je 0x41ae4b
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x62c]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x87c]
push ecx
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x880], eax
cmp eax, 0xffffffff
je 0x41ae4b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x595f80
lea eax, [ebp - 0x850]
push eax
call ebx
test eax, eax
je 0x41ae16
push 0x597e38
lea ecx, [ebp - 0x850]
push ecx
call ebx
test eax, eax
je 0x41ae16
test byte [ebp - 0x87c], 0x10
jne 0x41ade1
lea edx, [ebp - 0x850]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x594b70
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.0053caa0
add esp, 0x18
lea edx, [ebp - 0x424]
push edx
call esi
test byte [ebp - 0x87c], 0x10
je 0x41ae16
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x594b70
push 0xffffffffffffffff
lea edx, [ebp - 0x424]
push 0x104
push edx
call fcn.0053caa0
lea eax, [ebp - 0x424]
push eax
call fcn.0041ac50
add esp, 0x1c
mov edx, dword [ebp - 0x880]
lea ecx, [ebp - 0x87c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ad71
mov eax, dword [ebp - 0x880]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
push str.return___08x
lea ecx, [ebp - 0x888]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x888]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
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 - 0x14]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret