joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push str.Name
lea ecx, [ebp - 0x2c]
mov ebx, edx
push ecx
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
call fcn.00419e20
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00405410
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x403aee
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042c048
add esp, 4
push str.Value
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00419e20
mov esi, dword [ebp - 0x4c]
add esi, 0x1c
mov edi, eax
mov dword [ebp - 4], 1
call fcn.00405410
or ebx, 0xffffffff
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], edi
jb 0x403b2d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042c048
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x403b36
mov eax, dword [esi]
jmp 0x403b38
mov eax, esi
mov edx, dword [ebp - 0x50]
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404550
mov edi, eax
mov dword [ebp - 4], 2
call fcn.00405410
mov dword [ebp - 4], ebx
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x403b6c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042c048
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x403b75
mov eax, dword [esi]
jmp 0x403b77
mov eax, esi
push 6
push str.REG:
push eax
call fcn.0042cc5e
add esp, 0xc
test eax, eax
jne 0x403bc6
cmp dword [esi + 0x14], ebx
jb 0x403b94
mov eax, dword [esi]
jmp 0x403b96
mov eax, esi
lea edx, [ebp - 0x48]
lea ecx, [eax + 0xc]
push edx
call fcn.00403c50
add esp, 4
mov edi, eax
mov dword [ebp - 4], 3
call fcn.00405410
cmp dword [ebp - 0x34], ebx
jb 0x403c25
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042c048
add esp, 4
jmp 0x403c25
cmp dword [esi + 0x14], ebx
jb 0x403bcf
mov eax, dword [esi]
jmp 0x403bd1
mov eax, esi
push 6
push str.FIL:
push eax
call fcn.0042cc5e
add esp, 0xc
test eax, eax
jne 0x403c25
cmp dword [esi + 0x14], ebx
jb 0x403bee
mov eax, dword [esi]
jmp 0x403bf0
mov eax, esi
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 0x4462c0
jne 0x403c08
mov eax, 0x446828
mov ecx, eax
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x403c10
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00402c20
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [ecx + 0x2c], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret 4
Function at 0x405f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x446c4c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405fef
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, eax
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406020
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x4549c8
call fcn.00402c20
cmp dword [0x4549dc], 8
mov eax, dword [0x4549c8]
jae 0x40604a
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042cbdd
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x446828
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
pop esi
call fcn.0042c039
mov esp, ebp
pop ebp
ret 4
Function at 0x4060b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.2.5.48
push str.Core_version:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov edi, dword [0x455ca8]
add esp, 0xc
push str.IIF_SETUPVERSION
add edi, 4
call fcn.00403fe0
push eax
push str.Setup_version:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_line:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00430c00
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x12c], 1
mov eax, str.64_bit
je 0x406187
mov eax, str.32_bit
movzx ecx, byte [ebp - 0xe]
mov edx, dword [ebp - 0x120]
push eax
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x124]
push ecx
push edx
push eax
push str.OS_data:__d__d__d__d__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.System_up_time:__d_sec
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov eax, dword [0x455ca8]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4061f1
mov eax, dword [eax]
push eax
call fcn.00405f90
add esp, 4
test al, al
mov eax, 0x446858
jne 0x406208
mov eax, 0x446860
push eax
push str.Reboot_pending:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x406230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
jb 0x406250
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406370
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x4a]
movzx edx, word [ebp - 0x4c]
movzx eax, word [ebp - 0x4e]
push esi
push ecx
movzx ecx, word [ebp - 0x50]
push edx
movzx edx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x56]
push ecx
movzx ecx, word [ebp - 0x58]
push edx
push eax
push ecx
lea edx, [ebp - 0x48]
push str._d:_02d:_02d__02d:_02d:_02d:_03d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x48]
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062c7
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.0042ce87
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b2bc
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push edi
call fcn.0042d012
push 0x446e0c
push esi
push edi
call fcn.0042d02f
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
jmp 0x406340
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406340
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0x5c]
push edx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0042c048
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c039
mov esp, ebp
pop ebp
ret

Function at 0x406390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 1
push 0
push 0
push 0x446c4c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4063e5
mov edx, dword [ebp + 8]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
mov eax, dword [ebp - 4]
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x407500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
push str.IIF_CACHELOC
lea edi, [edi + 4]
call fcn.00403fe0
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042cbdd
add esp, 0xc
push str.Prop.data
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Deleting_private_properties_file
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.0042c039
mov esp, ebp
pop ebp
ret 4
Function at 0x40e910
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fb7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042b3c4
push 4
mov dword [ebp - 4], 0
call fcn.0042c053
mov edi, eax
add esp, 4
test edi, edi
je 0x40e98c
call fcn.0042b816
mov dword [edi], eax
call fcn.0042b5d5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042b50a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40e982
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042b532
jmp 0x40e98e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440a59
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2c], esi
mov word [esi], cx
push 9
mov dword [ebp - 4], eax
movzx eax, word [edi + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x24]
push edx
push 0x59
push eax
mov dword [ebp - 0x28], 1
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x4127e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
call fcn.00402c20
push 1
mov eax, 0x4496e4
mov ecx, esi
call fcn.004057c0
movzx edx, word [edi + 2]
push 9
lea ecx, [ebp - 0x24]
push ecx
push 0x5a
push edx
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x412820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412820
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
call fcn.004057c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x412a40
Capabilities:
Delete file
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov byte [esp + 0x10], 1
test di, di
jne 0x412ab3
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x412a8f
mov edx, 0x205
cmp ax, dx
je 0x412a8f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x412a95
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
movzx eax, di
push eax
push str.Current_UI_language:__04X
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
mov eax, edi
and eax, 0x3ff
cmp ax, 3
je 0x412acc
cmp ax, 0x2d
je 0x412acc
cmp ax, 0x56
jne 0x412ad1
mov edi, 0xc0a
lea ecx, [esp + 0x220]
push ecx
push 0x104
mov word [esp + 0x10], di
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 4]
push edi
push 0
push 0x449748
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push str.Language_folder:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0xa
lea edx, [esp + 0x10]
mov ecx, 0x412550
call fcn.00419030
add esp, 8
test eax, eax
jne 0x412b6c
movzx eax, word [esp + 0x12]
push eax
push str.Loading_language__04X
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov eax, dword [esp + 0x1e]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call fcn.00412b80
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret

Function at 0x412b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x61c]
push 0x104
push ecx
mov word [esi + 2], ax
call fcn.0042cbdd
add esp, 0xc
push edi
lea ebx, [esi + 0x20c]
push 0x104
push ebx
call fcn.0042cbdd
add esp, 0xc
push str.IntelCommon.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 8]
push edx
lea edi, [esi + 0x414]
push 0x104
push edi
call fcn.0042cbdd
add esp, 0xc
push str.resource.dll.mui
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412bf9
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [esi], 0
je 0x412c16
push ebx
push str.Loading_common_language_resource___s_
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
push 2
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov dword [esi + 0x824], eax
test eax, eax
jne 0x412c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop ecx
pop ebp
ret 4
cmp byte [esi], 0
je 0x412c57
push edi
push str.Loading_language_resource___s_
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
push 2
push 0
push edi
call ebx
mov dword [esi + 0x828], eax
test eax, eax
je 0x412c2d
pop edi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x414670
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44116e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4533e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, 7
xor esi, esi
xor edx, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], esi
mov word [edi], dx
mov dword [ebp - 4], esi
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], esi
mov word [edi + 0x1c], dx
mov dword [edi + 0x50], ecx
xor ecx, ecx
mov dword [edi + 0x4c], esi
mov word [edi + 0x3c], cx
mov ecx, eax
lea edx, [ecx + 2]
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], edx
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x4146d2
sub ecx, dword [ebp + 0xc]
mov esi, edi
sar ecx, 1
push ecx
call fcn.00402c20
mov edx, dword [ebp + 0x10]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4146f2
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [edi + 0x1c]
call fcn.00402c20
push 0
mov eax, 0x446828
lea esi, [edi + 0x3c]
mov dword [edi + 0x38], 0
call fcn.00402c20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414d30
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push str.____Caching_MSI
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push esi
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x414e02
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414d85
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
lea ecx, [ebp - 0x260]
push 0x104
push ecx
call fcn.0042cbdd
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.______Copying_to_cache
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
push 1
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.______Adding_to_source_list
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.msi.dll_MsiIsProductElevatedW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x415870
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442896
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], esi
mov word [ebp - 0x288], cx
lea edi, [ebx + 0xc4]
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x4158d4
mov eax, dword [edi]
jmp 0x4158d6
mov eax, edi
lea edx, [ebp - 0x64]
push edx
push esi
push esi
push eax
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
cmp eax, esi
jne 0x415a1d
cmp dword [ebx + 0x30], 8
jb 0x4158f6
mov esi, dword [ebx + 0x1c]
jmp 0x4158f9
lea esi, [ebx + 0x1c]
mov eax, dword [ebp - 0x2a8]
mov edi, dword [eax + 4]
push str.IIF_CACHELOC
call fcn.00403fe0
push eax
lea ecx, [ebp - 0x26c]
push 0x104
push ecx
call fcn.0042cbdd
add esp, 0xc
push esi
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.____Removing_from_cache
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2a8]
mov edx, dword [edx + 4]
push 1
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebx + 0x58]
call fcn.00404c30
mov edi, eax
lea esi, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.00405410
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x290], esi
jb 0x41599e
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.0042c048
add esp, 4
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], esi
jae 0x4159b2
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
push ecx
push str.__Uninstalling_product_code__s__Properties__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov edx, dword [ebp - 0x2a8]
add esp, 0x10
mov ecx, ebx
call fcn.00414e10
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], esi
jae 0x4159ef
lea eax, [ebp - 0x288]
push eax
push 2
push 0
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.msi.dll_MsiGetFileVersionA]
mov edi, eax
test edi, edi
je 0x415a3f
cmp edi, 0xbc2
je 0x415a3f
cmp byte [ebx + 0x120], 0
je 0x415a3f
push edi
push str.____Result_code_was__d_but_ignore_error_is_set
jmp 0x415a2b
cmp dword [edi + 0x14], 8
jb 0x415a25
mov edi, dword [edi]
push edi
push str.____Upgrade_code__s_is_not_installed
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x274], 8
jb 0x415a57
mov eax, dword [ebp - 0x288]
push eax
call fcn.0042c048
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x4179b0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x449748
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417a35
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00402c20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042c039
mov esp, ebp
pop ebp
ret

Function at 0x417a70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
lea edx, [ebp - 0x58]
push edx
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x417b9d
push ebx
push edi
call fcn.0042b2bc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417b87
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x447444
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b06
mov esi, dword [ebp - 0x50]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00402c20
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b50
mov esi, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00402c20
push ebx
call fcn.0042c048
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c039
mov esp, ebp
pop ebp
ret