joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56360b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x5c0490]
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.00401190
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.00541d20
push 0x206
lea ecx, [ebp - 0x82e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x830], ax
call fcn.00541d20
push 0x206
lea eax, [ebp - 0x626]
xor edx, edx
push edi
push eax
mov word [ebp - 0x628], dx
call fcn.00541d20
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x420], cx
call fcn.00541d20
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.0053e03b
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.0053f63d
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 0x41b929
mov edi, 1
push edi
push str.return___08x
lea eax, [ebp - 0x838]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x838]
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41b970
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 0x5635cb
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5c0490]
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.00401190
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.0044b52d
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.00541d20
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00541d20
add esp, 0xc
cmp dword [esi + 0x5dc], 0
je 0x41bab0
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 0x41bab0
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 0x41baae
push 4
push 0
lea edx, [ebp - 0x218]
push edx
call esi
jmp 0x41bab0
xor edi, edi
push edi
push str.return___08x
lea eax, [ebp - 0x428]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x428]
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41bb00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56358b
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
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 - 0x678]
push str.Tool_GetFileCountInFolder
push eax
mov esi, ecx
call fcn.00401190
add esp, 0xc
push esi
push str.lpszDirectory___s
lea ecx, [ebp - 0x678]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.00401410
push 0x208
lea edx, [ebp - 0x218]
push edi
push edx
call fcn.00541d20
add esp, 0x1c
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00541d20
add esp, 0xc
push 0x250
lea ecx, [ebp - 0x670]
push edi
push ecx
call fcn.00541d20
add esp, 0xc
cmp esi, edi
jne 0x41bba9
or edi, 0xffffffff
jmp 0x41bc3f
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push str._s.
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41bc3f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x595f80
lea edx, [ebp - 0x644]
push edx
call esi
test eax, eax
je 0x41bc26
push 0x597e38
lea eax, [ebp - 0x644]
push eax
call esi
test eax, eax
je 0x41bc26
inc edi
lea ecx, [ebp - 0x670]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41bc01
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push str.return___08x
lea edx, [ebp - 0x678]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x678]
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 0x41c670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56348b
mov eax, dword fs:[0]
push eax
sub esp, 0x91c
mov eax, dword [0x5c0490]
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.00401190
add esp, 0xc
push esi
push str.pDir___s
lea ecx, [ebp - 0x924]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.00401410
push 0x400
lea edx, [ebp - 0x518]
push 0
push edx
call fcn.00541d20
add esp, 0x1c
push 0x400
lea eax, [ebp - 0x918]
push 0
push eax
call fcn.00541d20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push 0
push ecx
call fcn.00541d20
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push 0x5988ec
lea edx, [ebp - 0x518]
push edx
call edi
push 0x5988ec
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 0x41c775
lea edx, [ebp - 0x118]
push edx
push esi
call edi
jmp 0x41c781
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5988ec
lea eax, [ebp - 0x924]
push 2
push eax
call fcn.00401410
add esp, 0xc
lea ecx, [ebp - 0x924]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41dd40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56341b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
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
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
lea eax, [ebp - 0x434]
push str.DeleteRegPCL
push eax
mov dword [ebp - 0x42c], edi
call fcn.00401190
add esp, 0xc
push edi
push ebx
push str.hKeyPrinter___08x__lpszPrinter___s
lea ecx, [ebp - 0x434]
push 1
push ecx
mov dword [ebp - 4], esi
call fcn.00401410
add esp, 0x14
push 0x410
lea edx, [ebp - 0x420]
push esi
push edx
mov dword [ebp - 0x424], esi
call fcn.00541d20
mov ecx, dword [ebp - 0x42c]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push esi
push ecx
push ebx
mov dword [ebp - 0x428], esi
lea edi, [esi + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ded3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x41de10
push 0x410
lea edx, [ebp - 0x420]
push 0
push edx
mov dword [ebp - 0x428], 0x208
call fcn.00541d20
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x424]
push 0
push 0
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x420]
push edx
push esi
push eax
call ebx
inc esi
test eax, eax
je 0x41de65
cmp eax, 0x103
je 0x41debf
xor edi, edi
jmp 0x41dea8
mov edx, dword [ebp - 0x424]
lea ecx, [ebp - 0x420]
push ecx
push edx
call fcn.0041dd40
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x41dec4
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41dea6
cmp eax, 2
je 0x41dea6
xor edi, edi
mov eax, 0x103
xor esi, esi
test eax, eax
je 0x41de10
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41deda
mov edi, 1
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41deda
cmp eax, 2
je 0x41deda
xor edi, edi
push edi
push str.return___08x
lea eax, [ebp - 0x434]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x434]
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 0x41df30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5633db
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x430]
push str.CheckRegPCL
push eax
call fcn.00401190
add esp, 0xc
push edi
push esi
push str.hKeyPrinter___08x__lpszPrinter___s
lea ecx, [ebp - 0x430]
push 1
push ecx
mov dword [ebp - 4], ebx
call fcn.00401410
add esp, 0x14
lea edx, [ebp - 0x424]
push edx
xor eax, eax
push 0xf003f
push eax
push edi
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], ebx
push esi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e02a
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x428], 0x208
call fcn.00541d20
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x424]
push 0
push 0
push 0
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ebx, ebx
test eax, eax
je 0x41e01b
cmp eax, 0x103
sete bl
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e031
cmp eax, 2
je 0x41e031
xor ebx, ebx
push ebx
push str.return___08x
lea eax, [ebp - 0x430]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x41f0f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56339b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x10]
push str.DeleteOldVersionLanguageMonitor
push eax
mov esi, ecx
call fcn.00401190
add esp, 0xc
push 0
push esi
push edi
push str.lpszFile___s__lpszMon___s__bDebug___d
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x450], 0
call fcn.00401410
add esp, 0x18
push esi
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x41f17c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00541d20
add esp, 0xc
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x12], 0x5c
push edi
je 0x41f1c8
lea edx, [esp + 0x18]
push edx
push str._s_s
lea eax, [esp + 0x228]
push eax
jmp 0x41f1da
lea ecx, [esp + 0x18]
push ecx
push 0x594b70
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
push esi
push str.return___08x
lea ecx, [esp + 0x14]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x438], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x420110
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56332b
mov eax, dword fs:[0]
push eax
sub esp, 0x630
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
push 0
lea eax, [ebp - 0x638]
push str.DeleteRegICMProfile
push eax
mov esi, ecx
call fcn.00401190
add esp, 0xc
push esi
push str.lpszFileName___s
lea ecx, [ebp - 0x638]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.00401410
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x630], 0
call fcn.00541d20
add esp, 0x1c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00541d20
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x420]
push 0
push ecx
call fcn.00541d20
add esp, 0xc
test esi, esi
jne 0x4201fa
push esi
push str.return___08x
lea edx, [ebp - 0x638]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x638]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x42034d
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0053e407
add esp, 0xc
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.0053e407
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0053dda2
add esp, 8
test eax, eax
je 0x42025e
add eax, 2
push eax
lea ecx, [ebp - 0x218]
push ecx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x62c]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4202ba
mov edx, dword [ebp - 0x62c]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push edx
call ebx
test eax, eax
jne 0x4202ba
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [ebp - 0x630]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x420306
mov edx, dword [ebp - 0x630]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x218]
push ecx
push edx
call ebx
test eax, eax
jne 0x420306
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x62c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x630]
push eax
call esi
push 1
push str.return___08x
lea ecx, [ebp - 0x638]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x638]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, 1
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 0x4271c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563208
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x14]
push str.Tool_GetProcType64
push eax
call fcn.00401190
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push str.return___08x
lea edx, [ebp - 0x14]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4299f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5669d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x18]
push str.Tool_CleanupCAPModuleAndRegistry
push eax
call fcn.00401190
add esp, 0xc
push str.SOFTWARECANON_
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov ebx, 1
call fcn.00404f00
xor esi, esi
mov byte [esp + 0x28], bl
call fcn.0042b3a0
test eax, eax
jne 0x429a5c
xor ebx, ebx
mov ecx, SysReAllocString
call fcn.00429da0
test eax, eax
jne 0x429a6c
xor ebx, ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00429da0
test eax, eax
jne 0x429a7c
xor ebx, ebx
call fcn.0042a060
test eax, eax
jne 0x429a87
xor ebx, ebx
mov edi, dword [esp + 0x10]
mov esi, SysReAllocString
call fcn.0041df30
test eax, eax
je 0x429aa5
mov ecx, dword [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
push str.return___08x
lea edx, [esp + 0x1c]
push 2
push edx
call fcn.00401410
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401370
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b1b0
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56313b
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
mov esi, ecx
lea ecx, [ebp - 0x440]
push str.Tool_DeleteSMModule
push ecx
mov dword [ebp - 0x430], eax
call fcn.00401190
add esp, 0xc
mov edx, dword [ebp - 0x430]
push edx
push ebx
push edi
push esi
push str.pRegRoot___s__pSubKey___s__pValueName___s__pModuleName___s
lea eax, [ebp - 0x440]
push 1
push eax
mov dword [ebp - 4], 0
call fcn.00401410
add esp, 0x1c
xor eax, eax
mov ecx, 1
push 0x204
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x428], ecx
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x434], 0x104
mov dword [ebp - 0x21c], eax
call fcn.00541d20
add esp, 0xc
push 0x204
lea edx, [ebp - 0x420]
push 0
push edx
mov dword [ebp - 0x424], 0
call fcn.00541d20
add esp, 0xc
push esi
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea ecx, [ebp - 0x424]
push ecx
call esi
lea edx, [ebp - 0x42c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x424]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b349
lea ecx, [ebp - 0x434]
push ecx
mov ecx, dword [ebp - 0x42c]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x438]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b334
mov edx, dword [ebp - 0x430]
push edx
lea eax, [ebp - 0x21c]
push eax
call esi
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b334
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42b334
mov eax, dword [ebp - 0x42c]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42b359
mov eax, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42b359
mov dword [ebp - 0x428], 1
mov esi, dword [ebp - 0x428]
push esi
push str.return___08x
lea ecx, [ebp - 0x440]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x440]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x42b3a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564410
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
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 - 0x18]
push str.Tool_DeletePSWRegistry
push eax
call fcn.00401190
add esp, 0xc
push esi
push str.lpszPrinter___s
lea ecx, [ebp - 0x18]
push 1
push ecx
mov dword [ebp - 4], ebx
call fcn.00401410
add esp, 0x10
call fcn.0044b52d
mov edi, dword [eax + 4]
push str.SOFTWARECANON_
lea ecx, [ebp - 0x10]
call fcn.00404f00
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x61c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a930
test esi, esi
je 0x42b438
mov edx, dword [ebp - 0x10]
push esi
push edx
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.0040aa50
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x42b450
cmp eax, 2
jne 0x42b455
mov ebx, 1
push ebx
push str.return___08x
lea edx, [ebp - 0x18]
push 2
push edx
call fcn.00401410
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b48c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret