joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41de00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
or ebx, 0xffffffff
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [0x457c94], eax
mov dword [0x457c90], eax
mov dword [0x457c80], ebx
mov dword [0x457c84], ebx
mov dword [0x457c88], ebx
mov dword [0x457c8c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41dfa6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41dfc1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [0x457c94], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x457c90], eax
lea eax, [esp + 0x230]
push eax
push ebx
push 0x41db90
push 0x41dbe0
push 0x41db60
push 0x41db10
push 0x41dae0
push 0x41dad0
push 0x41dac0
call dword [sym.imp.Cabinet.dll_FDICreate]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x41df85
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
mov dword [esp + 0x22c], ecx
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov dword [esp + 0x238], edx
call fcn.0042d2d5
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0
push 0x41dc00
push 0
push 0x448bb8
push 0x448bb8
push esi
call dword [sym.imp.Cabinet.dll_FDICopy]
add esp, 0x1c
test eax, eax
jne 0x41df60
mov edi, dword [esp + 0x230]
push esi
add edi, 0xb000
call dword [sym.imp.Cabinet.dll_FDIDestroy]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
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 + 0x230]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x230]
add eax, 0xb000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x421650
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441148
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4553d4]
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, ecx
xor eax, eax
xor ecx, ecx
mov edi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], eax
push 0xb
mov eax, str.GlobalIIF_
lea esi, [ebp - 0x2c]
call fcn.00404910
mov eax, edi
lea edx, [eax + 2]
jmp 0x4216b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4216b0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x2c]
call fcn.0040f490
mov eax, dword [ebx]
test eax, eax
je 0x4216dd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebx], 0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4216e9
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
test eax, eax
jne 0x421754
call edi
mov esi, eax
cmp esi, 2
jne 0x42173a
push str.Mutex_with_given_name_doesnt_exist._Creating_new_one._n
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 8
jae 0x42172f
lea eax, [ebp - 0x2c]
push eax
call fcn.00421800
mov dword [ebp - 0x30], eax
jmp 0x42176b
push esi
push str.Error_opening_mutex:__lu_n
push 0x4569dc
mov ecx, 0x447290
call fcn.00404ce0
add esp, 0xc
jmp 0x42176e
push str.Opened_existing_mutex_n
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4217c4
push 0x7d0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4217a4
push str.Obtained_mutex_succesfully.
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
mov dword [ebp - 0x30], 0
jmp 0x4217c1
push esi
push str.GetMutex:_wait_unsuccseffull___lu_
push 0x4569dc
mov ecx, 0x447290
call fcn.00404ce0
add esp, 0xc
call edi
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 8
jb 0x4217d6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042c691
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.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x4223a0
Capabilities:
Get graphical window text

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

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44245b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov dword [ebp - 4], ebx
mov ecx, dword [ecx + 4]
push ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
call dword [sym.imp.USER32.dll_GetParent]
lea edx, [ebp - 0x238]
push edx
push ebx
push ebx
push 0x11
push ebx
mov dword [ebp - 0x258], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
push ecx
mov ecx, 0x208a
mov edx, 0x457d28
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], 0x41
call fcn.00418a80
cmp dword [ebp - 0x220], 8
jb 0x422d66
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x24c], edx
jmp 0x422d72
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24c], eax
mov edi, dword [0x457d08]
push esi
add edi, 4
mov dword [ebp - 0x244], 0x421c10
call fcn.004149c0
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0042d2d5
add esp, 0xc
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x218]
push eax
mov dword [ebp - 0x240], edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
je 0x422de4
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [0x457d08]
lea edx, [ebp - 0x218]
push edx
add ecx, 4
mov ebx, esi
call fcn.00414ab0
mov bl, 1
cmp dword [ebp - 0x220], 8
jb 0x422dfc
mov eax, dword [ebp - 0x234]
push eax
call fcn.0042c691
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x4230f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4419f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4553d4]
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]
sub eax, 2
mov esi, ecx
jne 0x42320b
lea ecx, [esi + 0x74]
lea edi, [eax + 6]
mov eax, dword [ecx + 0x10]
push str.LAUNCH
call fcn.00411440
test eax, eax
jne 0x42320b
lea eax, [esi + 0x3c]
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x423153
mov eax, dword [eax]
mov edi, dword [0x457d08]
add edi, 4
call fcn.00414a10
test al, al
je 0x42320b
cmp dword [esi + 0xa8], ebx
lea eax, [esi + 0x94]
jb 0x423179
mov eax, dword [eax]
push eax
mov eax, dword [0x457d08]
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.004151c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x42319d
lea eax, [ebp - 0x2c]
push eax
push str.__Launching:__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jae 0x4231c0
lea eax, [ebp - 0x2c]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4231fa
test eax, eax
jne 0x4231e2
mov eax, 0xe
push eax
push str.__Launch_error_0x_X
push 0x4569dc
mov ecx, 0x447a28
call fcn.00404ce0
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jb 0x42320b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042c691
add esp, 4
xor eax, eax
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.0042c682
mov esp, ebp
pop ebp
ret 4

Function at 0x423410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x200
push esi
mov esi, ecx
jne 0x423484
mov eax, dword [esi + 4]
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
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.0042bb49
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
push edi
push ebx
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
add esi, 0x3c
cmp dword [esi + 0x14], 8
jb 0x423465
mov esi, dword [esi]
mov ecx, dword [0x457d08]
push ebx
add ecx, 4
mov ebx, esi
call fcn.00414ab0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042db19
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x423d00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4419c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4553d4]
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, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xfffffffe
je 0x423d3e
cmp ecx, 0xfffffffc
jne 0x423e2b
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], ecx
lea ebx, [ecx + 8]
cmp dword [eax + 0xa4], ecx
je 0x423da1
add eax, 0x94
cmp dword [eax + 0x14], ebx
jb 0x423d6a
mov eax, dword [eax]
push eax
mov eax, dword [0x457d08]
add eax, 4
push eax
lea ecx, [ebp - 0x48]
call fcn.004151c0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403530
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x423dd8
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042c691
add esp, 4
jmp 0x423dd8
add eax, 0x3c
cmp dword [eax + 0x14], ebx
jb 0x423dab
mov eax, dword [eax]
mov edi, dword [0x457d08]
push eax
add edi, 4
call fcn.004149c0
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x423dc0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00404910
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x423de3
lea eax, [ebp - 0x2c]
push eax
push str.Link:_Launching__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jae 0x423e06
lea eax, [ebp - 0x2c]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x18], ebx
jb 0x423e2b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042c691
add esp, 4
xor eax, eax
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.0042c682
mov esp, ebp
pop ebp
ret 4
Function at 0x4261e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 4], eax
movzx eax, word [ebp + 8]
push esi
push edi
mov edi, ecx
cmp eax, 0x401
jg 0x4262a8
je 0x42629c
sub eax, 2
je 0x426242
sub eax, 0x3fa
jne 0x4262af
mov esi, dword [edi + 0x54]
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + esi*4 - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
dec esi
call eax
test al, al
je 0x426220
mov ecx, edi
mov dword [edi + 0x54], esi
call fcn.004258e0
jmp 0x426339
mov ecx, dword [edi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x426339
mov ecx, dword [edi + 4]
push 0x1f86
push 2
push 3
push 0x4e20
call fcn.004052f0
add esp, 0x10
cmp eax, 6
jne 0x426339
mov esi, dword [0x457d08]
mov ecx, 0x642
call fcn.0040ca10
push 0x40b
mov esi, edi
call fcn.00405210
jmp 0x426339
mov esi, edi
call fcn.00425a50
jmp 0x426339
cmp eax, 0x40b
je 0x4262d8
mov edi, dword [edi + 0x38]
test edi, edi
je 0x4262c3
cmp dword [ebp + 0xc], edi
jne 0x4262c3
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret 8
cmp byte [edi + 0x5c], 0
jne 0x426322
mov eax, dword [0x457d08]
call fcn.004096d0
test al, al
jne 0x426322
mov ecx, dword [edi + 4]
push 0x1f86
push 2
push 3
push 0x4e20
call fcn.004052f0
add esp, 0x10
cmp eax, 6
jne 0x426339
mov esi, dword [0x457d08]
mov ecx, 0x642
call fcn.0040ca10
mov edx, dword [edi + 4]
push 0
push edx
jmp 0x426328
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov byte [edi + 0xc], 1
mov dword [edi + 0x10], 0x40b
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042c682
mov esp, ebp
pop ebp
ret 8

Function at 0x4280b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44195e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
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 0x428112
sub ecx, dword [ebp + 0xc]
mov esi, edi
sar ecx, 1
push ecx
call fcn.00404910
mov edx, dword [ebp + 0x10]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428132
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [edi + 0x1c]
call fcn.00404910
push 0
mov eax, 0x448704
lea esi, [edi + 0x3c]
mov dword [edi + 0x38], 0
call fcn.00404910
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 0x428770
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push str.____Caching_MSI
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
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 0x428842
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4287c5
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.0042d2d5
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 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
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 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
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.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x4292b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4431d6
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4553d4]
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 0x429314
mov eax, dword [edi]
jmp 0x429316
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 0x42945d
cmp dword [ebx + 0x30], 8
jb 0x429336
mov esi, dword [ebx + 0x1c]
jmp 0x429339
lea esi, [ebx + 0x1c]
mov eax, dword [ebp - 0x2a8]
mov edi, dword [eax + 4]
push str.IIF_CACHELOC
call fcn.004149c0
push eax
lea ecx, [ebp - 0x26c]
push 0x104
push ecx
call fcn.0042d2d5
add esp, 0xc
push esi
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.____Removing_from_cache
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
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.00415880
mov edi, eax
lea esi, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.00403530
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x290], esi
jb 0x4293de
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.0042c691
add esp, 4
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], esi
jae 0x4293f2
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
push ecx
push str.__Uninstalling_product_code__s__Properties__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov edx, dword [ebp - 0x2a8]
add esp, 0x10
mov ecx, ebx
call fcn.00428850
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], esi
jae 0x42942f
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 0x42947f
cmp edi, 0xbc2
je 0x42947f
cmp byte [ebx + 0x120], 0
je 0x42947f
push edi
push str.____Result_code_was__d_but_ignore_error_is_set
jmp 0x42946b
cmp dword [edi + 0x14], 8
jb 0x429465
mov edi, dword [edi]
push edi
push str.____Upgrade_code__s_is_not_installed
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x274], 8
jb 0x429497
mov eax, dword [ebp - 0x288]
push eax
call fcn.0042c691
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.0042c682
mov esp, ebp
pop ebp
ret

Function at 0x42c682
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4553d4]
jne 0x42c68c
repz ret
jmp fcn.00430fe8
Function at 0x4397bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004324ee
and dword [ebp - 0x14], 0
cmp dword [0x457c00], 0
mov dword [ebp - 0x18], eax
jne 0x43986f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x439917
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x446a38
push ebx
call edi
test eax, eax
je 0x439917
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x457c00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x457c04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x457c08], eax
call edi
push eax
call esi
mov dword [0x457c10], eax
test eax, eax
je 0x43986f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x457c0c], eax
mov eax, dword [0x457c0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4398c8
cmp dword [0x457c10], ecx
je 0x4398c8
push eax
call esi
push dword [0x457c10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4398c8
test ebx, ebx
je 0x4398c8
call edi
test eax, eax
je 0x4398bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4398bf
test byte [ebp - 8], 1
jne 0x4398c8
or dword [ebp + 0x10], 0x200000
jmp 0x4398fb
mov eax, dword [0x457c04]
cmp eax, dword [ebp - 0x18]
je 0x4398fb
push eax
call esi
test eax, eax
je 0x4398fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4398fb
mov eax, dword [0x457c08]
cmp eax, dword [ebp - 0x18]
je 0x4398fb
push eax
call esi
test eax, eax
je 0x4398fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x457c00]
call esi
test eax, eax
je 0x439917
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x439919
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c682
leave
ret
Function at 0x402c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ca5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ce6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402ce2
nop word [eax + eax]
cmp esi, edx
jae 0x402ce6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402cd0
cmp esi, edx
jb 0x402ceb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x403060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5adf64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x592b0c
movzx ecx, si
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 1
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], 0
mov dword [edi], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
push esi
push ebx
push dword [ebp - 0x10]
call fcn.00537810
add esp, 0xc
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534ca7
mov esp, ebp
pop ebp
ret