joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420190
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4201e1
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4201f7
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret

Function at 0x420220
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42029d
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x42029d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x4205a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00432fb0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push esi
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42061f
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x42067d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push edi
call fcn.0042e563
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret

Function at 0x4206a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push esi
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4206fd
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042e563
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x42074b
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x42074b
movzx eax, word [esi]
test ax, ax
je 0x42074b
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
lea esp, [esp]
test bl, bl
je 0x420738
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x420720
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x420760
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x20d], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x224], edi
call fcn.0042e563
push str..bak
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0042f219
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push edi
push edi
push 4
push edi
push edi
push SysReAllocString
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42090c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x4208bf
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x20c]
push edx
call ebx
mov ebx, eax
mov dword [ebp - 0x21c], ebx
cmp ebx, 0xffffffff
je 0x4208c9
push 0
push 0
add edi, 0xffd00000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0042d749
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420879
mov edx, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420891
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
jne 0x4208a0
mov ebx, dword [ebp - 0x21c]
cmp dword [ebp - 0x218], 0
ja 0x420843
mov ebx, dword [ebp - 0x214]
push edi
call fcn.0042f799
mov eax, dword [ebp - 0x21c]
add esp, 4
push eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4208cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4208cf
mov ebx, dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20d], 0
je 0x4208f9
test ebx, ebx
jne 0x4208f9
mov ecx, dword [ebp - 0x220]
push 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x422370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4543e4]
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 [0x456cd4], eax
mov dword [0x456cd0], eax
mov dword [0x456cc0], ebx
mov dword [0x456cc4], ebx
mov dword [0x456cc8], ebx
mov dword [0x456ccc], 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 0x422516
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x422531
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [0x456cd4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x456cd0], eax
lea eax, [esp + 0x230]
push eax
push ebx
push 0x422100
push 0x422150
push 0x4220d0
push 0x422080
push 0x422050
push 0x422040
push 0x422030
call dword [sym.imp.Cabinet.dll_FDICreate]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4224f5
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.0042e563
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0
push 0x422170
push 0
push 0x448a84
push 0x448a84
push esi
call dword [sym.imp.Cabinet.dll_FDICopy]
add esp, 0x1c
test eax, eax
jne 0x4224d0
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.0042e4c9
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.0042e4c9
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.0042e4c9
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.0042e4c9
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.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x4245c0
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 0x42463e
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.0042d749
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.0042f799
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 0x424e80
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44361b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4543e4]
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, 0x456d68
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x248], 0x41
call fcn.00413ac0
cmp dword [ebp - 0x220], 8
jb 0x424f66
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x24c], edx
jmp 0x424f72
lea eax, [ebp - 0x234]
mov dword [ebp - 0x24c], eax
mov edi, dword [0x456d48]
push esi
add edi, 8
mov dword [ebp - 0x244], 0x41e1c0
call fcn.00415ca0
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0042e563
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 0x424fe4
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [0x456d48]
lea edx, [ebp - 0x218]
push edx
add ecx, 8
mov ebx, esi
call fcn.00415d90
mov bl, 1
cmp dword [ebp - 0x220], 8
jb 0x424ffc
mov eax, dword [ebp - 0x234]
push eax
call fcn.0042e4d8
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.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x425460
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x200
push esi
mov esi, ecx
jne 0x4254d4
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.0042d749
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 0x4254b5
mov esi, dword [esi]
mov ecx, dword [0x456d48]
push ebx
add ecx, 8
mov ebx, esi
call fcn.00415d90
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f799
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x425e60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442a60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4543e4]
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 0x425e9e
cmp ecx, 0xfffffffc
jne 0x425f8b
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 0x425f01
add eax, 0x94
cmp dword [eax + 0x14], ebx
jb 0x425eca
mov eax, dword [eax]
push eax
mov eax, dword [0x456d48]
add eax, 8
push eax
lea ecx, [ebp - 0x48]
call fcn.004164a0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ede0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x425f38
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042e4d8
add esp, 4
jmp 0x425f38
add eax, 0x3c
cmp dword [eax + 0x14], ebx
jb 0x425f0b
mov eax, dword [eax]
mov edi, dword [0x456d48]
push eax
add edi, ebx
call fcn.00415ca0
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x425f20
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00403f50
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x425f43
lea eax, [ebp - 0x2c]
push eax
push str.Link:_Launching__s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jae 0x425f66
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 0x425f8b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042e4d8
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.0042e4c9
mov esp, ebp
pop ebp
ret 4
Function at 0x4282b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 4], eax
movzx eax, word [ebp + 8]
push esi
push edi
mov edi, ecx
cmp eax, 0x401
jg 0x428378
je 0x42836c
sub eax, 2
je 0x428312
sub eax, 0x3fa
jne 0x42837f
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 0x4282f0
mov ecx, edi
mov dword [edi + 0x54], esi
call fcn.00427a00
jmp 0x428409
mov ecx, dword [edi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x428409
mov ecx, dword [edi + 4]
push 0x1f86
push 2
push 3
push 0x4e20
call fcn.00405770
add esp, 0x10
cmp eax, 6
jne 0x428409
mov esi, dword [0x456d48]
mov ecx, 0x642
call fcn.0040d260
push 0x40b
mov esi, edi
call fcn.00404400
jmp 0x428409
mov esi, edi
call fcn.00427b30
jmp 0x428409
cmp eax, 0x40b
je 0x4283a8
mov edi, dword [edi + 0x38]
test edi, edi
je 0x428393
cmp dword [ebp + 0xc], edi
jne 0x428393
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.0042e4c9
mov esp, ebp
pop ebp
ret 8
cmp byte [edi + 0x5c], 0
jne 0x4283f2
mov eax, dword [0x456d48]
call fcn.0040a020
test al, al
jne 0x4283f2
mov ecx, dword [edi + 4]
push 0x1f86
push 2
push 3
push 0x4e20
call fcn.00405770
add esp, 0x10
cmp eax, 6
jne 0x428409
mov esi, dword [0x456d48]
mov ecx, 0x642
call fcn.0040d260
mov edx, dword [edi + 4]
push 0
push edx
jmp 0x4283f8
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.0042e4c9
mov esp, ebp
pop ebp
ret 8

Function at 0x42a920
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442aae
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4543e4]
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 0x42a982
sub ecx, dword [ebp + 0xc]
mov esi, edi
sar ecx, 1
push ecx
call fcn.00403f50
mov edx, dword [ebp + 0x10]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a9a2
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [edi + 0x1c]
call fcn.00403f50
push 0
mov eax, 0x448720
lea esi, [edi + 0x3c]
mov dword [edi + 0x38], 0
call fcn.00403f50
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 0x42aff0
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push str.____Caching_MSI
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
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 0x42b0c2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b045
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.0042e563
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 0x455a48
mov ecx, 0x448218
call fcn.00407c30
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 0x455a48
mov ecx, 0x448218
call fcn.00407c30
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.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x42b7f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4444e6
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], ecx
mov word [ebp - 0x284], ax
lea esi, [ebx + 0xa8]
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], 8
jb 0x42b853
mov eax, dword [esi]
jmp 0x42b855
mov eax, esi
lea edx, [ebp - 0x60]
push edx
push ecx
push ecx
push eax
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
test eax, eax
jne 0x42b96b
cmp dword [ebx + 0x30], 8
lea esi, [ebx + 0x1c]
jb 0x42b875
mov esi, dword [esi]
mov edi, dword [edi + 4]
push str.IIF_CACHELOC
call fcn.00415ca0
push eax
lea eax, [ebp - 0x268]
push 0x104
push eax
call fcn.0042e563
add esp, 0xc
push esi
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.____Removing_from_cache
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 8
lea edx, [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2a4]
mov edx, dword [edx + 4]
push 1
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebx + 0x58]
call fcn.00416dc0
mov edi, eax
lea esi, [ebp - 0x284]
mov byte [ebp - 4], 1
call fcn.0040ede0
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x28c], esi
jb 0x42b914
mov eax, dword [ebp - 0x2a0]
push eax
call fcn.0042e4d8
add esp, 4
mov eax, dword [ebp - 0x284]
cmp dword [ebp - 0x270], esi
jae 0x42b928
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x60]
push ecx
push str.__Uninstalling_product_code__s__Properties__s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov eax, dword [ebp - 0x284]
add esp, 0x10
cmp dword [ebp - 0x270], esi
jae 0x42b958
lea eax, [ebp - 0x284]
push eax
push 2
push 0
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.msi.dll_MsiGetFileVersionA]
mov esi, eax
jmp 0x42b98d
cmp dword [esi + 0x14], 8
jb 0x42b973
mov esi, dword [esi]
push esi
push str.____Upgrade_code__s_is_not_installed
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x270], 8
jb 0x42b9a5
mov eax, dword [ebp - 0x284]
push eax
call fcn.0042e4d8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret

Function at 0x42e4c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4543e4]
jne 0x42e4d3
repz ret
jmp fcn.0043302a