joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e610
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x66c], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042ffd1
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push str..inf
push eax
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e674
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41e6aa
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x41e82c
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
push ebx
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x61c]
push esi
push eax
call edi
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e6d2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41e708
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x41e82c
xor eax, eax
mov word [ebp + ecx - 0x61c], ax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp - 0x670]
push eax
call edi
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e740
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41e776
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x41e82c
xor eax, eax
mov word [ebp + ecx - 0x414], ax
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x688], eax
mov eax, 0x614
mov word [ebp - 0x680], ax
lea eax, [ebp - 0x690]
push eax
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x68c], 3
call esi
test eax, eax
je 0x41e7b7
jmp 0x41e800
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x68c], 2
mov dword [ebp - 0x688], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x690]
push eax
call esi
pop edi
pop esi
pop ebx
test eax, eax
je 0x41e7f0
push 0x40a
jmp 0x41e805
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push str.Hardware.cpp
push str.SHFileOperation_returned_an_error__Code_is_not_always_a_Win32_code_.
push eax
lea ecx, [ebp - 0x668]
call fcn.00407310
push 0x45d2ac
lea eax, [ebp - 0x668]
push eax
call fcn.00431dcb
call fcn.004314c3
int3
Function at 0x4203a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [0x462128], edi
mov dword [0x462124], edi
mov dword [0x462130], 0xffffffff
mov dword [0x462134], 0xffffffff
mov dword [0x462138], 0xffffffff
mov dword [0x46213c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x420528
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4204f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [0x462128], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x462124], eax
lea eax, [esp + 0x228]
push eax
push 0xffffffffffffffff
push 0x420130
push 0x420180
push 0x420100
push 0x4200b0
push 0x420080
push fcn.00420070
push 0x420060
call dword [sym.imp.Cabinet.dll_FDICreate]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x420507
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x228], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
push 0x4201a0
push edi
push 0x451de0
push 0x451de0
push esi
call dword [sym.imp.Cabinet.dll_FDICopy]
add esp, 0x1c
test eax, eax
jne 0x4204e6
mov edi, dword [esp + 0x228]
add edi, 0xb000
push esi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x228]
add eax, 0xb000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x423e50
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448648
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push 0xb
push str.GlobalIIF_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00404410
cmp word [ebx], si
jne 0x423ead
xor ecx, ecx
jmp 0x423ec1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423eb2
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004031f0
mov eax, dword [edi]
test eax, eax
je 0x423ee6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x423f5c
call ebx
mov esi, eax
cmp esi, 2
jne 0x423f42
push str.Mutex_with_given_name_doesnt_exist._Creating_new_one._n
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, edi
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00424000
mov esi, eax
jmp 0x423f73
push esi
push str.Error_opening_mutex:__lu_n
push 0x451150
push 0x46064c
call fcn.00417ac0
add esp, 0x10
jmp 0x423f73
push str.Opened_existing_mutex_n
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
mov eax, dword [edi]
test eax, eax
je 0x423fc0
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x423fa4
push str.Obtained_mutex_succesfully.
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
xor esi, esi
jmp 0x423fc0
push esi
push str.GetMutex:_wait_unsuccseffull___lu_
push 0x451150
push 0x46064c
call fcn.00417ac0
add esp, 0x10
call ebx
mov esi, eax
cmp dword [ebp - 0x18], 8
jb 0x423fd1
push dword [ebp - 0x2c]
call fcn.00420070
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4
Function at 0x424940
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov esi, eax
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4249c4
push edi
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042effb
add esp, 4
mov esi, eax
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x510
push dword [ebp - 8]
push 0xffffffffffffffff
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
call fcn.00430b42
mov esi, dword [ebp - 4]
add esp, 4
pop edi
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425290
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44883b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x235], al
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
push dword [ecx + 0x1c]
movdqu xmmword [ebp - 0x25c], xmm0
movdqu xmmword [ebp - 0x24c], xmm0
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x23c]
push eax
push 0
push 0
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [ebp - 0x23c]
mov ecx, 0x4621e0
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x234]
push eax
push 0x208a
mov dword [ebp - 0x24c], 0x41
call fcn.00419790
mov ecx, dword [0x462120]
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
push esi
cmovae eax, dword [ebp - 0x234]
lea ecx, [ecx + 4]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x248], 0x424080
call fcn.004146e0
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x4253e6
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [0x462120]
push esi
lea ecx, [eax + 4]
call fcn.00414810
mov al, 1
mov byte [ebp - 0x235], al
jmp 0x4253ec
mov al, byte [ebp - 0x235]
cmp dword [ebp - 0x220], 8
jb 0x425409
push dword [ebp - 0x234]
call fcn.00420070
mov al, byte [ebp - 0x235]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4
Function at 0x425700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448678
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x45f4c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub dword [ebp + 8], 2
jne 0x425830
push 6
lea ecx, [esi + 0x80]
push str.LAUNCH
push dword [ecx + 0x10]
push ecx
call fcn.004080e0
test eax, eax
jne 0x425830
cmp dword [esi + 0x64], 8
lea eax, [esi + 0x50]
jb 0x42576a
mov eax, dword [eax]
mov ecx, dword [0x462120]
push eax
lea ecx, [ecx + 4]
call fcn.00414740
test al, al
je 0x425830
cmp dword [esi + 0xb0], 8
lea eax, [esi + 0x9c]
jb 0x425792
mov eax, dword [eax]
mov ecx, dword [0x462120]
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [ecx + 4]
call fcn.00414d70
mov dword [esp + 0x30], 0
lea eax, [esp + 8]
cmp dword [esp + 0x1c], 8
cmovae eax, dword [esp + 8]
push eax
push str.__Launching:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
lea eax, [esp + 8]
cmp dword [esp + 0x1c], 8
cmovae eax, dword [esp + 8]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x42581d
test eax, eax
mov ecx, 0xe
cmove eax, ecx
push eax
push str.__Launch_error_0x_X
push 0x450cac
push 0x46064c
call fcn.00417ac0
add esp, 0x10
cmp dword [esp + 0x1c], 8
jb 0x425830
push dword [esp + 8]
call fcn.00420070
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4

Function at 0x425a40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x200
push ebx
mov ebx, ecx
jne 0x425aab
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042effb
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebx + 0x64], 8
lea ecx, [ebx + 0x50]
jb 0x425a90
mov ecx, dword [ecx]
push edi
push ecx
mov ecx, dword [0x462120]
lea ecx, [ecx + 4]
call fcn.00414810
push edi
call fcn.00430b42
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x426370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448928
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x45f4c8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp eax, 0xfffffffe
je 0x4263b6
cmp eax, 0xfffffffc
jne 0x4264f5
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov dword [esp + 0x48], eax
cmp dword [ecx + 0xac], eax
je 0x426451
cmp dword [ecx + 0xb0], 8
lea eax, [ecx + 0x9c]
jb 0x4263ea
mov eax, dword [eax]
mov ecx, dword [0x462120]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [ecx + 4]
call fcn.00414d70
mov esi, eax
lea eax, [esp + 8]
cmp eax, esi
je 0x42643c
cmp dword [esp + 0x1c], 8
jb 0x42641b
push dword [esp + 8]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
call fcn.00403f60
cmp dword [esp + 0x34], 8
jb 0x42649a
push dword [esp + 0x20]
call fcn.00420070
add esp, 4
jmp 0x42649a
cmp dword [ecx + 0x64], 8
lea eax, [ecx + 0x50]
jb 0x42645c
mov eax, dword [eax]
mov ecx, dword [0x462120]
push eax
lea ecx, [ecx + 4]
call fcn.004146e0
mov edx, eax
cmp word [edx], 0
jne 0x426477
xor ecx, ecx
jmp 0x42648f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426480
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00404410
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
push str.Link:_Launching__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
lea eax, [esp + 8]
cmp dword [esp + 0x1c], 8
cmovae eax, dword [esp + 8]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1c], 8
jb 0x4264f5
push dword [esp + 8]
call fcn.00420070
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4
Function at 0x426b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4489c8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x45f4c8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
mov dword [esp + 0x90], eax
mov eax, dword [0x462120]
mov dword [esp + 0x28], 0xffff0002
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x38], 0xf000
mov esi, dword [eax + 0x320]
cmp esi, dword [eax + 0x324]
je 0x426cb6
lea ebx, [ecx + 0x9c]
mov dword [esp + 0x10], ebx
lea edi, [esi + 4]
cmp dword [edi], 0
jle 0x426c01
push edi
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.0041a3b0
push dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004085d0
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x426c01
push edi
mov ecx, ebx
call fcn.00419e30
mov eax, dword [eax]
mov dword [esp + 0x24], eax
jmp 0x426c09
mov dword [esp + 0x24], 0
xor eax, eax
cmp byte [edi + 0x65], al
setne al
inc eax
shl eax, 0xc
mov dword [esp + 0x34], eax
cmp dword [edi + 0x30], 8
jb 0x426c24
mov eax, dword [edi + 0x1c]
jmp 0x426c27
lea eax, [edi + 0x1c]
lea ecx, [esp + 0x68]
push ecx
push eax
mov ecx, 0x4621e0
call fcn.00419c10
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0x1132
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x18]
push 2
push 0x1102
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
push esi
call fcn.00419e30
add esi, 0x6c
add edi, 0x6c
mov dword [eax], ebx
mov eax, dword [0x462120]
mov ebx, dword [esp + 0x10]
cmp esi, dword [eax + 0x324]
jne 0x426bb8
cmp dword [esp + 0x7c], 8
jb 0x426cb6
push dword [esp + 0x68]
call fcn.00420070
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x428c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
movzx eax, ax
push esi
mov esi, ecx
cmp eax, 0x401
jg 0x428cc4
je 0x428cb3
sub eax, 2
je 0x428c52
sub eax, 0x3fa
jne 0x428ccb
call fcn.00428020
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x428d42
push 0x1f86
push ecx
mov ecx, dword [esi + 4]
mov edx, 0x4e20
push 2
push 3
call fcn.00405460
add esp, 0x10
cmp eax, 6
jne 0x428d42
mov ecx, dword [0x462120]
push 0x642
call fcn.0040e030
push 0x40b
mov ecx, esi
call fcn.00405240
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00428120
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x40b
je 0x428ce8
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x428cdf
cmp dword [ebp + 0xc], eax
jne 0x428cdf
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x74], 0
jne 0x428d2c
mov ecx, dword [0x462120]
call fcn.0040ac90
test al, al
jne 0x428d2c
push 0x1f86
push ecx
mov ecx, dword [esi + 4]
mov edx, 0x4e20
push 2
push 3
call fcn.00405460
add esp, 0x10
cmp eax, 6
jne 0x428d42
mov ecx, dword [0x462120]
push 0x642
call fcn.0040e030
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0x40b
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
push str.____Caching_MSI
push 0x450cfc
push 0x46064c
mov esi, ecx
call fcn.00417ac0
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push esi
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x42a2bc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a23f
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
lea eax, [ebp - 0x264]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.______Copying_to_cache
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
lea eax, [ebp - 0x264]
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.______Adding_to_source_list
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.msi.dll_MsiIsProductElevatedW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x42af20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x45f4c8]
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 ebx, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
lea esi, [edi + 0xa8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
jb 0x42af82
mov eax, dword [esi]
jmp 0x42af84
mov eax, esi
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push eax
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x42b0ec
cmp dword [edi + 0x2c], 8
lea esi, [edi + 0x18]
jb 0x42afa6
mov esi, dword [esi]
mov ecx, dword [ebx + 4]
push str.IIF_CACHELOC
call fcn.004146e0
push eax
lea eax, [ebp - 0x268]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x268]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.____Removing_from_cache
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx + 4]
lea eax, [ebp - 0x298]
push 1
push eax
lea ecx, [edi + 0x4c]
call fcn.00415460
mov esi, eax
lea eax, [ebp - 0x280]
cmp eax, esi
je 0x42b05a
cmp dword [ebp - 0x26c], 8
jb 0x42b031
push dword [ebp - 0x280]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [ebp - 0x26c], 7
push esi
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
call fcn.00403f60
cmp dword [ebp - 0x284], 8
jb 0x42b071
push dword [ebp - 0x298]
call fcn.00420070
add esp, 4
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
lea eax, [ebp - 0x60]
push eax
push str.__Uninstalling_product_code__s__Properties__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x14
mov edx, ebx
mov ecx, edi
call fcn.0042a2d0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
push 2
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.msi.dll_MsiGetFileVersionA]
mov esi, eax
test esi, esi
je 0x42b10e
cmp esi, 0xbc2
je 0x42b10e
cmp byte [edi + 0xf8], 0
je 0x42b10e
push esi
push str.____Result_code_was__d_but_ignore_error_is_set
jmp 0x42b0fa
cmp dword [esi + 0x14], 8
jb 0x42b0f4
mov esi, dword [esi]
push esi
push str.____Upgrade_code__s_is_not_installed
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x26c], 8
jb 0x42b125
push dword [ebp - 0x280]
call fcn.00420070
add esp, 4
mov eax, esi
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.0042f51f
mov esp, ebp
pop ebp
ret