joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478c90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1a6b
mov eax, dword fs:[0]
push eax
mov eax, 0x144c
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.OperateTempFolder::CopyDDIFiles
lea ecx, [ebp - 0x1458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x478d19
test byte [ecx + 0x1c], 1
je 0x478d19
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cf920
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x1420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xc20]
add esp, 0x30
mov ecx, dword [ecx + 0x1c]
push eax
push str.SOURCEDIR
call fcn.004f65f0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1420]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x420]
push 0x5c7af8
push eax
call edi
push str.Cab1.cab
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x1420]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x5c7af8
lea eax, [ebp - 0x218]
push eax
call edi
push 0x5c692c
lea eax, [ebp - 0x218]
push eax
call edi
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x478e7d
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x478e6c
test byte [ecx + 0x1c], 4
je 0x478e6c
cmp dword [0x608f68], 8
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
mov edx, 0x5cf920
push eax
mov eax, dword [0x608f30]
mov ecx, 0xf
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004300c0
mov ecx, dword [0x608f30]
add esp, 0x14
mov esi, 0x80010009
mov dword [0x6183ec], 9
jmp 0x478eb5
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00531bd0
mov ecx, dword [0x608f30]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x8001000c
test eax, eax
je 0x478eb5
mov esi, 0x8001000c
mov dword [0x6183ec], 0xc
mov byte [ebp - 0x1454], 1
cmp ecx, 0x608f30
je 0x478ef7
test byte [ecx + 0x1c], 1
je 0x478ef7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5cf920
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1458]
call fcn.0040a570
mov eax, esi
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.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x47be30
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe1c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xe1c]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00571c00
add esp, 0x30
lea eax, [ebp - 0x20c]
mov ecx, 0x618420
push 0x104
push eax
push str.InitSettings
call fcn.004a0440
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xe1c]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0xe1c]
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push str.InitSettings.ini
push eax
lea eax, [ebp - 0x61c]
push 0x5c70f4
push eax
call esi
push str.InitSettings.ini
lea eax, [ebp - 0xe1c]
push eax
lea eax, [ebp - 0x414]
push 0x5c70f4
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x414]
push 0
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop esi
test eax, eax
je 0x47bf56
push 0x20
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [0x6184f0]
mov eax, dword [eax + 0x44]
mov dword [eax + 0xc], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x494810
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebp
ret 0x10
Function at 0x49fef0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.Global_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.h_PrinterDriver_Installer
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x49ff79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x6183ec], 0x64
mov eax, 0x80010064
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x49ffa1
mov dword [0x6183ec], 0x64
mov eax, 0x80010064
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push esi
push str.h_PrinterDriver_Installer
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x49ffe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49ffda
cmp eax, 5
je 0x49ffda
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 0x80010064
xor ecx, ebp
mov dword [0x6183ec], 0x64
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret

Function at 0x4a0030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.Global_
push eax
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 eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4a00bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a00b8
cmp eax, 5
je 0x4a00b8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 0x80010064
xor ecx, ebp
mov dword [0x6183ec], 0x64
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x4a00e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x4a01bb
push esi
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4a0132
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4a0154
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 1
jne 0x4a01bb
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.Global_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004a00e0
test eax, eax
je 0x4a01bd
pop edi
or eax, 0x80000000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8

Function at 0x4a01d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a0227
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4a0200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a020a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret 4
cmp eax, 5
jne 0x4a0220
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4

Function at 0x4a0230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x4a0273
mov edi, dword [esi + 0xe4]
test edi, edi
je 0x4a026b
call fcn.0055f2f5
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x4a026b
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xe8], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a02f2
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x4a0299
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xe8], 0
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [esi + 0xe8], edi
test edi, edi
je 0x4a02dd
cmp dword [esi + 0xe4], 0
jne 0x4a02cd
call fcn.0055f2f5
mov edi, dword [esi + 0xe8]
mov eax, dword [eax + 8]
mov dword [esi + 0xe4], eax
call fcn.0055f2f5
mov dword [eax + 0xc], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
pop edi
mov dword [0x6183ec], 0x47
mov eax, 0x80010047
pop esi
pop ebp
ret 4
pop edi
mov dword [0x6183ec], 0x60
mov eax, 0x80010060
pop esi
pop ebp
ret 4
Function at 0x4a0610
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x418], esi
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
add esp, 0x18
test esi, esi
je 0x4a0789
mov eax, dword [ebp + 0x14]
sub eax, 0
je 0x4a067d
sub eax, 1
jne 0x4a0789
mov eax, str.MISC
jmp 0x4a0682
mov eax, 0x5c6930
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push eax
mov ecx, edi
call fcn.004a0440
test eax, eax
jne 0x4a07bb
call fcn.0052ee40
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0052ef30
mov edi, eax
test edi, edi
jne 0x4a07b9
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a0756
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push esi
push 0x104
push eax
call fcn.00574a48
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00574a48
add esp, 0x18
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a0756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4a0756
pop edi
pop esi
mov dword [0x6183ec], 0xc
mov eax, 0x8001000c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10
push 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, ebx
je 0x4a07b9
mov esi, dword [ebp + 0x10]
push esi
push 0
push ebx
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jbe 0x4a07ab
pop edi
pop esi
mov dword [0x6183ec], 1
mov eax, 0x80010001
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a0850
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x260]
push esi
push edi
push 0x208
push 0
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
call fcn.00571c00
push 0x208
lea eax, [esp + 0x480]
push 0
push eax
call fcn.00571c00
push 0x250
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00571c00
add esp, 0x24
lea eax, [esp + 0x470]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x470]
push eax
lea eax, [esp + 0x26c]
push str._s.
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a09bb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [esp + 0x18], 0x10
je 0x4a0973
push 0x5cafc8
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
je 0x4a096c
push 0x5cafcc
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
je 0x4a096c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x270]
push 0x5c70f4
push eax
call edi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x278]
add esp, 0x10
push eax
call fcn.004a0850
test byte [esp + 0x18], 0x10
jne 0x4a09a0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x474]
push eax
lea eax, [esp + 0x270]
push 0x5c70f4
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a0915
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x67c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
Function at 0x4a1890
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
xorps xmm0, xmm0
push 0x28
movaps xmmword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a192b
lea eax, [esp + 0x14]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4a192b
push 0
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0
push dword [esp + 0x20]
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a192b
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x4a1940
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0x500
xor esi, esi
push eax
push 8
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4a1998
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
pop esi
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x4a19d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4a19d8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4a1a63
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 2
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x4a1a5c
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4a1a5c
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x4a1a53
lea eax, [edi + 4]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, 1
cmovne esi, eax
mov eax, dword [ebp - 0x18]
inc ebx
add eax, 8
mov dword [ebp - 0x18], eax
cmp ebx, dword [edi]
jb 0x4a1a30
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x4a1a80
Capabilities:
Delete directory
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00571c00
add esp, 0x3c
call fcn.0052ee40
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 0
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4a1b5b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa30]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0xa34]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4a1b5b
mov eax, dword [ebp - 0xa34]
push dword [ebp - 0xa30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xa34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
push str.Canon_
lea eax, [ebp - 0x20c]
push eax
push 0x5c6c90
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00437f50
push str.InstTemp_
lea eax, [ebp - 0x20c]
push eax
push 0x5c70f4
push 0xffffffffffffffff
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00437f50
push str.InstRestore
lea eax, [ebp - 0x20c]
push eax
push 0x5ca318
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00437f50
add esp, 0x48
lea eax, [ebp - 0x20c]
push str.PrinterDriver_
push eax
push 0x5c70f4
push 0xffffffffffffffff
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.00437f50
push str.color_
lea eax, [ebp - 0x414]
push eax
push 0x5c70f4
push 0xffffffffffffffff
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.00437f50
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x61c]
add esp, 0x30
push eax
call esi
lea eax, [ebp - 0x824]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0xa2c]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x4a9967
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4a99a2
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4a9989
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4a999a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4a99a4
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4a997f
xor eax, eax
pop edi
pop esi
ret

Function at 0x4b41a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cee8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x608554]
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, ecx
mov ebx, dword [ebp + 8]
push ecx
push str.CBaseDlgMgr::DestroyUSBWait
lea ecx, [ebp - 0x48]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4b422b
test byte [ecx + 0x1c], 1
je 0x4b422b
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d6224
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x31
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x4b42bd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x60]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4b424a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
cmp dword [eax - 0xc], edi
je 0x4b42b5
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4b42cc
test byte [ecx + 0x1c], 2
je 0x4b42cc
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x48]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5d6224
push esi
mov ecx, 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
mov ecx, dword [0x608f30]
jmp 0x4b42cc
mov edi, 0x80010001
mov dword [0x6183ec], 1
mov byte [ebp - 0x44], 1
cmp ecx, 0x608f30
je 0x4b430b
test byte [ecx + 0x1c], 1
je 0x4b430b
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d6224
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x33
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret 4