joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x423e41
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x989680
jbe 0x423e48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [eax + 2]
push esi
push ebx
call fcn.00437647
push ebx
mov esi, eax
push 0
push esi
call fcn.00443550
mov edx, dword [ebp - 4]
add esp, 0x10
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423e80
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00410840
push esi
call fcn.00439ca1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x423ede
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x989680
jbe 0x423f01
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 2]
push edi
push eax
call fcn.00437647
mov edi, eax
lea eax, [esi + 2]
push eax
push 0
push edi
mov dword [ebp - 8], edi
call fcn.00443550
add esp, 0x10
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xfe
jbe 0x423f44
mov esi, 0xfe
jmp 0x423f47
and esi, 0xfffffffe
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x423f95
cmp byte [edi], 0xff
jne 0x423f71
cmp byte [edi + 1], 0xfe
jne 0x423f71
mov edx, dword [ebp + 8]
lea eax, [edi + 2]
push edx
call fcn.00402560
jmp 0x42402b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423f76
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065a0
jmp 0x42402b
cmp byte [edi], 0xef
mov dword [ebp - 4], edi
jne 0x423faf
cmp byte [edi + 1], 0xbb
jne 0x423faf
cmp byte [edi + 2], 0xbf
jne 0x423faf
add edi, 3
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
lea ebx, [esi + 2]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437647
push ebx
mov edi, eax
push 0
push edi
call fcn.00443550
mov eax, dword [ebp - 4]
add esp, 0x10
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424005
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065a0
push edi
call fcn.00439ca1
mov edi, dword [ebp - 8]
add esp, 4
push edi
call fcn.00439ca1
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4244b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x4244e5
push 0x208
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [ebp - 0x210]
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x42450c
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
push edi
call fcn.00437647
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0x4566d8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x214]
mov ebx, dword [eax + 8]
xor edx, edx
xor edi, edi
or edi, dword [eax + 0xc]
push esi
or ebx, edx
call fcn.00439ca1
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x424960
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x41c]
push 0x104
push eax
mov esi, ecx
mov dword [ebp - 0x674], ebx
xor edi, edi
call fcn.004394b3
add esp, 0xc
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
jne 0x4249f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
jmp 0x424a00
mov ecx, 0x4566dc
lea eax, [ebp - 0x640]
jmp 0x424a10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424a36
test dx, dx
je 0x424a32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424a36
add eax, 4
add ecx, 4
test dx, dx
jne 0x424a10
xor eax, eax
jmp 0x424a3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424aef
mov ecx, 0x4566e0
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424a76
test dx, dx
je 0x424a72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424a76
add eax, 4
add ecx, 4
test dx, dx
jne 0x424a50
xor eax, eax
jmp 0x424a7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424aef
mov edx, dword [ebp - 0x678]
push edx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004394b3
add esp, 0xc
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x66c], 0x10
push ebx
lea ecx, [ebp - 0x214]
je 0x424ade
mov eax, dword [ebp - 0x674]
push eax
push ecx
mov ecx, esi
call fcn.00424960
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov edi, eax
push ebx
lea eax, [ebp - 0x214]
push eax
jmp 0x424ae3
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x424b49
test edi, edi
jne 0x424b1b
mov ecx, dword [ebp - 0x670]
lea eax, [ebp - 0x66c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x424a00
cmp edi, 0x12
je 0x424b25
cmp edi, 3
jne 0x424b27
xor edi, edi
mov edx, dword [ebp - 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret 0xc
mov edi, 0x4c7
jmp 0x424b27
Function at 0x424cc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea ecx, [ebp - 0x624]
push 0x104
push ecx
mov dword [ebp - 0x87c], eax
call fcn.004394b3
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push 0x458b04
lea edx, [ebp - 0x624]
push edx
call edi
lea eax, [ebp - 0x874]
push eax
lea ecx, [ebp - 0x624]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x878], esi
cmp esi, 0xffffffff
jne 0x424d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
mov ecx, 0x4566dc
lea eax, [ebp - 0x848]
jmp 0x424d60
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424d86
test dx, dx
je 0x424d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424d86
add eax, 4
add ecx, 4
test dx, dx
jne 0x424d60
xor eax, eax
jmp 0x424d8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424e8b
mov ecx, 0x4566e0
lea eax, [ebp - 0x848]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x424dc6
test dx, dx
je 0x424dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x424dc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x424da0
xor eax, eax
jmp 0x424dcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x424e8b
push ebx
lea edx, [ebp - 0x41c]
push 0x104
push edx
call fcn.004394b3
add esp, 0xc
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call edi
mov edx, dword [ebp - 0x87c]
push edx
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004394b3
add esp, 0xc
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x214]
push edx
call edi
test byte [ebp - 0x874], 0x10
je 0x424e5f
cmp byte [ebp + 0x10], 0
je 0x424e8b
push 0
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.00424cc0
add esp, 0xc
jmp 0x424e7f
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x424e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x424eb0
mov esi, dword [ebp - 0x878]
lea eax, [ebp - 0x874]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x424eb0
xor esi, esi
mov ecx, dword [ebp - 0x878]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x424ed0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x424f02
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x424f60
lea eax, [ebp - 0x210]
push eax
push 0
push 0x45a440
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x424f57
push 0
push 0x4000000
push 2
push 0
push 5
push 0xc0000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x424f57
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00424570
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret

Function at 0x425020
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4250a5
push esi
mov esi, dword [ebp + 8]
push esi
push str.Deleting_file__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
cmp dword [edi + 8], 0
jne 0x42509d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x425094
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
test eax, eax
jne 0x425094
cmp dword [edi + 0x10], eax
je 0x425094
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X._Marking__s_for_deletion_after_reboot
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0x10
call fcn.00424f80
pop ebx
pop esi
xor al, al
pop edi
pop ebp
ret 8
pop esi
xor al, al
pop edi
pop ebp
ret 8
xor al, al
pop edi
pop ebp
ret 8
Function at 0x4250b0
Capabilities:
Check if file exists
Delete directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push str.Deleting_folder__s
push 0x4699dc
xor eax, eax
mov ebx, ecx
xor esi, esi
call fcn.0042c820
add esp, 0xc
cmp dword [ebx + 8], esi
jne 0x4251f6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x425138
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4251e2
cmp eax, 3
je 0x4251e2
cmp dword [ebx + 4], 0
jne 0x425117
cmp eax, 0x91
je 0x425194
cmp esi, 4
je 0x42519b
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 4
jl 0x4250e7
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
xor esi, esi
call ebx
test eax, eax
je 0x4251f6
jmp 0x425150
mov ecx, esi
inc esi
cmp ecx, 4
jge 0x42516a
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
test eax, eax
jne 0x425150
cmp esi, 4
jle 0x4251f6
push edi
push str.Warning:_Folder__s_still_exists_after_delete
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push str.Directory_is_not_empty__stopping_removal.
jmp 0x4251e7
cmp dword [ebx + 0x10], 0
je 0x4251f6
call fcn.00430b40
test al, al
jne 0x4251f6
push 0x5b4
push edi
push str.Marking_folder__s_for_deletion_after_reboot__result0x_X_
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0x10
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov dword [ebx + 0xc], 1
xor al, al
pop ebx
pop ebp
ret 8
push str._folder_already_deleted
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x425920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4518f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x468738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
lea esi, [ebx + 0x44]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x14]
call fcn.004211f0
mov esi, dword [esi + 4]
push esi
call fcn.00438b4b
add esp, 4
cmp dword [ebx + 0x30], 8
jb 0x425989
mov eax, dword [ebx + 0x1c]
push eax
call fcn.00438b4b
add esp, 4
xor eax, eax
lea esi, [ebx + 0xc]
mov dword [ebx + 0x30], 7
mov dword [ebx + 0x2c], 0
mov word [ebx + 0x1c], ax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x10]
call fcn.00403220
mov esi, dword [esi + 4]
push esi
call fcn.00438b4b
add esp, 4
push ebx
mov dword [ebp - 4], 5
call fcn.0041ffe0
mov ecx, dword [ebx]
push ecx
call fcn.00438b4b
add esp, 4
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 0x428ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
mov esi, ecx
call fcn.00443550
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 0x124]
movzx edx, byte [ebp - 0x120]
movzx ecx, byte [ebp - 0xe]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 0x14]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, 0x6000100
jb 0x428b4c
mov byte [ebp - 0x129], 1
cmp eax, 0xffffffff
jbe 0x428b53
mov byte [ebp - 0x129], 0
push str.noinstall
call fcn.00402130
push 0x9cf
test eax, eax
push esi
mov ecx, 0x458
setg bl
call fcn.00433840
push 0x9d0
push esi
mov ecx, 0x456
call fcn.00433840
cmp byte [0x46adb1], 0
je 0x428b94
cmp byte [ebp - 0x129], 0
jne 0x428b98
test bl, bl
je 0x428bd9
push 0x9f5
push esi
mov ecx, 0x3ed
call fcn.00433840
push 0x3ed
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xor eax, eax
cmp byte [0x46adb0], al
push 0
setne al
push eax
push 0xf1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x4291a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push str..idx
push esi
call fcn.00439375
add esp, 8
test eax, eax
je 0x4291d8
push str..sch
push esi
call fcn.00439375
add esp, 8
test eax, eax
jne 0x4291e2
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [edi + 4]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x429f30
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push esi
push 0x429f60
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x429f51
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
ret
Function at 0x42b200
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x435fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x46aee0]
push 0
push 0x435f00
push 0
push 0x9b
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
jmp eax

Function at 0x42b840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4520a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x468738]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
push str.COINSTALL
push str.Reading_action_list_from_resource:__s
push 0x4699dc
xor eax, eax
mov dword [esp + 0x44], edi
call fcn.0042c820
add esp, 0xc
push 0x45dffc
push str.COINSTALL
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42b94e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [edi + 2]
push ebx
mov dword [esp + 0x1c], eax
call fcn.00437647
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.00443550
mov eax, dword [esp + 0x24]
add esp, 0xc
push edi
push eax
push esi
call fcn.0043d470
add esp, 0xc
push 0xa
lea ecx, [esi + 2]
lea ebx, [esp + 0x20]
call fcn.004368d0
add esp, 4
push esi
call fcn.00439ca1
mov ecx, dword [ebp + 8]
add ecx, 0xc7c
add esp, 4
push ecx
mov ecx, ebx
call fcn.00411960
mov edi, eax
test edi, edi
jne 0x42b94a
push str.Error_loading_resource_action_file
push 0x4699dc
lea eax, [edi + 2]
call fcn.0042c820
add esp, 8
mov dword [0x469a00], 0xa006
mov ebx, dword [esp + 0x1c]
test edi, edi
setne al
mov byte [esp + 0x17], al
test ebx, ebx
je 0x42b973
mov edi, dword [esp + 0x20]
mov eax, ebx
call fcn.0040d660
push ebx
call fcn.00438b4b
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bb60
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Cleanup
push str.__s_
push 0x4699dc
xor eax, eax
mov esi, ecx
call fcn.0042c820
mov edi, 1
add dword [0x4699fc], edi
add esp, 0xc
cmp byte [esi + 0xcec], 0
je 0x42bd15
cmp dword [esi + 0xa30], 8
lea eax, [esi + 0xa1c]
jb 0x42bbb9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004394b3
add esp, 0xc
push str.UninstallSetup.exe
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x80
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
push str.Deleting__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
lea esi, [ebp - 0x20c]
call fcn.00424f80
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42bd29
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x42bc40
lea edi, [ebp - 0x20c]
call fcn.00430b40
test al, al
jne 0x42bcfe
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x42bcfe
mov eax, edi
push eax
push str.Deleting__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
lea ecx, [ebp - 0x61c]
push ecx
push 0x104
call esi
lea edx, [ebp - 0x414]
push edx
push 0
push 0x45a440
lea eax, [ebp - 0x61c]
push eax
call ebx
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x414]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42bcd6
push 4
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42bcdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x42bc40
dec dword [0x4699fc]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
push str.Cleanup_is_being_skipped
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
sub dword [0x4699fc], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x42c130
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46adb8]
add eax, 0xcd0
cmp dword [eax + 0x14], 8
push esi
mov esi, ecx
jb 0x42c158
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x39c]
push 0x104
push eax
call fcn.004394b3
add esp, 0xc
push str._version.ini
lea ecx, [ebp - 0x39c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x39c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42c1ec
lea eax, [ebp - 0x39c]
push eax
push 0xc8
lea ecx, [ebp - 0x194]
push ecx
push 0
push str.PackVer
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x194]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c1c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x194]
call fcn.004065a0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004377c1
mov esp, ebp
pop ebp
ret