joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412b71
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x462932
call fcn.00449f2b
push 0xf
pop esi
mov ebx, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
call fcn.00412a2c
push dword [ebp + 8]
mov edx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00412adc
pop ecx
cmp dword [0x4a6554], edi
je 0x412bc9
mov eax, dword [0x4a655c]
cmp eax, edi
je 0x412bc9
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x412bbe
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov esi, eax
jmp 0x412c94
or dword [ebp - 0x4c], 0xffffffff
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x30], esi
call fcn.00412a2c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.004134b0
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0041297e
push edi
push 1
lea ecx, [ebp - 0x74]
call fcn.00412a48
cmp dword [ebp - 0x30], 0x10
mov ebx, dword [ebp - 0x44]
jae 0x412c1a
lea ebx, [ebp - 0x44]
cmp ebx, edi
je 0x412c30
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x412c34
xor eax, eax
jmp 0x412c48
lea eax, [esi + esi]
call fcn.00452aa0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.004134fd
lea ecx, [ebp - 0x50]
push ecx
push 0x20019
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412c86
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push str.OptIn
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x4c]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00412a48
sub esi, edi
je 0x412ca5
dec esi
je 0x412ca0
or esi, 0xffffffff
jmp 0x412ca7
xor esi, esi
inc esi
jmp 0x412ca7
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00412a48
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.00449fae
ret
Function at 0x41323d
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, 0x45e8c8
call fcn.00449ec2
xor ebx, ebx
cmp dword [0x4a6554], ebx
jne 0x4133e7
cmp dword [ebp + 8], ebx
je 0x4133e7
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.00436333
pop ecx
push eax
push esi
mov dword [ebp - 0x18], eax
call edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x70]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040134f
mov dword [ebp - 4], ebx
call fcn.00401b96
lea ecx, [ebp - 0x10]
test eax, eax
je 0x4132b2
push str.Reader_
jmp 0x4132b7
push str.Acrobat_
call fcn.00406262
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040134f
push str.logsession.dll
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406262
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x41331d
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
push 0x80000001
call fcn.0042ec58
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0x10
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push dword [ebp - 0x18]
mov dword [0x4a6554], eax
call esi
push dword [ebp - 0x18]
call fcn.0043633e
mov eax, dword [0x4a6554]
pop ecx
test eax, eax
jne 0x413344
lea ecx, [ebx - 0x10]
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
jmp 0x413439
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UTInitialize
push eax
call esi
push str.UTOptInGet
push dword [0x4a6554]
mov dword [0x4a6558], eax
call esi
push str.UTSetOptIn
push dword [0x4a6554]
mov dword [0x4a655c], eax
call esi
push str.UTStartSession
push dword [0x4a6554]
mov dword [0x4a6560], eax
call esi
push str.UTLogEvent
push dword [0x4a6554]
mov dword [0x4a6564], eax
call esi
push str.UTNewDataGroup
push dword [0x4a6554]
mov dword [0x4a6568], eax
call esi
push str.UTAddToGroup
push dword [0x4a6554]
mov dword [0x4a656c], eax
call esi
push str.UTCloseSession
push dword [0x4a6554]
mov dword [0x4a6570], eax
call esi
lea ecx, [ebx - 0x10]
mov dword [0x4a6574], eax
call fcn.004017c4
lea ecx, [edi - 0x10]
call fcn.004017c4
xor ebx, ebx
cmp dword [0x4a655c], ebx
je 0x413423
cmp dword [0x4a6560], ebx
je 0x413423
cmp dword [0x4a6564], ebx
je 0x413423
cmp dword [0x4a6568], ebx
je 0x413423
cmp dword [0x4a656c], ebx
je 0x413423
cmp dword [0x4a6570], ebx
je 0x413423
cmp dword [0x4a6574], ebx
je 0x413423
mov al, 1
jmp 0x41343b
mov eax, dword [0x4a6554]
cmp eax, ebx
je 0x413433
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a6554], ebx
xor al, al
call fcn.00449f9a
ret
Function at 0x414ff8
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x45ef7d
call fcn.00449ec2
push 0
mov ecx, esi
call fcn.00418f1b
mov eax, esi
call fcn.00401000
test eax, eax
je 0x415102
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x415102
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 0x4150c7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x415102
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 0x415102
push str.SHFileOperation_FO_DELETE__failed:
lea ecx, [ebp - 0x10]
call fcn.0040130b
and dword [ebp - 4], 0
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.0040f821
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x4150cd
call edi
test eax, eax
jne 0x415102
push str.RemoveDirectory___DeleteFile___failed:
lea ecx, [ebp - 0x14]
call fcn.0040130b
push 0x186a0
xor eax, eax
push esi
lea ecx, [ebp - 0x14]
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0040f821
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x415105
xor eax, eax
inc eax
call fcn.00449f9a
ret
Function at 0x41510b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46284b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4a1d50]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
xor esi, esi
push esi
push esi
push 0x8023
mov edi, ecx
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x415170
xor eax, eax
jmp 0x415241
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040130b
push str.AdobeARM
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x244], esi
call fcn.004061c9
add esp, 0xc
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov byte [esp + 0x240], 1
call fcn.00415264
mov edi, eax
cmp edi, esi
jne 0x415227
mov esi, 0x4a6708
mov eax, esi
call fcn.00401bc4
test eax, eax
je 0x415227
mov edi, esi
call fcn.00401b96
test eax, eax
mov eax, str.AdobeReader
jne 0x4151dc
mov eax, str.AdobeAcrobat
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004061c9
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 2
call fcn.004063a1
mov byte [esp + 0x238], 1
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
push dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00415264
mov edi, eax
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, edi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004472d5
mov esp, ebp
pop ebp
ret
Function at 0x4175cb
Capabilities:
Download url
Receive data

Disassembly:
push 0x18
mov eax, 0x462716
call fcn.00449ec2
mov ebx, ecx
mov esi, edx
push str.DownloadFileDirectly...
lea ecx, [ebp - 0x10]
call fcn.0040130b
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], edi
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [ebp - 0x14]
push eax
push str.iForbidURLDownloadToFile
push dword [0x4a65e0]
mov dword [ebp - 0x10], edi
push 0x80000002
mov dword [ebp - 0x14], edi
call fcn.0042ed7d
add esp, 0x10
cmp dword [ebp - 0x14], 1
jne 0x417668
push str.URLDownloadToFile_is_not_allowed
lea ecx, [ebp + 8]
call fcn.0040130b
push edi
lea eax, [ebp + 8]
push eax
push 2
mov dword [ebp - 4], 1
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x4177cd
mov dword [ebp - 0x24], vtable.CCallback.0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [0x4a6aec]
mov dword [ebp - 0x20], eax
lea eax, [esi + 4]
push eax
push ebx
call fcn.004077d4
pop ecx
pop ecx
test al, al
jne 0x4176c1
lea eax, [esi + 0xc]
push eax
push ebx
call fcn.004077d4
pop ecx
pop ecx
test al, al
jne 0x4176c1
lea eax, [esi + 0x1c]
push eax
push ebx
call fcn.004077d4
pop ecx
pop ecx
test al, al
jne 0x4176c1
add esi, 0x28
push esi
push ebx
call fcn.004077d4
pop ecx
pop ecx
test al, al
je 0x4176c8
mov dword [ebp - 0x1c], 0x3c
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ecx
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
jl 0x417719
push str.BB_download_success:
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 1
call fcn.0040130b
push edi
push esi
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040f821
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x417720
mov esi, eax
call fcn.004170f3
cmp dword [0x4a66c8], edi
jne 0x4177ca
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040134f
push str.http:__
push str.https:__
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.0040601e
test eax, eax
je 0x4177bf
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebx]
push edi
push edi
push ebx
push dword [ebp + 8]
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
jl 0x417789
push str.Download_success:
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 1
call fcn.0040130b
mov byte [ebp - 4], 5
jmp 0x4177a1
mov esi, eax
call fcn.004170f3
push str.Download_failed:
lea ecx, [ebp - 0x18]
call fcn.0040130b
mov byte [ebp - 4], 6
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.0040f821
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x10]
call fcn.00449f9a
ret 4
Function at 0x418c88
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462668
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.FindJob
lea ecx, [esp + 0x1c]
call fcn.0040130b
xor esi, esi
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov dword [esp + 0x44], esi
call fcn.0040fcf3
or dword [esp + 0x44], 0xffffffff
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [edi], esi
call fcn.004184c5
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x418e18
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x1c]
mov dword [esp + 0x18], esi
cmp dword [esp + 0x1c], esi
jbe 0x418dfe
xor ebx, ebx
inc ebx
cmp dword [edi], esi
jne 0x418dfe
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x18]
push edx
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x418dec
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x418dec
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
cmp eax, esi
jl 0x418de2
push dword [esp + 0x10]
lea ecx, [esp + 0x28]
call fcn.0040130b
mov dword [esp + 0x38], ebx
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 8]
push dword [eax]
lea ecx, [esp + 0x28]
call fcn.00406240
test eax, eax
jne 0x418dd1
push str.job_found:
lea ecx, [esp + 0x24]
call fcn.0040130b
push esi
push dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x48], 2
call fcn.0040f821
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov dword [edi], ebx
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jb 0x418d30
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b1a3
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x46179d
call fcn.00449ec2
mov esi, str.GlobalARM_Update_Mutex
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 0x41b1df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41b1df
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x41b20e
push str.ARM_update_mutex_created
lea ecx, [ebp - 0x10]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040fcf3
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
call fcn.00449f9a
ret
Function at 0x41d5ff
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x460b40
call fcn.00449ec2
push str.ExecuteRetryInstall...
lea ecx, [ebp - 0x14]
call fcn.0040130b
xor edi, edi
push edi
lea eax, [ebp - 0x14]
push eax
push 2
pop esi
push esi
mov dword [ebp - 4], edi
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
push str.___file__
lea ecx, [ebp - 0x14]
call fcn.0040130b
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
push edi
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0040f821
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov dword [ebp - 0x14], 0xd
call fcn.004366fe
push eax
lea ecx, [ebp - 0x10]
call fcn.00411d53
push 0x5c
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00407707
cmp eax, 0xffffffff
je 0x41d6c0
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.00407796
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004063a1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
push str..exe
mov ecx, ebx
call fcn.0042eb68
pop ecx
test eax, eax
je 0x41d735
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x46d230
cmp dword [ebp - 0x10], edi
je 0x41d6fd
push 5
push edi
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 5
push edi
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call ebx
mov dword [ebp - 0x14], eax
cmp eax, 0x21
jae 0x41d778
push str.ShellExecute_failed
lea ecx, [ebp + 8]
call fcn.0040130b
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push 2
jmp 0x41d794
push str..msi
mov ecx, ebx
call fcn.0042eb68
pop ecx
test eax, eax
je 0x41d77d
mov esi, 0x46d230
cmp dword [ebp - 0x10], edi
je 0x41d770
push 5
push edi
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebx]
call sub.msi.dll_MsiOpenDatabaseW
mov dword [ebp - 0x14], edi
jmp 0x41d7a7
push str.Not_supported_file_type
lea ecx, [ebp + 8]
call fcn.0040130b
push edi
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 5
push esi
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x14]
call fcn.00449f9a
ret 4
Function at 0x41e379
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x4a1d50]
xor eax, esp
mov dword [esp + 0x254], eax
test esi, esi
jne 0x41e39b
push 0xd
jmp 0x41e403
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e401
and dword [esp], 0
push 0x24c
lea eax, [esp + 8]
push 0
push eax
call fcn.00448000
add esp, 0xc
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41e401
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x41e3e8
cmp dword [esp + 0x20], edi
je 0x41e3e8
mov eax, 0x5b6
jmp 0x41e404
push ebx
push esi
call fcn.0041d90f
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffc12
pop ecx
add eax, 0x3ee
jmp 0x41e404
push 2
pop eax
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004472d5
mov esp, ebp
pop ebp
ret
Function at 0x41ea13
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x4646d7
call fcn.00449ec2
push str.InitUpdateFromProductUpdatesTable...
lea ecx, [ebp - 0x1c]
call fcn.0040130b
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
push str.SELECT__FROM__ProductUpdates__WHERE__ProductCode_
lea ecx, [ebp - 0x18]
call fcn.0040130b
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401115
push str._AND__ProductVersion_
lea eax, [ebp - 0x18]
push eax
call fcn.00405f34
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00401115
push 0x4899d8
lea eax, [ebp - 0x18]
push eax
call fcn.00405f34
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 4]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
push eax
call sub.msi.dll_MsiEnumClientsA
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41eb13
push 0x4899dc
lea ecx, [ebp + 0xc]
call fcn.0040130b
mov byte [ebp - 4], 4
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.0040fcf3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x41eaee
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x41eafb
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, 0x3d32
call fcn.00449f9a
ret 8
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
mov dword [ebp + 8], eax
cmp eax, esi
je 0x41eb7d
push 0x4899e8
lea ecx, [ebp + 0xc]
call fcn.0040130b
mov byte [ebp - 4], 5
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.0040fcf3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], esi
je 0x41eb5c
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x41eb69
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, 0x3d32
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, esi
jmp 0x41eb0b
cmp dword [ebp - 0x10], esi
je 0x41eb8a
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
neg eax
sbb eax, eax
inc eax
lea ecx, [ebp + 8]
je 0x41ebd3
push dword [ebp - 0x10]
mov dword [ebp + 8], 3
push ebx
call fcn.0041ee54
mov edi, eax
cmp dword [ebp - 0x10], esi
je 0x41ebc2
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], esi
je 0x41ebcf
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
jmp 0x41eb6e
push 0x4899f0
call fcn.0040130b
push esi
lea eax, [ebp + 8]
push eax
push edi
mov byte [ebp - 4], 6
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
jmp 0x41eb44
Function at 0x4225b5
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x461e9d
call fcn.00449ec2
push 0x4a67d8
lea ecx, [ebp - 0x1c]
call fcn.0040134f
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.0040130b
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x1c]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x18]
push ebx
call fcn.00401175
push 0x4899d8
lea eax, [ebp - 0x18]
push eax
call fcn.00405f34
cmp dword [ebp - 0x10], edi
je 0x422618
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 0x422699
push 0x4899dc
lea ecx, [ebp + 8]
call fcn.0040130b
mov byte [ebp - 4], 4
mov esi, 0x3d32
push esi
lea eax, [ebp + 8]
push eax
push 1
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x14], edi
je 0x42267a
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x422687
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov eax, esi
call fcn.00449f9a
ret 8
push edi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
cmp eax, edi
je 0x4226b9
push 0x4899e8
lea ecx, [ebp + 8]
call fcn.0040130b
mov byte [ebp - 4], 5
jmp 0x422643
cmp dword [ebp - 0x14], edi
je 0x4226c6
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 0x4226e9
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x14]
call fcn.00433e0c
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x14], edi
je 0x422701
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x42270e
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor esi, esi
jmp 0x422687