joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414fb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
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
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x434]
push str.DeleteRegPCL
push eax
mov dword [ebp - 0x42c], esi
call fcn.0040ac70
add esp, 0xc
push esi
push ebx
push str.hKeyPrinter___08x__lpszPrinter___s
lea ecx, [ebp - 0x434]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
mov eax, dword [ebp - 0x42c]
add esp, 0x14
lea edx, [ebp - 0x424]
push edx
push 0xf003f
xor esi, esi
push esi
push eax
push ebx
lea edi, [esi + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415113
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ecx]
push 0x410
lea ecx, [ebp - 0x420]
push 0
push ecx
mov dword [ebp - 0x428], 0x208
call fcn.005373f0
add esp, 0xc
lea edx, [ebp - 0x43c]
push edx
mov edx, dword [ebp - 0x424]
push 0
push 0
push 0
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x420]
push ecx
push esi
push edx
call ebx
inc esi
test eax, eax
je 0x4150a5
cmp eax, 0x103
je 0x4150ff
xor edi, edi
jmp 0x4150e8
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
push ecx
call fcn.00414fb0
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x415104
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x420]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4150e6
cmp eax, 2
je 0x4150e6
xor edi, edi
mov eax, 0x103
xor esi, esi
test eax, eax
je 0x415050
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41511a
mov edi, 1
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41511a
cmp eax, 2
je 0x41511a
xor edi, edi
push edi
push str.return___08x
lea edx, [ebp - 0x434]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x434]
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 0x415170
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x42c]
push str.CheckRegPCL
push eax
call fcn.0040ac70
add esp, 0xc
push edi
push esi
push str.hKeyPrinter___08x__lpszPrinter___s
lea ecx, [ebp - 0x42c]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
add esp, 0x14
lea edx, [ebp - 0x424]
push edx
push 0xf003f
push 0
push edi
push esi
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415256
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x430], 0x208
call fcn.005373f0
add esp, 0xc
lea ecx, [ebp - 0x438]
push ecx
mov ecx, dword [ebp - 0x424]
push 0
push 0
push 0
lea edx, [ebp - 0x430]
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 0x415247
cmp eax, 0x103
sete bl
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41525d
cmp eax, 2
je 0x41525d
xor ebx, ebx
push ebx
push str.return___08x
lea eax, [ebp - 0x42c]
push 2
push eax
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x416020
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d98b
mov eax, dword fs:[0]
push eax
sub esp, 0x624
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 - 0x630]
push str.DeleteLanguageMonitor
push eax
mov edi, ecx
mov esi, edx
call fcn.0040ac70
add esp, 0xc
push 0
push esi
push edi
push str.lpszFile___s__lpszMon___s__bDebug___d
lea ecx, [ebp - 0x630]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
add esp, 0x18
call fcn.0040bea0
cmp eax, 0xa
jne 0x4160a2
call fcn.0040e2f0
mov ecx, str.SPOOLER
call fcn.0040e4e0
push esi
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x4160e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push str.return___08x
lea edx, [ebp - 0x630]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x630]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x41627a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005373f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
push edi
je 0x41613e
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea ecx, [ebp - 0x628]
push ecx
jmp 0x416151
lea edx, [ebp - 0x218]
push edx
push 0x58b914
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x628]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41623d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41623d
cmp eax, 3
je 0x41623d
push 0x208
lea edx, [ebp - 0x420]
push 0
push edx
call fcn.005373f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.WININIT.INI
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.0053659f
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x420]
push eax
call edi
cmp eax, 0xffffffff
je 0x41623d
push eax
call ebx
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x628]
push edx
push str.NULL
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x41623d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
push esi
push str.return___08x
lea ecx, [ebp - 0x630]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x630]
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 - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x4162a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov eax, dword [0x5b4450]
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.0040ac70
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.0040aed0
add esp, 0x18
push esi
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x41632c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea edx, [esp + 0x18]
push 0
push edx
call fcn.005373f0
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 0x416378
lea edx, [esp + 0x18]
push edx
push str._s_s
lea eax, [esp + 0x228]
push eax
jmp 0x41638a
lea ecx, [esp + 0x18]
push ecx
push 0x58b914
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.0040aed0
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x438], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x4172a0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559d4b
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
push 0
lea eax, [ebp - 0x638]
push str.DeleteRegICMProfile
push eax
mov esi, ecx
call fcn.0040ac70
add esp, 0xc
push esi
push str.lpszFileName___s
lea ecx, [ebp - 0x638]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.005373f0
add esp, 0x1c
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.005373f0
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x420]
push 0
push ecx
call fcn.005373f0
add esp, 0xc
test esi, esi
jne 0x417377
push esi
push str.return___08x
lea edx, [ebp - 0x638]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x638]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x4174c8
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00535afa
add esp, 0xc
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.00535afa
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.00534819
add esp, 8
test eax, eax
je 0x4173db
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_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417439
mov edx, dword [ebp - 0x62c]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push edx
call edi
test eax, eax
jne 0x417439
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x218]
push eax
push ecx
call ebx
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 0x417481
mov edx, dword [ebp - 0x630]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x218]
push ecx
push edx
call edi
test eax, eax
jne 0x417481
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x218]
push eax
push ecx
call ebx
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.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x638]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x41dec0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559c28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push str.return___08x
lea edx, [ebp - 0x14]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4228f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ce90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
push str.SOFTWARECANON_
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov ebx, 1
call fcn.00401210
xor esi, esi
mov byte [esp + 0x28], bl
call fcn.004242a0
test eax, eax
jne 0x42295c
xor ebx, ebx
mov ecx, SysReAllocString
call fcn.00422ca0
test eax, eax
jne 0x42296c
xor ebx, ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00422ca0
test eax, eax
jne 0x42297c
xor ebx, ebx
call fcn.00422f60
test eax, eax
jne 0x422987
xor ebx, ebx
mov edi, dword [esp + 0x10]
mov esi, SysReAllocString
call fcn.00415170
test eax, eax
je 0x4229a5
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.0040aed0
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 0x4229df
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.0040ae50
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 0x4240b0
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5b4450]
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.0040ac70
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.0040aed0
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.005373f0
add esp, 0xc
push 0x204
lea edx, [ebp - 0x420]
push 0
push edx
mov dword [ebp - 0x424], 0
call fcn.005373f0
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 0x424249
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 0x424234
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 0x424234
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x424234
mov eax, dword [ebp - 0x42c]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424259
mov eax, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424259
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.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x440]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x4242a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559b20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x5b4450]
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.0040ac70
add esp, 0xc
push esi
push str.lpszPrinter___s
lea ecx, [ebp - 0x18]
push 1
push ecx
mov dword [ebp - 4], ebx
call fcn.0040aed0
add esp, 0x10
call fcn.00442c4d
mov edi, dword [eax + 4]
push str.SOFTWARECANON_
lea ecx, [ebp - 0x10]
call fcn.00401210
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x620]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004058b0
test esi, esi
je 0x424338
mov edx, dword [ebp - 0x10]
push esi
push edx
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00405ba0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x424350
cmp eax, 2
jne 0x424355
mov ebx, 1
push ebx
push str.return___08x
lea edx, [ebp - 0x18]
push 2
push edx
call fcn.0040aed0
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 0x42438c
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.0040ae50
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
Function at 0x4245d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x648]
push str.Tool_GetDriverColorProfilesReg
push ecx
mov esi, edx
mov dword [ebp - 0x64c], eax
call fcn.0040ac70
add esp, 0xc
push edi
push esi
push str.lpcDriverName___s__cVer___08x
lea edx, [ebp - 0x648]
push 1
push edx
mov dword [ebp - 4], ebx
call fcn.0040aed0
add esp, 0x14
cmp esi, ebx
jne 0x424658
push ebx
push str.return___08x
push 2
lea eax, [ebp - 0x648]
push eax
jmp 0x4247eb
push 0x616
lea edx, [ebp - 0x632]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x634], cx
call fcn.005373f0
add esp, 0xc
mov eax, edi
sub eax, 3
push esi
je 0x4246b3
sub eax, 2
je 0x42469b
push str.SystemCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_3
push str._s_s
push 0x30c
lea eax, [ebp - 0x634]
push eax
jmp 0x4246c9
push str.SystemCurrentControlSetControlPrintEnvironmentsWindows_x64DriversVersion_3
push str._s_s
push 0x30c
lea ecx, [ebp - 0x634]
push ecx
jmp 0x4246c9
push str.SystemCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_3
push str._s_s
push 0x30c
lea edx, [ebp - 0x634]
push edx
call fcn.00535c9d
add esp, 0x14
lea eax, [ebp - 0x638]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x634]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x640], 7
mov dword [ebp - 0x63c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4247dc
mov ecx, dword [ebp - 0x638]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x63c]
push edx
push ebx
lea eax, [ebp - 0x640]
push eax
push ebx
push str.ColorProfiles
push ecx
call edi
cmp eax, ebx
jne 0x4247c9
cmp dword [ebp - 0x63c], ebx
jbe 0x4247c9
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x63c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004401c2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4247aa
mov edx, dword [ebp - 0x638]
lea eax, [ebp - 0x63c]
push eax
push esi
lea ecx, [ebp - 0x640]
push ecx
push ebx
push str.ColorProfiles
push edx
call edi
test eax, eax
jne 0x4247a1
mov eax, dword [ebp - 0x64c]
push eax
push esi
call fcn.00424830
add esp, 8
push esi
call fcn.004401b7
add esp, 4
mov dword [ebp - 4], ebx
jmp 0x4247c9
mov ecx, dword [ebp - 0x638]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x638], ebx
push ebx
push str.return___08x
push 2
lea edx, [ebp - 0x648]
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x648]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
Function at 0x42c270
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
test esi, esi
je 0x42c35b
push esi
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x42c2c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42c2e6
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 1
jne 0x42c35b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.005373f0
add esp, 0xc
push str.Global_
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [edi]
mov edx, dword [edx + 0x110]
push 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x42c35d
pop edi
pop esi
or eax, 0x80000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005337cb
mov esp, ebp
pop ebp
ret 8

Function at 0x42c370
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.h_PrinterDriverUnInstaller_PrevInstance
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x42c3a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42c399
cmp eax, 5
jne 0x42c3a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 2
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x42c3b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
xor edi, edi
mov word [ebp - 0x20c], ax
call fcn.005373f0
add esp, 0xc
push str.Global_
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.gh_Canon_OIP_PrinterDriverCommonMutex
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x42c437
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42c430
cmp eax, 5
jne 0x42c44c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005337cb
mov esp, ebp
pop ebp
ret