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

Disassembly:
push 0x18
mov eax, 0x453c16
call fcn.0043dfc3
push 0x45fe80
lea eax, [ebp - 0x1c]
push 0x48e968
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.00408d02
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408d02
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.004025dc
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push dword [ebp - 0x18]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], esi
je 0x40f512
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], esi
seta bl
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
mov al, bl
call fcn.0043e09b
ret
mov bl, 1
jmp 0x40f4ff

Function at 0x40f603
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x457283
call fcn.0043e02c
push 0xf
pop edi
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.00410c54
push dword [ebp + 8]
mov ecx, esi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040f54a
pop ecx
cmp dword [0x48e3a8], ebx
je 0x40f65b
mov eax, dword [0x48e3b0]
cmp eax, ebx
je 0x40f65b
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x40f650
lea ecx, [ebp - 0x28]
push ecx
call eax
pop ecx
mov esi, eax
jmp 0x40f726
or dword [ebp - 0x4c], 0xffffffff
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x30], edi
call fcn.00410c54
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.00410877
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00410b80
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00410c70
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x40f6ac
lea edi, [ebp - 0x44]
cmp edi, ebx
je 0x40f6c2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40f6c6
xor eax, eax
jmp 0x40f6da
lea eax, [esi + esi]
call fcn.004496d0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004108ee
lea ecx, [ebp - 0x50]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f718
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
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 ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00410c70
sub esi, ebx
je 0x40f737
dec esi
je 0x40f732
or esi, 0xffffffff
jmp 0x40f739
xor esi, esi
inc esi
jmp 0x40f739
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00410c70
mov eax, esi
lea esp, [ebp - 0x84]
call fcn.0043e0af
ret
Function at 0x410103
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, 0x454562
call fcn.0043dfc3
xor ebx, ebx
cmp dword [0x48e3a8], ebx
jne 0x4102aa
cmp dword [ebp + 8], ebx
je 0x4102aa
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.0042a898
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 0x41017a
push str.Reader_
jmp 0x41017f
push str.Acrobat_
call fcn.00408e18
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.00408e18
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x4101e0
push edi
push str.Agent
push str.SoftwareAdobeCommonFilesUsage_
call fcn.0042501c
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.0042a88d
mov eax, dword [0x48e3a8]
pop ecx
test eax, eax
jne 0x410207
lea ecx, [ebx - 0x10]
call fcn.004025dc
lea ecx, [edi - 0x10]
call fcn.004025dc
jmp 0x4102fc
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 0x4102e6
cmp dword [0x48e3b4], ebx
je 0x4102e6
cmp dword [0x48e3b8], ebx
je 0x4102e6
cmp dword [0x48e3bc], ebx
je 0x4102e6
cmp dword [0x48e3c0], ebx
je 0x4102e6
cmp dword [0x48e3c4], ebx
je 0x4102e6
cmp dword [0x48e3c8], ebx
je 0x4102e6
mov al, 1
jmp 0x4102fe
mov eax, dword [0x48e3a8]
cmp eax, ebx
je 0x4102f6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x48e3a8], ebx
xor al, al
call fcn.0043e09b
ret
Function at 0x41204a
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x454985
call fcn.0043dfc3
push 0
mov ecx, esi
call fcn.004108c4
mov eax, esi
call fcn.00401000
test eax, eax
je 0x412154
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x412154
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 0x412119
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x412154
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 0x412154
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.0040e8c7
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x41211f
call edi
test eax, eax
jne 0x412154
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.0040e8c7
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x412157
xor eax, eax
inc eax
call fcn.0043e09b
ret

Function at 0x41215d
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x45452a
call fcn.0043e02c
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 0x412197
xor eax, eax
jmp 0x412266
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.00408d02
add esp, 0xc
push esi
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0041226c
mov esi, eax
test esi, esi
jne 0x412248
mov eax, 0x48e90c
call fcn.0040521a
test eax, eax
mov eax, str.AdobeReader
jne 0x4121f9
mov eax, str.AdobeAcrobat
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00408d02
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00408fde
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.0041226c
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.0043e0af
ret
Function at 0x413e5d
Capabilities:
Download url
Receive data

Disassembly:
push 0x14
mov eax, 0x457174
call fcn.0043dfc3
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.0040ed4d
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.004238ac
test eax, eax
je 0x413fec
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.00414c4a
pop ecx
pop ecx
test al, al
jne 0x413eec
add esi, 0x10
push esi
push edi
call fcn.00414c4a
pop ecx
pop ecx
test al, al
je 0x413ef3
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 0x413f38
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.0040e8c7
add esp, 0x10
jmp 0x413fde
cmp dword [0x48e520], ebx
jne 0x413fe9
mov esi, eax
call fcn.00413985
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.00408af7
test eax, eax
je 0x413fde
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 0x413fa8
push str.Download_success:
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 1
call fcn.0040215a
mov byte [ebp - 4], 4
jmp 0x413fc0
mov esi, eax
call fcn.00413985
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.0040e8c7
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.0043e09b
ret 8
Function at 0x413ff4
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x457568
call fcn.0043dfc3
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.0040ed4d
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 0x41414a
push dword [ebp - 0x14]
mov ecx, 0x48e914
call fcn.00416347
mov edi, eax
mov eax, dword [edi]
cmp eax, esi
je 0x41413b
cmp dword [eax + 0x18], esi
jne 0x41413b
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.00408fde
mov ecx, edi
call fcn.0041215d
test eax, eax
je 0x4140eb
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.0040e8c7
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, dword [edi]
mov dword [edi + 0x18], esi
jmp 0x41412a
mov eax, dword [edi]
add eax, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00413e5d
cmp dword [0x48e520], 0
jne 0x414155
test eax, eax
mov eax, dword [edi]
je 0x41419a
mov ebx, dword [eax + 0x14]
mov esi, dword [ebp - 0x10]
call fcn.00418534
mov edi, dword [edi]
test eax, eax
je 0x414164
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 0x414052
xor eax, eax
inc eax
call fcn.0043e09b
ret 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x41414d
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.0040e8c7
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x414155
and dword [eax + 0x18], 0
jmp 0x414155
Function at 0x4167fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4548e2
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.0042ac34
push eax
lea ecx, [esp + 0x18]
call fcn.004104de
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [0x48e540], 2
jne 0x416877
cmp dword [0x48eac0], 0x249f0
jne 0x416877
push 0x48e984
lea ecx, [esp + 0x18]
call fcn.00408fde
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x4168be
push 0x4750a8
lea ecx, [esp + 0x18]
call fcn.00402123
jmp 0x4168be
mov eax, 0x48e9b8
cmp dword [0x48e9ac], ebx
jne 0x416889
mov eax, 0x48e980
push eax
lea ecx, [esp + 0x18]
call fcn.00408fde
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x4168be
mov eax, 0x48e90c
call fcn.0040521a
test eax, eax
mov eax, 0x48e434
jne 0x4168b4
mov eax, 0x48e430
push eax
lea ecx, [esp + 0x18]
call fcn.00408fde
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.00408fde
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 0x4169e9
sub eax, ebx
je 0x416977
dec eax
dec eax
je 0x416969
dec eax
je 0x416962
dec eax
dec eax
je 0x416977
sub eax, 3
je 0x41695b
sub eax, 0x12
je 0x416954
sub eax, 6
lea ecx, [esp + 0x10]
je 0x41694d
push str.All_other_non_caught_scenarios
jmp 0x416972
push str.The_specified_DLL_was_not_found.
jmp 0x416972
push str.A_sharing_violation_occurred.
jmp 0x41696e
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x41696e
push str.The_specified_path_was_not_found.
jmp 0x41696e
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 0x4169e9
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.0040e8c7
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.0040e8c7
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 0x416dd8
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x45625b
call fcn.0043dfc3
mov esi, 0x475480
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 0x416e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416e14
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x416e43
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.0040ed4d
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
call fcn.0043e09b
ret
Function at 0x418534
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 0x4185b8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4185b8
and dword [ebp - 0x258], 0
push 0x24c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0043c590
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4185b8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x41859b
cmp dword [ebp - 0x238], ebx
jne 0x4185b8
push esi
call fcn.00418061
pop ecx
test eax, eax
je 0x4185b8
cmp ebx, 0xffffffff
jne 0x4185b3
mov eax, dword [ebp - 0x238]
jmp 0x4185ba
xor eax, eax
inc eax
jmp 0x4185ba
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b751
leave
ret
Function at 0x41d0a8
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x456abe
call fcn.0043dfc3
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 0x475dc8
lea eax, [ebp - 0x18]
push eax
call fcn.00408a0d
cmp dword [ebp - 0x10], edi
je 0x41d10b
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 0x41d18c
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.0040ed4d
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 0x41d16d
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x41d17a
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [ebx - 0x10]
call fcn.004025dc
mov eax, esi
call fcn.0043e09b
ret 8
push edi
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
cmp eax, edi
je 0x41d1ac
push 0x4760ac
lea ecx, [ebp + 8]
call fcn.0040215a
mov byte [ebp - 4], 5
jmp 0x41d136
cmp dword [ebp - 0x14], edi
je 0x41d1b9
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 0x41d1dc
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x14]
call fcn.00429ad1
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
cmp dword [ebp - 0x14], edi
je 0x41d1f4
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x10], edi
je 0x41d201
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor esi, esi
jmp 0x41d17a
Function at 0x41e98f
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 0x41e9c8
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
cmp eax, ebx
je 0x41e9c8
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x41ea84
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x41ea28
mov eax, dword [ebp - 0x18]
sub eax, ebx
je 0x41ea0c
dec eax
je 0x41e9f3
dec eax
je 0x41ea0c
dec eax
jne 0x41ea84
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 0x41ea23
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 0x41ea84
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x41ea66
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 0x41ea54
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x41ea84
add eax, 0xffffffe2
jmp 0x41ea81
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