joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407240
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.004350f7
mov ecx, dword [eax + 4]
call fcn.0043cd71
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4072e7
push esi
push edi
push 4
push str.SPOOLER
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4072ca
xor esi, esi
nop dword [eax]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x4072bc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jb 0x407290
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
jmp 0x4072e0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
jmp 0x4072e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x424
cmp eax, ecx
cmove ebx, ecx
push dword [ebp - 0x28]
call esi
pop edi
pop esi
lea ecx, [ebp - 0x21]
call fcn.00409390
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x407300
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fa48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x496534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x10], ax
call fcn.004350f7
push 0x800f003f
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x40748b
push 0xf01ff
push str.SPOOLER
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x407484
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x4073b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4073e4
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x4073e4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x407402
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x407473
mov ebx, dword [ebp - 0x1c]
nop dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, 4
je 0x407422
cmp eax, 2
je 0x407422
cmp eax, 5
jne 0x407464
push dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.00401ff0
lea ecx, [ebx + 0xf4]
mov dword [ebp - 4], 0
push eax
push dword [ecx + 8]
call fcn.0043e02a
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407464
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
add esi, 0x24
cmp edi, dword [ebp - 0x18]
jb 0x407410
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1634
call fcn.0044b8a0
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40801b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push str._spsapi.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4081b2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleBaseNameW
push ebx
mov dword [ebp - 0x1624], eax
call esi
mov dword [ebp - 0x1630], eax
test edi, edi
je 0x40817b
cmp dword [ebp - 0x1624], 0
je 0x40817b
test eax, eax
je 0x40817b
lea eax, [ebp - 0x1620]
mov dword [ebp - 0x1620], 0
push eax
push 0x1000
lea eax, [ebp - 0x161c]
push eax
call edi
mov eax, dword [ebp - 0x1620]
xor edi, edi
shr eax, 2
mov dword [ebp - 0x1634], eax
test eax, eax
je 0x408174
push dword [ebp + edi*4 - 0x161c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408167
lea eax, [ebp - 0x162c]
mov dword [ebp - 0x1628], 0
push eax
push 4
lea eax, [ebp - 0x1628]
mov dword [ebp - 0x162c], 0
push eax
push esi
call dword [ebp - 0x1624]
test eax, eax
je 0x408160
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push dword [ebp - 0x1628]
push esi
call dword [ebp - 0x1630]
push str.conime.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40818e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x1634]
jb 0x4080d2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x4081d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov esi, 1
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call fcn.004350f7
mov ebx, dword [eax + 4]
lea eax, [ebp - 8]
push eax
push 0xf003f
push edi
push str.Console
push SysReAllocString
mov dword [ebx + 0x5c0], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4082c3
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.LoadConIme
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4082af
mov dword [ebp - 0xc], 4
cmp dword [ebp - 0x14], edi
je 0x408274
cmp dword [ebp - 4], edi
je 0x408277
mov dword [ebp - 4], edi
mov edi, esi
jmp 0x408277
mov dword [ebp - 4], esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.LoadConIme
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4082af
test edi, edi
je 0x4082b1
mov dword [ebx + 0x5c0], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4082d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x496534]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
push 0x208
lea eax, [esp + 0x46c]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.0044f210
add esp, 0xc
lea eax, [esp + 0x10]
push 0x250
push 0
push eax
call fcn.0044f210
add esp, 0xc
test ebx, ebx
je 0x40849b
push 0x208
lea eax, [esp + 0x674]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [esp + 0x260]
push 0x208
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [esp + 0x260]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x674]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40849b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
push 0x48622c
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
je 0x408460
push 0x486230
lea eax, [esp + 0x40]
push eax
call esi
test eax, eax
je 0x408460
mov eax, dword [esp + 0x10]
test al, 0x10
jne 0x40842b
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x478]
push 0x104
push eax
call fcn.00409310
add esp, 0x18
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x408460
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x478]
push 0x104
push eax
call fcn.00409310
add esp, 0x18
lea ecx, [esp + 0x468]
call fcn.004082d0
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x4083c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x87c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x4089d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0044f210
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
push edi
push edi
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004563a3
push edi
push edi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00456574
add esp, 0x3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0044ae75
mov esp, ebp
pop ebp
ret

Function at 0x408af0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.004350f7
push 0x208
push 0
mov esi, dword [eax + 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044f210
add esp, 0x18
cmp dword [esi + 0x380], 0
je 0x408bdc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.UNINSTAL.tmp
lea eax, [ebp - 0x20c]
push eax
push 0x485f30
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408bdc
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x20c]
push 2
push eax
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x408bf0
push 4
push 0
lea ecx, [ebp - 0x20c]
push ecx
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x409af0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x496534]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
push 0x410
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0044f210
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x10]
xor ebx, ebx
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
push eax
push 0xf003f
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c2d
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x410
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x208
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
je 0x409bad
cmp eax, 0x103
je 0x409c07
xor esi, esi
jmp 0x409bde
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
call fcn.00409af0
mov esi, eax
cmp esi, 1
jne 0x409c0c
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call edi
test eax, eax
je 0x409bdc
cmp eax, 2
je 0x409bdc
xor esi, esi
mov eax, 0x103
xor ebx, ebx
test eax, eax
je 0x409b61
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
mov esi, 1
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 2
pop edi
mov eax, 1
cmovne eax, ecx
mov ecx, dword [esp + 0x430]
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret

Function at 0x409c50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x410
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x418]
xorps xmm0, xmm0
movq qword [ebp - 0x424], xmm0
mov ebx, 1
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409d33
push 0x410
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x41c], 0x208
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ebx, ebx
test eax, eax
je 0x409d14
cmp eax, 0x103
sete bl
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 2
pop edi
cmovne ebx, ecx
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x40a2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x410
lea eax, [ebp - 0x414]
mov dword [ebp - 0x868], 0
push 0
push eax
mov ebx, ecx
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x86c], 0
lea eax, [ebp - 0x868]
xor edi, edi
xor esi, esi
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a3f0
nop dword [eax + eax]
push 0x410
lea eax, [ebp - 0x414]
mov dword [ebp - 0x86c], 0x208
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x86c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
test eax, eax
jne 0x40a38b
lea edi, [eax + 1]
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x40a330
cmp edi, 1
jne 0x40a3d1
lea eax, [ebp - 0x870]
mov dword [ebp - 0x870], 0x450
push eax
lea eax, [ebp - 0x864]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4864ac
push ebx
call esi
lea eax, [ebp - 0x864]
push eax
push ebx
call esi
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 2
cmovne edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x40c530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
jne 0x40c564
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
push 0x618
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x824]
push esi
cmp dword [ebp + 0xc], edi
je 0x40c58d
push str.SystemCurrentControlSetControlPrintEnvironmentsWindows_x64DriversVersion_4
jmp 0x40c592
push str.SystemCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_4
push 0x485f30
push 0x30c
push eax
call fcn.00409370
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x828], edi
lea eax, [ebp - 0x828]
mov dword [ebp - 0x830], 1
mov dword [ebp - 0x82c], 0x208
push eax
push 0x20019
push 0
lea eax, [ebp - 0x824]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c644
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x830]
push eax
push 0
push str.DriverVersion
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c638
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00401fa0
mov edi, 1
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x40c990
Capabilities:
Check if file exists
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x40cabe
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c9b6
sub edx, ecx
sar edx, 1
je 0x40cabe
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 0
push 0
push 0x47a788
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40cabe
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044f210
push edi
push str.CanonLaser_Printer_Driver
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x4868c0
push 0x104
push eax
call fcn.00409370
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40caad
lea ecx, [ebp - 0x20c]
call fcn.004082d0
mov esi, eax
test esi, esi
je 0x40caad
push str.CanonLaser_Printer_Driver
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x485f30
push 0x104
push eax
call fcn.00409370
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x20c]
add esp, 0x14
push eax
call edi
test eax, eax
je 0x40caad
push str.Canon
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x485f30
push 0x104
push eax
call fcn.00409370
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call edi
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40cabe
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0044ae75
mov esp, ebp
pop ebp
ret

Function at 0x40cad0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x496534]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
xor esi, esi
push edi
mov edi, edx
test ebx, ebx
je 0x40cba6
test edi, edi
je 0x40cba6
push 0x208
lea eax, [esp + 0x264]
push esi
push eax
call fcn.0044f210
push ebx
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.00451ea9
add esp, 0x18
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.00456afc
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cba6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 0x10], 0x10
je 0x40cb8c
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x40cb77
jmp 0x40cb9f
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x3c]
push eax
call fcn.00401fa0
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x40cbc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cc78
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40cc71
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push eax
push str.printfilterpipelinesvc.exe
call fcn.00451d34
add esp, 8
test eax, eax
je 0x40cc6b
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x40cc23
jmp 0x40cc70
mov edi, 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044ae75
mov esp, ebp
pop ebp
ret