joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410097
Capabilities:
Check if file exists
Get common file path
Get file attributes
Link many functions at runtime
Set current directory

Disassembly:
push 0xc
mov eax, 0x454302
call fcn.0043dd63
xor ebx, ebx
cmp dword [0x48e3a8], ebx
jne 0x41023e
cmp dword [ebp + 8], ebx
je 0x41023e
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
call edi
mov esi, eax
add esi, 0x13
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042a644
pop ecx
push eax
push esi
mov dword [ebp - 0x18], eax
call edi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x60]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040219e
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.0040521a
lea ecx, [ebp - 0x10]
test eax, eax
je 0x41010e
push str.Reader_
jmp 0x410113
push str.Acrobat_
call fcn.00408e0c
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040219e
push str.logsession.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00408e0c
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x410174
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
call fcn.00424ec4
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0xc
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [ebp - 0x18]
mov dword [0x48e3a8], eax
call esi
push dword [ebp - 0x18]
call fcn.0042a639
mov eax, dword [0x48e3a8]
pop ecx
test eax, eax
jne 0x41019b
lea ecx, [ebx - 0x10]
call fcn.004025dc
lea ecx, [edi - 0x10]
call fcn.004025dc
jmp 0x410290
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
push str.UTOptInGet
push dword [0x48e3a8]
mov dword [0x48e3ac], eax
call esi
push str.UTSetOptIn
push dword [0x48e3a8]
mov dword [0x48e3b0], eax
call esi
push str.UTStartSession
push dword [0x48e3a8]
mov dword [0x48e3b4], eax
call esi
push str.UTLogEvent
push dword [0x48e3a8]
mov dword [0x48e3b8], eax
call esi
push str.UTNewDataGroup
push dword [0x48e3a8]
mov dword [0x48e3bc], eax
call esi
push str.UTAddToGroup
push dword [0x48e3a8]
mov dword [0x48e3c0], eax
call esi
push str.UTCloseSession
push dword [0x48e3a8]
mov dword [0x48e3c4], eax
call esi
lea ecx, [ebx - 0x10]
mov dword [0x48e3c8], eax
call fcn.004025dc
lea ecx, [edi - 0x10]
call fcn.004025dc
xor ebx, ebx
cmp dword [0x48e3b0], ebx
je 0x41027a
cmp dword [0x48e3b4], ebx
je 0x41027a
cmp dword [0x48e3b8], ebx
je 0x41027a
cmp dword [0x48e3bc], ebx
je 0x41027a
cmp dword [0x48e3c0], ebx
je 0x41027a
cmp dword [0x48e3c4], ebx
je 0x41027a
cmp dword [0x48e3c8], ebx
je 0x41027a
mov al, 1
jmp 0x410292
mov eax, dword [0x48e3a8]
cmp eax, ebx
je 0x41028a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x48e3a8], ebx
xor al, al
call fcn.0043de3b
ret
Function at 0x410eda
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x410ef1
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x410f10
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x410f15
inc edi
cmp edi, dword [ebp - 8]
jb 0x410f07
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x411004
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x410f97
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x410f41
cmp cl, 0xff
jne 0x410fc6
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x410fd7
movzx esi, byte [edx + 0x462ba8]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x410f87
cmp bl, 0xff
jne 0x410fd4
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x410f5f
dec ecx
shl edx, cl
and edx, 7
je 0x410f2e
movzx ecx, byte [edx + 0x462ba8]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x462ba0], 0
mov cl, byte [ebx + 4]
je 0x410fc3
test cl, cl
je 0x410fc3
cmp cl, 0xff
jne 0x410f2e
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x410f02
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x410f02
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x411fde
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x454725
call fcn.0043dd63
push 0
mov ecx, esi
call fcn.00410858
mov eax, esi
call fcn.00401000
test eax, eax
je 0x4120e8
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x4120e8
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 0x4120ad
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4120e8
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 0x4120e8
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.0040e85b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x4120b3
call edi
test eax, eax
jne 0x4120e8
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.0040e85b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x4120eb
xor eax, eax
inc eax
call fcn.0043de3b
ret

Function at 0x4120f1
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x45427c
call fcn.0043ddcc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8023
mov esi, ecx
push 0
mov dword [ebp - 0x228], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x41212b
xor eax, eax
jmp 0x4121fa
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040215a
and dword [ebp - 4], 0
push str.AdobeARM
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00408cf6
add esp, 0xc
push esi
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00412200
mov esi, eax
test esi, esi
jne 0x4121dc
mov eax, 0x48e90c
call fcn.0040521a
test eax, eax
mov eax, str.AdobeReader
jne 0x41218d
mov eax, str.AdobeAcrobat
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00408cf6
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00408fd2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004025dc
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00412200
mov esi, eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, esi
call fcn.0043de4f
ret
Function at 0x413df1
Capabilities:
Download url
Receive data

Disassembly:
push 0x14
mov eax, 0x456ede
call fcn.0043dd63
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.0040ece1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, 0x48e90c
mov dword [ebp - 0x10], ebx
call fcn.00423754
test eax, eax
je 0x413f80
mov dword [ebp - 0x1c], vtable.CCallback.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov eax, dword [0x48eafc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [esi + 8]
push eax
push edi
call fcn.00414bde
pop ecx
pop ecx
test al, al
jne 0x413e80
add esi, 0x10
push esi
push edi
call fcn.00414bde
pop ecx
pop ecx
test al, al
je 0x413e87
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 0x413ecc
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.0040e85b
add esp, 0x10
jmp 0x413f72
cmp dword [0x48e520], ebx
jne 0x413f7d
mov esi, eax
call fcn.00413919
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.00408aeb
test eax, eax
je 0x413f72
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 0x413f3c
push str.Download_success:
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.0040215a
mov byte [ebp - 4], 4
jmp 0x413f54
mov esi, eax
call fcn.00413919
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.0040e85b
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.0043de3b
ret 8
Function at 0x413f88
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x4572d2
call fcn.0043dd63
push str.DownloadFilesDirectly...
lea ecx, [ebp - 0x14]
call fcn.0040215a
xor esi, esi
push esi
lea eax, [ebp - 0x14]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.0040ece1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
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 [0x48e91c]
cmp eax, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
jle 0x4140de
push dword [ebp - 0x14]
mov ecx, 0x48e914
call fcn.004162da
mov edi, eax
mov eax, dword [edi]
cmp eax, esi
je 0x4140cf
cmp dword [eax + 0x18], esi
jne 0x4140cf
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040219e
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401f90
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00408fd2
mov ecx, edi
call fcn.004120f1
test eax, eax
je 0x41407f
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov byte [ebp - 4], 2
mov eax, dword [edi]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.0040e85b
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, dword [edi]
mov dword [edi + 0x18], esi
jmp 0x4140be
mov eax, dword [edi]
add eax, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00413df1
cmp dword [0x48e520], 0
jne 0x4140e9
test eax, eax
mov eax, dword [edi]
je 0x41412e
mov ebx, dword [eax + 0x14]
mov esi, dword [ebp - 0x10]
call fcn.004184aa
mov edi, dword [edi]
test eax, eax
je 0x4140f8
mov ebx, dword [ebp + 8]
mov dword [edi + 0x18], 1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
xor esi, esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x413fe6
xor eax, eax
inc eax
call fcn.0043de3b
ret 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x4140e1
and dword [edi + 0x18], 0
push str.Downloaded_file_is_not_valid:
lea ecx, [ebp + 8]
call fcn.0040215a
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040e85b
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x4140e9
and dword [eax + 0x18], 0
jmp 0x4140e9
Function at 0x41678d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454682
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x489d50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.0042a9e0
push eax
lea ecx, [esp + 0x18]
call fcn.00410472
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [0x48e540], 2
jne 0x41680a
cmp dword [0x48eac0], 0x249f0
jne 0x41680a
push 0x48e984
lea ecx, [esp + 0x18]
call fcn.00408fd2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x416851
push 0x475090
lea ecx, [esp + 0x18]
call fcn.00402123
jmp 0x416851
mov eax, 0x48e9b8
cmp dword [0x48e9ac], ebx
jne 0x41681c
mov eax, 0x48e980
push eax
lea ecx, [esp + 0x18]
call fcn.00408fd2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x416851
mov eax, 0x48e90c
call fcn.0040521a
test eax, eax
mov eax, 0x48e434
jne 0x416847
mov eax, 0x48e430
push eax
lea ecx, [esp + 0x18]
call fcn.00408fd2
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.00408fd2
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
push 0x460030
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 0x41697c
sub eax, ebx
je 0x41690a
dec eax
dec eax
je 0x4168fc
dec eax
je 0x4168f5
dec eax
dec eax
je 0x41690a
sub eax, 3
je 0x4168ee
sub eax, 0x12
je 0x4168e7
sub eax, 6
lea ecx, [esp + 0x10]
je 0x4168e0
push str.All_other_non_caught_scenarios
jmp 0x416905
push str.The_specified_DLL_was_not_found.
jmp 0x416905
push str.A_sharing_violation_occurred.
jmp 0x416901
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x416901
push str.The_specified_path_was_not_found.
jmp 0x416901
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 0x41697c
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.0040e85b
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.0040e85b
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 0x416d6b
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x4542ac
call fcn.0043dd63
mov esi, 0x475468
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 0x416da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416da7
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x416dd6
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.0040ece1
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
call fcn.0043de3b
ret
Function at 0x4184aa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x489d50]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x41852e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41852e
and dword [ebp - 0x258], 0
push 0x24c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0043c330
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41852e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x418511
cmp dword [ebp - 0x238], ebx
jne 0x41852e
push esi
call fcn.00417fdf
pop ecx
test eax, eax
je 0x41852e
cmp ebx, 0xffffffff
jne 0x418529
mov eax, dword [ebp - 0x238]
jmp 0x418530
xor eax, eax
inc eax
jmp 0x418530
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b4fa
leave
ret
Function at 0x41d01e
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x456828
call fcn.0043dd63
push 0x48e9c0
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 0x475db0
lea eax, [ebp - 0x18]
push eax
call fcn.00408a01
cmp dword [ebp - 0x10], edi
je 0x41d081
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 0x41d102
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.0040ece1
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 0x41d0e3
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x41d0f0
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025dc
mov eax, esi
call fcn.0043de3b
ret 8
push edi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
cmp eax, edi
je 0x41d122
push 0x476094
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 5
jmp 0x41d0ac
cmp dword [ebp - 0x14], edi
je 0x41d12f
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 0x41d152
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x14]
call fcn.0042987c
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x41d16a
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x41d177
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor esi, esi
jmp 0x41d0f0
Function at 0x41e905
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 0x41e93e
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
cmp eax, ebx
je 0x41e93e
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x41e9fa
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x41e99e
mov eax, dword [ebp - 0x18]
sub eax, ebx
je 0x41e982
dec eax
je 0x41e969
dec eax
je 0x41e982
dec eax
jne 0x41e9fa
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 0x41e999
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 0x41e9fa
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x41e9dc
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 0x41e9ca
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x41e9fa
add eax, 0xffffffe2
jmp 0x41e9f7
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 0x41eb33
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x489d50]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x453e38
call fcn.0043dd63
mov eax, dword [ebp + 0x214]
push dword [eax]
mov esi, ecx
push 0x4778f4
push esi
call fcn.00408aeb
test eax, eax
jne 0x41ec37
call fcn.0042a9e0
push eax
lea ecx, [ebp - 0x10]
call fcn.00410472
and dword [ebp - 4], 0
mov edi, str._WindowsFolder_
push edi
xor ecx, ecx
call fcn.00408c65
or ebx, 0xffffffff
cmp eax, ebx
je 0x41eb9e
push 0x24
jmp 0x41ebdb
mov edi, str._SystemFolder_
push edi
xor ecx, ecx
call fcn.00408c65
cmp eax, ebx
je 0x41ebb3
push 0x25
jmp 0x41ebdb
mov edi, str._ProgramFilesFolder_
push edi
xor ecx, ecx
call fcn.00408c65
cmp eax, ebx
je 0x41ebc8
push 0x26
jmp 0x41ebdb
mov edi, str._CommonFilesFolder_
push edi
xor ecx, ecx
call fcn.00408c65
cmp eax, ebx
je 0x41ec2c
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.0043c330
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 0x41ec2c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41ec2c
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push esi
call fcn.00408aeb
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.0043b4fa
add ebp, 0x20c
leave
ret