joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4170f0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588449
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x5eb770]
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
push str.Tool_DeleteRestoreFile
push edi
lea ecx, [ebp - 0x634]
call fcn.0044ca70
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.0046d2d8
mov eax, dword [eax + 4]
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
mov dword [ebp - 0x62c], eax
call fcn.0055ca80
add esp, 0xc
push 0x208
lea edx, [ebp - 0x420]
push edi
push edx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0055ca80
add esp, 0xc
test byte [0x60aea0], 1
jne 0x4171af
or dword [0x60aea0], 1
mov byte [ebp - 4], 1
call fcn.00458180
push 0x58b2e0
call fcn.005597b9
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00458920
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Canon_
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4171f2
lea edi, [eax + 1]
lea edx, [ebp - 0x218]
push edx
call ebx
push str.InstRestore
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41721d
lea edi, [eax + 1]
lea edx, [ebp - 0x218]
push edx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call ebx
mov edx, dword [ebp - 0x62c]
mov eax, dword [edx + 0xe0]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x628]
push edx
call ebx
push str.color_
lea eax, [ebp - 0x628]
push eax
call esi
test edi, edi
jne 0x4172ec
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [ebp - 0x218]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4172b2
lea eax, [ebp - 0x218]
push eax
call fcn.00417340
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
call esi
lea ecx, [ebp - 0x420]
call fcn.00417f40
cmp eax, 1
jne 0x4172de
lea edx, [ebp - 0x628]
push edx
call edi
test eax, eax
je 0x4172de
lea eax, [ebp - 0x628]
push eax
call fcn.00417340
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
call esi
mov edi, 1
push edi
push str.return___08x
lea edx, [ebp - 0x634]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x417340
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584c5b
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5eb770]
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
push str.Tool_DeleteFileInFolder
push esi
lea ecx, [ebp - 0x888]
call fcn.0044ca70
add esp, 0xc
push edi
push str.lpszDirectory___s
lea eax, [ebp - 0x888]
push 1
push eax
mov dword [ebp - 4], esi
call fcn.0044cd10
push 0x208
lea ecx, [ebp - 0x21c]
push esi
push ecx
call fcn.0055ca80
add esp, 0x1c
push 0x208
lea edx, [ebp - 0x62c]
push esi
push edx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.0055ca80
add esp, 0xc
push 0x250
lea ecx, [ebp - 0x87c]
push esi
push ecx
call fcn.0055ca80
add esp, 0xc
cmp edi, esi
je 0x41753b
push edi
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x62c]
push str._s.
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0x62c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x880], eax
cmp eax, 0xffffffff
je 0x41753b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5b7b84
lea edx, [ebp - 0x850]
push edx
call ebx
test eax, eax
je 0x417506
push 0x5b9ac8
lea eax, [ebp - 0x850]
push eax
call ebx
test eax, eax
je 0x417506
test byte [ebp - 0x87c], 0x10
jne 0x4174d1
lea ecx, [ebp - 0x850]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0x5b7940
push 0xffffffffffffffff
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.005578de
add esp, 0x18
lea ecx, [ebp - 0x424]
push ecx
call esi
test byte [ebp - 0x87c], 0x10
je 0x417506
lea edx, [ebp - 0x850]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x5b7940
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.005578de
lea edx, [ebp - 0x424]
push edx
call fcn.00417340
add esp, 0x1c
mov ecx, dword [ebp - 0x880]
lea eax, [ebp - 0x87c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417461
mov edx, dword [ebp - 0x880]
push edx
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 - 0x888]
push 2
push eax
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x888]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x417be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x82c], eax
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
xor edi, edi
push edi
push str.Tool_CheckTempUninstaller
push edi
lea ecx, [esp + 0x18]
call fcn.0044ca70
add esp, 0xc
push 0x206
lea ecx, [esp + 0x1a]
xor eax, eax
push edi
mov dword [esp + 0x850], edi
push ecx
mov word [esp + 0x20], ax
call fcn.0055ca80
add esp, 0xc
push 0x206
lea eax, [esp + 0x632]
xor edx, edx
push edi
push eax
mov word [esp + 0x638], dx
call fcn.0055ca80
add esp, 0xc
push 0x206
lea edx, [esp + 0x42a]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x430], cx
call fcn.0055ca80
add esp, 0xc
push 0x206
lea ecx, [esp + 0x222]
xor eax, eax
push edi
push ecx
mov word [esp + 0x228], ax
call fcn.0055ca80
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
push edi
push edi
push 0x104
lea eax, [esp + 0x438]
push eax
push 0x104
lea ecx, [esp + 0x648]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00557258
add esp, 0x24
push edi
push edi
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x638]
push ecx
lea edx, [esp + 0x24]
push 0x104
push edx
call fcn.00558c88
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x21c]
push edx
call esi
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417d5b
mov edi, 1
push edi
push str.return___08x
lea edx, [esp + 0x14]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x848], 0xffffffff
call fcn.0044cc70
mov eax, edi
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x417db0
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 0x584b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5eb770]
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
push str.Tool_DeleteTempUninstaller
push 0
lea ecx, [ebp - 0x428]
call fcn.0044ca70
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.0046d2d8
mov esi, dword [eax + 4]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov edi, 1
mov word [ebp - 0x420], ax
call fcn.0055ca80
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0055ca80
add esp, 0xc
cmp dword [esi + 0x5d0], 0
je 0x417ef1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.UNINSTAL.tmp
lea edx, [ebp - 0x218]
push edx
mov eax, edx
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417ef1
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x417eef
push 4
push 0
lea ecx, [ebp - 0x218]
push ecx
call esi
jmp 0x417ef1
xor edi, edi
push edi
push str.return___08x
lea edx, [ebp - 0x428]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x417f40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584afb
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x5eb770]
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
mov esi, ecx
push str.Tool_GetFileCountInFolder
push edi
lea ecx, [ebp - 0x678]
call fcn.0044ca70
add esp, 0xc
push esi
push str.lpszDirectory___s
lea eax, [ebp - 0x678]
push 1
push eax
mov dword [ebp - 4], edi
call fcn.0044cd10
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
call fcn.0055ca80
add esp, 0x1c
push 0x208
lea edx, [ebp - 0x420]
push edi
push edx
call fcn.0055ca80
add esp, 0xc
push 0x250
lea eax, [ebp - 0x670]
push edi
push eax
call fcn.0055ca80
add esp, 0xc
cmp esi, edi
jne 0x417fe9
or edi, 0xffffffff
jmp 0x41807f
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 ebx, eax
cmp ebx, 0xffffffff
je 0x41807f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x5b7b84
lea ecx, [ebp - 0x644]
push ecx
call esi
test eax, eax
je 0x418066
push 0x5b9ac8
lea edx, [ebp - 0x644]
push edx
call esi
test eax, eax
je 0x418066
inc edi
lea eax, [ebp - 0x670]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418041
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push str.return___08x
lea ecx, [ebp - 0x678]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x678]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x418940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x91c
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str.Tool_GetPrinterDriverDir
push 0
lea ecx, [ebp - 0x924]
call fcn.0044ca70
add esp, 0xc
push esi
push str.pDir___s
lea eax, [ebp - 0x924]
push 1
push eax
mov dword [ebp - 4], 0
call fcn.0044cd10
push 0x400
lea ecx, [ebp - 0x518]
push 0
push ecx
call fcn.0055ca80
add esp, 0x1c
push 0x400
lea edx, [ebp - 0x918]
push 0
push edx
call fcn.0055ca80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0055ca80
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push 0x5b69a4
lea ecx, [ebp - 0x518]
push ecx
call edi
push 0x5b69a4
lea edx, [ebp - 0x918]
push edx
call edi
lea eax, [ebp - 0x91c]
push eax
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 1
lea edx, [ebp - 0x918]
push edx
lea eax, [ebp - 0x518]
push eax
mov dword [ebp - 0x91c], 0
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
cmp eax, 1
jne 0x418a46
lea ecx, [ebp - 0x118]
push ecx
push esi
call edi
jmp 0x418a52
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5b69a4
lea edx, [ebp - 0x924]
push 2
push edx
call fcn.0044cd10
add esp, 0xc
lea ecx, [ebp - 0x924]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x41a0a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58498b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5eb770]
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
push str.DeleteRegPCL
push esi
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x42c], edi
call fcn.0044ca70
add esp, 0xc
push edi
push ebx
push str.hKeyPrinter___08x__lpszPrinter___s
lea eax, [ebp - 0x434]
push 1
push eax
mov dword [ebp - 4], esi
call fcn.0044cd10
add esp, 0x14
push 0x410
lea ecx, [ebp - 0x420]
push esi
push ecx
mov dword [ebp - 0x424], esi
call fcn.0055ca80
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
xor eax, eax
push 0xf003f
push eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x42c]
push eax
push ebx
mov dword [ebp - 0x428], esi
lea edi, [esi + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a233
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x41a170
push 0x410
lea ecx, [ebp - 0x420]
push 0
push ecx
mov dword [ebp - 0x428], 0x208
call fcn.0055ca80
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 0x41a1c5
cmp eax, 0x103
je 0x41a21f
xor edi, edi
jmp 0x41a208
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
push ecx
call fcn.0041a0a0
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x41a224
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x420]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41a206
cmp eax, 2
je 0x41a206
xor edi, edi
mov eax, 0x103
xor esi, esi
test eax, eax
je 0x41a170
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a23a
mov edi, 1
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a23a
cmp eax, 2
je 0x41a23a
xor edi, edi
push edi
push str.return___08x
lea edx, [ebp - 0x434]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x41a290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58494b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5eb770]
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
push str.CheckRegPCL
push ebx
lea ecx, [ebp - 0x430]
call fcn.0044ca70
add esp, 0xc
push edi
push esi
push str.hKeyPrinter___08x__lpszPrinter___s
lea eax, [ebp - 0x430]
push 1
push eax
mov dword [ebp - 4], ebx
call fcn.0044cd10
add esp, 0x14
lea ecx, [ebp - 0x424]
push ecx
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 0x41a38a
push 0x410
push eax
lea edx, [ebp - 0x420]
push edx
mov dword [ebp - 0x428], 0x208
call fcn.0055ca80
add esp, 0xc
lea eax, [ebp - 0x438]
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 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ebx, ebx
test eax, eax
je 0x41a37b
cmp eax, 0x103
sete bl
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a391
cmp eax, 2
je 0x41a391
xor ebx, ebx
push ebx
push str.return___08x
lea edx, [ebp - 0x430]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x41b590
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58490b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
push 0
mov esi, ecx
push str.DeleteOldVersionLanguageMonitor
push 0
lea ecx, [esp + 0x18]
call fcn.0044ca70
add esp, 0xc
push 0
push esi
push edi
push str.lpszFile___s__lpszMon___s__bDebug___d
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x450], 0
call fcn.0044cd10
add esp, 0x18
push esi
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x41b61d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0055ca80
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x12], 0x5c
push edi
je 0x41b669
lea ecx, [esp + 0x18]
push ecx
push str._s_s
lea edx, [esp + 0x228]
push edx
jmp 0x41b67b
lea eax, [esp + 0x18]
push eax
push 0x5b7940
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
push esi
push str.return___08x
lea eax, [esp + 0x14]
push 2
push eax
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x438], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret
Function at 0x41baa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5848cb
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x87c], eax
push ebx
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x890]
mov dword fs:[0], eax
xor edi, edi
push edi
push str.GetLastAddPrinter
push edi
lea ecx, [esp + 0x28]
call fcn.0044ca70
add esp, 0xc
push esi
push str.lpszPrinter___s
lea eax, [esp + 0x24]
push 1
push eax
mov dword [esp + 0x8a8], edi
call fcn.0044cd10
push 0x410
lea ecx, [esp + 0x38]
push edi
push ecx
mov dword [esp + 0x2c], edi
call fcn.0055ca80
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
push SysReAllocStringLen
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41bbf3
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
push edx
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
jne 0x41bb8c
lea ebx, [eax + 1]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41bb50
cmp ebx, 1
jne 0x41bbe6
push 0x450
lea ecx, [esp + 0x438]
push 0
push ecx
call fcn.0055ca80
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x438]
push eax
push 0
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x450
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5ba554
push esi
call edi
lea edx, [esp + 0x434]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41bbfa
cmp eax, 2
je 0x41bbfa
xor ebx, ebx
push ebx
push str.return___08x
lea ecx, [esp + 0x24]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x898], 0xffffffff
call fcn.0044cc70
mov eax, ebx
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x87c]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret