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

Disassembly:
mov eax, 0x132c
call fcn.00441390
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x1328], eax
mov eax, dword [esp + 0x1330]
mov dword [esp + 0x10], eax
call fcn.004048c0
cmp eax, 2
je 0x405329
cmp eax, 3
je 0x405329
push 0x104
lea ecx, [esp + 0x1228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x405340
xor eax, eax
mov ecx, dword [esp + 0x1328]
xor ecx, esp
call fcn.0044027a
add esp, 0x132c
ret
push ebx
push ebp
lea edx, [esp + 0x122c]
push edx
lea eax, [esp + 0x112c]
push str._spsapi.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x1128]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x4054b8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.EnumProcesses
push ebp
call esi
push str.EnumProcessModules
push ebp
mov edi, eax
call esi
push str.GetModuleBaseNameA
push ebp
mov dword [esp + 0x18], eax
call esi
cmp edi, ebx
mov ebp, eax
je 0x405484
cmp dword [esp + 0x10], ebx
je 0x405484
cmp ebp, ebx
je 0x405484
lea edx, [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x18]
shr eax, 2
mov dword [esp + 0x24], eax
mov edi, ebx
je 0x405479
mov ecx, dword [esp + edi*4 + 0x2c]
push ecx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40546c
lea edx, [esp + 0x28]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
call dword [esp + 0x20]
test eax, eax
je 0x405465
push 0x103
lea ecx, [esp + 0x1031]
push ebx
push ecx
mov byte [esp + 0x1038], bl
call fcn.004413c0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0x104
lea edx, [esp + 0x1030]
push edx
push eax
push esi
call ebp
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x1030]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40549f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x24]
jb 0x4053e8
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1328]
xor ecx, esp
call fcn.0044027a
add esp, 0x132c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x405486
mov ecx, dword [esp + 0x1330]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044027a
add esp, 0x132c
ret
Function at 0x4054e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov ebp, 1
mov dword [esp + 0xc], 0
xor edi, edi
call fcn.004316f5
mov ebx, dword [eax + 4]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push edi
push str.Console
push 0x80000001
mov dword [ebx + 0x4ec], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055ca
mov eax, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push edi
push str.LoadConIme
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055b4
cmp dword [esp + 0x20], edi
mov dword [esp + 0x14], 4
je 0x405573
cmp dword [esp + 0xc], edi
je 0x405577
mov dword [esp + 0xc], edi
mov edi, ebp
jmp 0x405577
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.LoadConIme
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4055b4
test edi, edi
je 0x4055b6
mov dword [ebx + 0x4ec], ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x4055e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x38
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
xor ebp, ebp
push ebp
push str.SOFTWARECanonVDCSETUP
push 0x80000002
mov dword [esp + 0x30], eax
mov esi, 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40572d
mov ecx, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x18]
push eax
push ebp
push str.Version
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], 1
call edi
test eax, eax
jne 0x4056a8
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
push str.Version
push edx
call edi
test eax, eax
jne 0x4056a8
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00413470
add esp, 8
test eax, eax
jle 0x40568d
lea esi, [ebp + 1]
jmp 0x4056a8
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.00413470
add esp, 8
test eax, eax
jge 0x4056a3
xor esi, esi
jmp 0x4056a8
mov ebp, 1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 0
push str.BuildNumber
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 1
call edi
test eax, eax
jne 0x405719
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.BuildNumber
push edx
call edi
test eax, eax
jne 0x405719
cmp ebp, 1
jne 0x405721
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00413470
xor edx, edx
add esp, 8
test eax, eax
setge dl
mov esi, edx
jmp 0x405721
cmp ebp, 1
jne 0x405721
lea esi, [ebp + 1]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0x38
ret
Function at 0x405750
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x16c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x168], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARECanonDIASSETUP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40579a
xor eax, eax
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0044027a
add esp, 0x16c
ret
push esi
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.Path
mov esi, 1
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4057f4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0044027a
add esp, 0x16c
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004413c0
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], esi
mov word [esp + 0x58], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x67], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405857
push 0x45c6ec
lea eax, [esp + 0x6c]
push eax
call esi
push ebx
push edi
push str.CnxDIAS.EXE
lea ecx, [esp + 0x74]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.__remove
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push edx
mov edi, eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4058bb
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
mov ecx, dword [esp + 0x174]
mov eax, edi
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.0044027a
add esp, 0x16c
ret
Function at 0x4058e0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 5
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40594e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044027a
add esp, 0x1c
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 2
push eax
call esi
test eax, eax
jne 0x405992
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x405992
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044027a
add esp, 0x1c
ret
mov edx, dword [esp + 0xc]
push edi
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
je 0x405a24
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push 2
push edx
call esi
test eax, eax
je 0x405a1d
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x405a1d
xor esi, esi
cmp dword [edi], ebx
jbe 0x405a12
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [edi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
push edx
push eax
call ebp
test eax, eax
je 0x405a07
mov dword [esp + 0x1c], 1
add esi, 1
add ebx, 8
cmp esi, dword [edi]
jb 0x4059f1
pop ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0x1c
ret

Function at 0x405b10
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push ecx
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x405b69
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x405b69
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x405b70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa8
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push esi
mov esi, dword [esp + 0xb4]
push edi
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004413c0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x9c
call edi
test eax, eax
jne 0x405bcb
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x94
call edi
cmp dword [esp + 0x24], 2
jne 0x405c05
cmp dword [esp + 0x18], 4
jbe 0x405c05
push esi
push 0x26
call fcn.00405b10
add esp, 8
test eax, eax
je 0x405c62
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0044027a
add esp, 0xa8
ret
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c62
lea ecx, [esp + 0xbc]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov eax, 1
je 0x405c64
mov eax, ebx
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0xa8
ret
Function at 0x405c80
Capabilities:
Delete file

Disassembly:
sub esp, 0x450
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebp
mov ebp, dword [esp + 0x458]
push esi
xor esi, esi
test ebp, ebp
je 0x405e37
push edi
push 0x104
lea eax, [esp + 0x358]
push esi
push eax
call fcn.004413c0
push 0x104
lea ecx, [esp + 0x15c]
push esi
push ecx
call fcn.004413c0
add esp, 0x18
push ebp
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x358]
push 0x45ce00
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405e1d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x405d40
push 0x45cdfc
lea edx, [esp + 0x40]
push edx
call ebx
test eax, eax
je 0x405ddb
push 0x45cdf8
lea eax, [esp + 0x40]
push eax
call ebx
test eax, eax
je 0x405ddb
test byte [esp + 0x10], 0x10
jne 0x405da5
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x154]
push edx
push 0x45ccb8
push 0xffffffffffffffff
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.004424f1
add esp, 0x18
lea ecx, [esp + 0x254]
push ecx
call esi
test byte [esp + 0x10], 0x10
je 0x405ddb
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push eax
push 0x45ccb8
push 0xffffffffffffffff
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.004424f1
lea edx, [esp + 0x26c]
push edx
call fcn.00405c80
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d40
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0044027a
add esp, 0x450
ret
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.0044027a
add esp, 0x450
ret
mov ecx, dword [esp + 0x454]
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0044027a
add esp, 0x450
ret
Function at 0x4060b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
call fcn.004316f5
mov esi, dword [eax + 4]
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov edi, 1
mov byte [esp + 0x118], 0
call fcn.004413c0
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.004413c0
add esp, 0x18
cmp dword [esi + 0x3bc], 0
je 0x4061a8
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.UNINSTAL.tmp
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push 0x45ce28
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea ecx, [esp + 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4061a8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x114]
push ecx
call esi
test eax, eax
je 0x4061c1
push 4
push 0
lea edx, [esp + 0x10]
push edx
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044027a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044027a
add esp, 0x20c
ret

Function at 0x4061e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
mov esi, dword [esp + 0x358]
xor ebx, ebx
test esi, esi
jne 0x40621d
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.0044027a
add esp, 0x34c
ret
push 0x104
lea eax, [esp + 0x250]
push 0
push eax
call fcn.004413c0
push 0x104
lea ecx, [esp + 0x158]
push 0
push ecx
call fcn.004413c0
add esp, 0x18
push esi
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x250]
push 0x45ce00
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4062e8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x4062b0
push 0x45cdfc
lea edx, [esp + 0x40]
push edx
call edi
test eax, eax
je 0x4062d3
push 0x45cdf8
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
je 0x4062d3
add ebx, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call ebp
test eax, eax
jne 0x4062b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebp
mov ecx, dword [esp + 0x350]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0x34c
ret
Function at 0x406cb0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor edi, edi
xor ebx, ebx
call fcn.004316f5
mov esi, dword [eax + 4]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x406d26
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push eax
push str.SOFTWARECanonPortSetPortSetUser
push 0x80000002
lea ebx, [edi + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406d22
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0044027a
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x124], edi
push 0
push 0
push 0
push 0
je 0x406d57
mov ecx, dword [esi + 0xd4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406dab
mov edx, dword [esi + 0xd4]
mov eax, dword [esp + 0xc]
push edx
push eax
jmp 0x406da0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push 1
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x406dab
mov eax, dword [esi + 0xd4]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406dab
mov ecx, dword [esi + 0xd4]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, 1
test ebx, ebx
je 0x406dba
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0x110
ret
Function at 0x406de0
Capabilities:
Check if file exists
Delete directory

Disassembly:
sub esp, 0x314
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push ebp
push esi
push edi
call fcn.004316f5
mov eax, dword [eax + 4]
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x11d]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x124], bl
call fcn.004413c0
push 0x104
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004413c0
push 0x104
lea eax, [esp + 0x238]
push ebx
push eax
call fcn.004413c0
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.00405b70
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
add esp, 0x2c
lea edx, [esp + 0x14]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Canon_
lea eax, [esp + 0x18]
push eax
call esi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
jne 0x406e88
lea ebx, [eax + 1]
lea edx, [esp + 0x14]
push edx
call edi
push str.InstRestore
lea eax, [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
jne 0x406ea9
lea ebx, [eax + 1]
lea edx, [esp + 0x14]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x220]
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xd4]
push eax
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x11c]
push eax
call ebp
push str.color_
lea ecx, [esp + 0x11c]
push ecx
call esi
test ebx, ebx
jne 0x406f72
lea edx, [esp + 0x14]
push edx
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
je 0x406f2e
lea ecx, [esp + 0x14]
push ecx
call fcn.00405c80
add esp, 4
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x21c]
push eax
call fcn.004061e0
add esp, 4
cmp eax, 1
jne 0x406f61
lea ecx, [esp + 0x118]
push ecx
call edi
test eax, eax
je 0x406f61
lea edx, [esp + 0x118]
push edx
call fcn.00405c80
add esp, 4
lea eax, [esp + 0x21c]
push eax
call esi
mov eax, 1
jmp 0x406f74
mov eax, ebx
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0x314
ret
Function at 0x406fc0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
xor esi, esi
call fcn.004316f5
lea eax, [esp + 4]
push eax
push 0x2001f
push esi
push str.SOFTWARECanonPortSetPortSetUser
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407068
mov ecx, dword [esp + 4]
push 1
push ecx
call fcn.00406cb0
mov ecx, dword [esp + 0xc]
add esp, 8
push esi
push esi
push esi
push esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push esi
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x407045
push str.SOFTWARECanonPortSetPortSetUser
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0044027a
add esp, 0x110
ret
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044027a
add esp, 0x110
ret