joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410480
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 0x55a0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
push edi
push str.nMode___d
lea ecx, [esp + 0x2c]
push 1
push ecx
mov dword [esp + 0x48], esi
call fcn.0040aed0
add esp, 0x10
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
call fcn.00442c4d
mov ebx, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push esi
push str.Console
push SysReAllocString
mov dword [ebx + 0x86c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4105bf
mov eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push str.LoadConIme
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x4105ae
mov dword [esp + 0x18], 4
cmp edi, esi
je 0x41056b
cmp dword [esp + 0xc], esi
je 0x410573
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 1
jmp 0x410573
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x14]
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 0x4105ae
cmp dword [esp + 0x1c], esi
je 0x4105b2
mov dword [ebx + 0x86c], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4105c3
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4105c3
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x10]
push esi
push str.return___08x
lea ecx, [esp + 0x2c]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ae50
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 0x411620
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5b4450]
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
push 0
lea eax, [ebp - 0x224]
push str.Tool_DIASDeleteService
push eax
call fcn.0040ac70
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x20019
push 0
push str.SOFTWARECanonDIASSETUP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4116dc
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x228]
push edx
push 0
push str.Path
mov esi, 1
push eax
mov dword [ebp - 0x22c], 0x208
mov dword [ebp - 0x228], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41170d
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.return___08x
lea edx, [ebp - 0x224]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x411827
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44
lea ecx, [ebp - 0x288]
push 0
push ecx
call fcn.005373f0
xor eax, eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
add esp, 0xc
lea eax, [ebp - 0x218]
xor edx, edx
push eax
mov dword [ebp - 0x288], 0x44
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x258], dx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x41178c
push 0x58abe4
lea ecx, [ebp - 0x218]
push ecx
call esi
push str.CnxDIAS.EXE
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x288]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.__remove
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x23c]
mov edi, eax
mov eax, dword [ebp - 0x238]
push eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4117f9
lea ecx, [ebp - 0x240]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
push edi
push str.return___08x
lea edx, [ebp - 0x224]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x411850
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a07b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
mov dword [ebp - 4], esi
call fcn.00442c4d
lea ecx, [ebp - 0x21c]
push ecx
push 0x2001f
push esi
push str.SOFTWARECanonPortSetPortSetUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x41191e
mov edx, dword [ebp - 0x21c]
push edx
lea ebx, [esi + 1]
call fcn.00411970
mov edx, dword [ebp - 0x21c]
add esp, 4
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
push esi
push edx
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
je 0x41190f
push str.SOFTWARECanonPortSetPortSetUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, ebx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411923
mov esi, 1
push esi
push str.return___08x
lea ecx, [ebp - 0x228]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x411970
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55a03b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
push edi
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
push ebx
push str.bDeleteKey___d
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x250], edi
call fcn.0040aed0
add esp, 0x10
mov dword [esp + 0x14], edi
call fcn.00442c4d
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x411a56
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 0x411a52
push edi
push str.return___08x
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x411b13
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
test ebx, ebx
je 0x411a82
mov ecx, dword [esi + 0xe8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411ad6
mov esi, dword [esi + 0xe8]
mov edx, dword [esp + 0x10]
push esi
push edx
jmp 0x411acb
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 0x411ad6
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 0x411ad6
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 0x411ae8
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.0040aed0
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x411c20
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a91b
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.00442c4d
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.005373f0
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
call fcn.005373f0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x628]
push edi
push edx
call fcn.005373f0
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00411f20
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 0x411d00
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 0x411d2b
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 0x411df8
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 0x411dbe
lea ecx, [ebp - 0x218]
push ecx
call fcn.00411fc0
add esp, 4
lea edx, [ebp - 0x218]
push edx
call esi
lea ecx, [ebp - 0x628]
call fcn.00412e30
cmp eax, 1
jne 0x411dea
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x411dea
lea ecx, [ebp - 0x420]
push ecx
call fcn.00411fc0
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.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x411e40
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a168
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
push 0x26
push str.nCsidl___d
lea ecx, [ebp - 0x1c]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 0x26
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x411edd
mov eax, dword [ebp - 0x10]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x411edd
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 edi
push str.lpPath___s__return___08x
lea eax, [ebp - 0x1c]
push 2
push eax
call fcn.0040aed0
add esp, 0x14
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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 0x411fc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5b4450]
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 - 0x884]
push str.Tool_DeleteFileInFolder
push eax
call fcn.0040ac70
add esp, 0xc
push edi
push str.lpszDirectory___s
lea ecx, [ebp - 0x884]
push 1
push ecx
mov dword [ebp - 4], esi
call fcn.0040aed0
add esp, 0x10
cmp edi, esi
je 0x412186
push 0x208
lea edx, [ebp - 0x62c]
push esi
push edx
call fcn.005373f0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.005373f0
add esp, 0xc
push edi
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x62c]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x87c]
push edx
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412186
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x58d068
lea ecx, [ebp - 0x850]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41215d
push 0x58d06c
lea edx, [ebp - 0x850]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41215d
test byte [ebp - 0x87c], 0x10
jne 0x412128
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x58b914
push 0xffffffffffffffff
lea edx, [ebp - 0x424]
push 0x104
push edx
call fcn.00535cbb
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
call esi
test byte [ebp - 0x87c], 0x10
je 0x41215d
lea ecx, [ebp - 0x850]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0x58b914
push 0xffffffffffffffff
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.00535cbb
lea ecx, [ebp - 0x424]
push ecx
call fcn.00411fc0
add esp, 0x1c
lea edx, [ebp - 0x87c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4120b0
push ebx
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 eax, [ebp - 0x884]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x884]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x412b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [ebp - 0x838]
push str.Tool_CheckTempUninstaller
push eax
call fcn.0040ac70
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 4], edi
push edx
mov word [ebp - 0x218], cx
call fcn.005373f0
push 0x206
lea ecx, [ebp - 0x82e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x830], ax
call fcn.005373f0
push 0x206
lea eax, [ebp - 0x626]
xor edx, edx
push edi
push eax
mov word [ebp - 0x628], dx
call fcn.005373f0
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x420], cx
call fcn.005373f0
add esp, 0x3c
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
push edi
push edi
push 0x104
lea ecx, [ebp - 0x628]
push ecx
push 0x104
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00535da8
push edi
push edi
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00536174
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
add esp, 0x3c
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x420]
push eax
call esi
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x412c59
mov edi, 1
push edi
push str.return___08x
lea eax, [ebp - 0x838]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x838]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x412ca0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55994b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x428]
push str.Tool_DeleteTempUninstaller
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.00442c4d
mov esi, dword [eax + 4]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov edi, 1
mov word [ebp - 0x420], cx
call fcn.005373f0
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.005373f0
add esp, 0xc
cmp dword [esi + 0x5e0], 0
je 0x412de0
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.UNINSTAL.tmp
lea eax, [ebp - 0x218]
push eax
mov ecx, eax
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412de0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call esi
test eax, eax
je 0x412dde
push 4
push 0
lea edx, [ebp - 0x218]
push edx
call esi
jmp 0x412de0
xor edi, edi
push edi
push str.return___08x
lea eax, [ebp - 0x428]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x412e30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x5b4450]
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 - 0x678]
push str.Tool_GetFileCountInFolder
push eax
mov esi, ecx
call fcn.0040ac70
add esp, 0xc
push esi
push str.lpszDirectory___s
lea ecx, [ebp - 0x678]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.0040aed0
add esp, 0x10
cmp esi, edi
jne 0x412e9d
or edi, 0xffffffff
jmp 0x412f5e
push 0x208
lea edx, [ebp - 0x420]
push edi
push edx
call fcn.005373f0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.005373f0
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push str._s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x670]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412f5e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x58d068
lea ecx, [ebp - 0x644]
push ecx
call ebx
test eax, eax
je 0x412f45
push 0x58d06c
lea edx, [ebp - 0x644]
push edx
call ebx
test eax, eax
je 0x412f45
inc edi
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412f20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push str.return___08x
lea ecx, [ebp - 0x678]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x678]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x413bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x91c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x924]
push str.Tool_GetPrinterDriverDir
push eax
call fcn.0040ac70
add esp, 0xc
push esi
push str.pDir___s
lea ecx, [ebp - 0x924]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
push 0x400
lea edx, [ebp - 0x518]
push 0
push edx
call fcn.005373f0
add esp, 0x1c
push 0x400
lea eax, [ebp - 0x918]
push 0
push eax
call fcn.005373f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push 0
push ecx
call fcn.005373f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push 0x58a8c8
lea edx, [ebp - 0x518]
push edx
call edi
push 0x58a8c8
lea eax, [ebp - 0x918]
push eax
call edi
lea ecx, [ebp - 0x91c]
push ecx
push 0x104
lea edx, [ebp - 0x118]
push edx
push 1
lea eax, [ebp - 0x918]
push eax
lea ecx, [ebp - 0x518]
push ecx
mov dword [ebp - 0x91c], 0
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
cmp eax, 1
jne 0x413cd5
lea edx, [ebp - 0x118]
push edx
push esi
call edi
jmp 0x413ce1
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x58a8c8
lea eax, [ebp - 0x924]
push 2
push eax
call fcn.0040aed0
add esp, 0xc
lea ecx, [ebp - 0x924]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret