joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411779
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x45285f
call fcn.0043bf0a
push 0
mov ecx, esi
call fcn.00410106
mov eax, esi
call fcn.00401000
test eax, eax
je 0x411883
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x411883
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [esi]
and ebx, 0xfffffffe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
test bl, 0x10
je 0x411848
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x411883
and dword [ebp - 0x34], eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, 0x414
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x30], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
test edi, edi
je 0x411883
push str.SHFileOperation_FO_DELETE__failed:
lea ecx, [ebp - 0x10]
call fcn.0040215a
and dword [ebp - 4], 0
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.0040e15a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x41184e
call edi
test eax, eax
jne 0x411883
push str.RemoveDirectory___DeleteFile___failed:
lea ecx, [ebp - 0x14]
call fcn.0040215a
push 0x186a0
xor eax, eax
push esi
lea ecx, [ebp - 0x14]
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0040e15a
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x411886
xor eax, eax
inc eax
call fcn.0043bfe2
ret

Function at 0x41188c
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x453e40
call fcn.0043bf73
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push eax
xor esi, esi
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x4118c6
xor eax, eax
jmp 0x41196b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040215a
mov dword [ebp - 4], esi
call fcn.00428b72
push eax
lea ecx, [ebp - 0x220]
call fcn.0040fd20
lea eax, [ebp - 0x220]
mov esi, 0x48a904
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004229ef
mov edi, dword [ebp - 0x220]
push edi
call fcn.0043a90f
cmp eax, 0xa
pop ecx
jge 0x41192d
mov eax, esi
call fcn.004051d7
test eax, eax
mov eax, str.AdobeReader
jne 0x41192a
mov eax, str.AdobeAcrobat
push eax
jmp 0x411932
push str.AdobeARM
lea ecx, [ebp - 0x21c]
call fcn.0040893e
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00411973
lea ecx, [edi - 0x10]
mov esi, eax
call fcn.004025dc
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, esi
call fcn.0043bff6
ret 4
Function at 0x4133e6
Capabilities:
Download url
Receive data

Disassembly:
push 0x14
mov eax, 0x454f52
call fcn.0043bf0a
mov esi, ecx
push str.DownloadFileDirectly...
lea ecx, [ebp - 0x10]
call fcn.0040215a
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e5e0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, 0x48a904
mov dword [ebp - 0x10], ebx
call fcn.00421e9f
test eax, eax
je 0x413575
mov dword [ebp - 0x1c], vtable.CCallback.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov eax, dword [0x48aac8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [esi + 8]
push eax
push edi
call fcn.00413917
pop ecx
pop ecx
test al, al
jne 0x413475
add esi, 0x10
push esi
push edi
call fcn.00413917
pop ecx
pop ecx
test al, al
je 0x41347c
mov dword [ebp - 0x14], 0x3c
mov eax, dword [edi]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, ebx
jl 0x4134c1
push str.Download_success:
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], 1
call fcn.0040215a
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.0040e15a
add esp, 0x10
jmp 0x413567
cmp dword [0x48a518], ebx
jne 0x413572
mov esi, eax
call fcn.00412f0e
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040219e
push str.http:__
push str.https:__
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.00408652
test eax, eax
je 0x413567
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [edi]
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, ebx
jl 0x413531
push str.Download_success:
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.0040215a
mov byte [ebp - 4], 4
jmp 0x413549
mov esi, eax
call fcn.00412f0e
push str.Download_failed:
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 2
call fcn.0040e15a
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, dword [ebp - 0x10]
call fcn.0043bfe2
ret 8
Function at 0x41357d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455371
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x485d50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.DownloadFilesDirectly...
lea ecx, [esp + 0x1c]
call fcn.0040215a
xor esi, esi
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov dword [esp + 0x3c], esi
call fcn.0040e5e0
or dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [0x48a914]
cmp eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
jle 0x4136fe
push dword [esp + 0x18]
mov ecx, 0x48a90c
call fcn.004089a1
mov edi, eax
cmp dword [edi], esi
je 0x4136ec
lea eax, [ebx + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.0040219e
xor esi, esi
inc esi
mov dword [esp + 0x30], esi
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.00401f90
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [esp + 0x14]
push eax
call fcn.00408b20
push edi
call fcn.0041188c
test eax, eax
je 0x413698
push str.File_already_exist_and_valid:
lea ecx, [esp + 0x20]
call fcn.0040215a
mov byte [esp + 0x30], 2
mov eax, dword [edi]
push 0
add eax, 8
push eax
lea eax, [esp + 0x24]
push eax
push 2
call fcn.0040e15a
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, dword [edi]
mov dword [edi + 0x18], esi
jmp 0x4136d9
mov eax, dword [edi]
add eax, 0xc
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.004133e6
cmp dword [0x48a518], 0
jne 0x413716
test eax, eax
mov eax, dword [edi]
je 0x413761
mov ebx, dword [eax + 0x14]
mov esi, dword [esp + 0x14]
call fcn.00416fe1
mov edi, dword [edi]
test eax, eax
je 0x413726
mov ebx, dword [ebp + 8]
mov dword [edi + 0x18], 1
or dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
xor esi, esi
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jl 0x413602
xor eax, eax
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x413701
and dword [edi + 0x18], 0
push str.Downloaded_file_is_not_valid:
lea ecx, [esp + 0x20]
call fcn.0040215a
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x40], 3
call fcn.0040e15a
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x413716
and dword [eax + 0x18], 0
jmp 0x413716
Function at 0x4153a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4527bc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x485d50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.00428b72
push eax
lea ecx, [esp + 0x18]
call fcn.0040fd20
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [0x48a538], 2
jne 0x415421
cmp dword [0x48aa8c], 0x249f0
jne 0x415421
push 0x48a974
lea ecx, [esp + 0x18]
call fcn.00408b20
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x415468
push 0x471950
lea ecx, [esp + 0x18]
call fcn.00402123
jmp 0x415468
mov eax, 0x48a99c
cmp dword [0x48a998], ebx
jne 0x415433
mov eax, 0x48a970
push eax
lea ecx, [esp + 0x18]
call fcn.00408b20
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x415468
mov eax, 0x48a904
call fcn.004051d7
test eax, eax
mov eax, 0x48a434
jne 0x41545e
mov eax, 0x48a430
push eax
lea ecx, [esp + 0x18]
call fcn.00408b20
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040219e
mov esi, dword [ebp + 8]
lea eax, [esp + 0x18]
add esi, 0x58
push eax
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.00408b20
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
push 0x45df00
lea ecx, [esp + 0x14]
call fcn.0040215a
push 1
push ebx
push ebx
mov byte [esp + 0x34], 2
mov eax, dword [esi]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x21
jge 0x415593
sub eax, ebx
je 0x415521
dec eax
dec eax
je 0x415513
dec eax
je 0x41550c
dec eax
dec eax
je 0x415521
sub eax, 3
je 0x415505
sub eax, 0x12
je 0x4154fe
sub eax, 6
lea ecx, [esp + 0x10]
je 0x4154f7
push str.All_other_non_caught_scenarios
jmp 0x41551c
push str.The_specified_DLL_was_not_found.
jmp 0x41551c
push str.A_sharing_violation_occurred.
jmp 0x415518
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x415518
push str.The_specified_path_was_not_found.
jmp 0x415518
push str.The_specified_file_was_not_found.
lea ecx, [esp + 0x14]
call fcn.00402123
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x415593
push str.Failed_to_navigate_to_URL:
lea ecx, [esp + 0x1c]
call fcn.0040215a
push edi
push esi
lea eax, [esp + 0x20]
push eax
push 1
mov byte [esp + 0x38], 3
call fcn.0040e15a
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
push str.___Error_message:
lea ecx, [esp + 0x1c]
call fcn.0040215a
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 1
mov byte [esp + 0x38], 4
call fcn.0040e15a
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
inc eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415982
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x45255b
call fcn.0043bf0a
mov esi, 0x471d28
push esi
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x4159be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4159be
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x4159ed
push str.ARM_update_mutex_created
lea ecx, [ebp - 0x10]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e5e0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
call fcn.0043bfe2
ret
Function at 0x4160ad
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x453cbc
call fcn.0043bf0a
push str.InstallProductExe...
lea ecx, [ebp - 0x14]
call fcn.0040215a
xor esi, esi
push esi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
inc edi
push edi
mov dword [ebp - 4], esi
call fcn.0040e5e0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push str.___file__
lea ecx, [ebp - 0x14]
call fcn.0040215a
push esi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0040e15a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
push str.___args__
lea ecx, [ebp - 0x14]
call fcn.0040215a
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 2
call fcn.0040e15a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
push dword [ebp + 8]
call fcn.004276aa
pop ecx
test eax, eax
jne 0x416164
push 0xd
pop eax
jmp 0x416286
mov edi, dword [0x48aac8]
cmp edi, esi
je 0x416189
mov ecx, dword [ebp + 0xc]
push str._ARM
call fcn.0040b302
test eax, eax
je 0x416189
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x178]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0043a400
add esp, 0xc
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x70], edi
call fcn.0043a400
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x45fb78
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0040885d
add esp, 0xc
push dword [ebp + 0xc]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e40
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
inc eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00416a3c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41623c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
cmp dword [ebp - 0x24], esi
je 0x416230
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x20], esi
je 0x41625a
push dword [ebp - 0x20]
call edi
jmp 0x41625a
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00408a36
cmp dword [ebp - 0x24], esi
je 0x41626e
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x20], esi
je 0x416278
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, dword [ebp + 8]
call fcn.0043bfe2
ret 8
Function at 0x416fe1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x485d50]
xor eax, esp
mov dword [esp + 0x254], eax
test esi, esi
je 0x417060
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417060
and dword [esp], 0
push 0x24c
lea eax, [esp + 8]
push 0
push eax
call fcn.0043a400
add esp, 0xc
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x417060
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x417045
cmp dword [esp + 0x20], ebx
jne 0x417060
push esi
call fcn.00416b16
pop ecx
test eax, eax
je 0x417060
cmp ebx, 0xffffffff
jne 0x41705b
mov eax, dword [esp + 0x20]
jmp 0x417062
xor eax, eax
inc eax
jmp 0x417062
xor eax, eax
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0043968e
mov esp, ebp
pop ebp
ret
Function at 0x41b7d5
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x454a79
call fcn.0043bf0a
push 0x48a9a4
lea ecx, [ebp - 0x1c]
call fcn.0040219e
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push str.SELECT__FileSequences__FROM__ProductUpgrades__WHERE__UpgradeMatch_
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040215a
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x1c]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x18]
push ebx
call fcn.00401f90
push 0x472600
lea eax, [ebp - 0x18]
push eax
call fcn.0040d029
cmp dword [ebp - 0x10], edi
je 0x41b838
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
push eax
call sub.msi.dll_MsiEnumClientsA
cmp eax, edi
je 0x41b8b9
push str.MDOV
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 4
mov esi, 0x3d32
push esi
lea eax, [ebp + 8]
push eax
push 1
call fcn.0040e5e0
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x41b89a
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x41b8a7
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025dc
mov eax, esi
call fcn.0043bfe2
ret 8
push edi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
cmp eax, edi
je 0x41b8d9
push 0x4728e4
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 5
jmp 0x41b863
cmp dword [ebp - 0x14], edi
je 0x41b8e6
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x41b909
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x14]
call fcn.00427a0f
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x41b921
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x41b92e
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor esi, esi
jmp 0x41b8a7
Function at 0x41d078
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
xor ebx, ebx
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x41d0b1
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
cmp eax, ebx
je 0x41d0b1
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x41d16d
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x41d111
mov eax, dword [ebp - 0x18]
sub eax, ebx
je 0x41d0f5
dec eax
je 0x41d0dc
dec eax
je 0x41d0f5
dec eax
jne 0x41d16d
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x64]
mov dword [esi], ecx
add eax, 0xfffffff0
jmp 0x41d10c
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x41d16d
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x41d14f
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, dword [esi]
cmp ecx, 0x96
jle 0x41d13d
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x41d16d
add eax, 0xffffffe2
jmp 0x41d16a
push ebx
push esi
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop edi
pop ebx
leave
ret
Function at 0x41d2a6
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x485d50]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x452011
call fcn.0043bf0a
mov eax, dword [ebp + 0x214]
push dword [eax]
mov esi, ecx
push 0x473eac
push esi
call fcn.00408652
test eax, eax
jne 0x41d3aa
call fcn.00428b72
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fd20
and dword [ebp - 4], 0
mov edi, str._WindowsFolder_
push edi
xor ecx, ecx
call fcn.004087cc
or ebx, 0xffffffff
cmp eax, ebx
je 0x41d311
push 0x24
jmp 0x41d34e
mov edi, str._SystemFolder_
push edi
xor ecx, ecx
call fcn.004087cc
cmp eax, ebx
je 0x41d326
push 0x25
jmp 0x41d34e
mov edi, str._ProgramFilesFolder_
push edi
xor ecx, ecx
call fcn.004087cc
cmp eax, ebx
je 0x41d33b
push 0x26
jmp 0x41d34e
mov edi, str._CommonFilesFolder_
push edi
xor ecx, ecx
call fcn.004087cc
cmp eax, ebx
je 0x41d39f
push 0x2b
pop ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.00402123
xor eax, eax
push 0x206
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.0043a400
add esp, 0xc
lea eax, [ebp]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41d39f
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41d39f
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push esi
call fcn.00408652
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043968e
add ebp, 0x20c
leave
ret
Function at 0x41d6da
Capabilities:
Enumerate gui resources

Disassembly:
push 0x29c
mov eax, 0x453a0c
call fcn.0043bf0a
push 0x48a964
lea ecx, [ebp - 0x20]
call fcn.0040219e
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push ebx
mov ecx, 0x48aa74
mov dword [ebp - 0x1c], ebx
call fcn.0042adcf
cmp dword [0x48a928], ebx
mov dword [ebp - 0x14], ebx
jle 0x41d848
push dword [ebp - 0x14]
mov ecx, 0x48a920
call fcn.004089a1
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x41d7fe
cmp dword [eax + 0x20], ebx
jne 0x41d7fe
add eax, 8
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.0040219e
push 0x47149c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040b302
lea ecx, [ebp - 0x10]
test eax, eax
je 0x41d78b
lea eax, [ebp - 0x20]
push eax
call fcn.0041d2a6
lea ecx, [ebp - 0x10]
mov dword [esp], 0x45dd50
call fcn.0040893e
mov eax, dword [esi]
add eax, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f30
jmp 0x41d796
mov eax, dword [esi]
add eax, 4
push eax
call fcn.00408b20
mov esi, dword [esi]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x10]
cmp eax, 4
jne 0x41d7bf
xor esi, esi
push ebx
inc esi
lea eax, [ebp - 0x18]
push esi
push eax
mov ecx, edi
call fcn.0041dcc9
add esp, 0xc
test eax, eax
je 0x41d7e0
mov dword [ebp - 0x1c], esi
jmp 0x41d7e0
cmp eax, ebx
jne 0x41d7f3
push dword [esi + 4]
lea eax, [ebp - 0x18]
push ebx
push eax
mov ecx, edi
call fcn.0041dcc9
add esp, 0xc
test eax, eax
je 0x41d7e0
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], ebx
je 0x41d7f3
push dword [ebp - 0x18]
push 0x41d204
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.004025dc
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x48a928]
jl 0x41d71a
cmp dword [ebp - 0x1c], ebx
je 0x41d848
push dword [0x48aac8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041484a
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.004343a9
lea ecx, [ebp - 0x2a8]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0041496f
jmp 0x41d84b
xor esi, esi
inc esi
cmp esi, 4
je 0x41d6fb
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, esi
call fcn.0043bfe2
ret