joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x437f58
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0xc]
push str.CheckMutex
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x1c], edi
cmp dword [esi], edi
jne 0x401269
mov ecx, dword [esp + 0x24]
push ecx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi], eax
je 0x401269
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40125e
cmp eax, 5
je 0x40125e
mov edi, 1
jmp 0x401269
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
push edi
push str.return_BOOL__d__n
lea eax, [esp + 0x10]
push 2
push eax
call fcn.00404dc0
add esp, 0x10
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 8]
call fcn.00405a70
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x18
ret

Function at 0x401690
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esp + 0x18]
push str.CManinstApp::InitInstance
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x28], 0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00415fa2
call fcn.00414eec
call fcn.004157f0
mov eax, dword [eax + 0xc]
push 0x64
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x104
lea edi, [esi + 0xb8]
push edi
push 0
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.0042338a
add esp, 8
push esi
mov word [eax], 0
call fcn.004017a0
mov ecx, esi
call fcn.00401ea0
test eax, eax
je 0x401772
mov eax, dword [esi + 0xa8]
test eax, 0x10000
mov ecx, esi
je 0x401762
call fcn.004029f0
jmp 0x401772
test al, 0x10
je 0x40176d
call fcn.00402fb0
jmp 0x401772
call fcn.00402c10
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00405a70
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404629
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404664
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404660
lea ebx, [ebx]
cmp esi, eax
jae 0x404664
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404650
cmp esi, eax
jb 0x40466a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404dc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
cmp eax, 6
ja case.default.0x404e09
movzx eax, byte [eax + 0x404f14]
jmp dword [eax*4 + 0x404f0c]
cmp dword [0x4519cc], esi
je case.default.0x404e09
jmp 0x404e23
cmp dword [0x4519cc], 2
jne case.default.0x404e09
mov edi, 1
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x404e30
jmp dword [eax*4 + 0x404f1c]
mov ecx, dword [0x44e978]
and ecx, 4
cmp cl, 4
jmp 0x404e5d
mov eax, dword [0x44e978]
and eax, 2
cmp al, 2
jmp 0x404e5d
mov ecx, dword [0x44e978]
and ecx, 1
cmp cl, 1
jne case.default.0x404e30
mov ebx, 1
cmp edi, esi
jne 0x404e7d
cmp ebx, esi
jne 0x404e7d
mov dword [ebp - 0x18], esi
push 0x4472d0
lea edx, [ebp - 0x18]
push edx
call fcn.00426b1b
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x404ed9
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push edx
lea edx, [ebp - 0x14]
call fcn.00404f30
mov esi, eax
test esi, esi
je 0x404ed4
test edi, edi
je 0x404ebd
cmp dword [0x4519d4], 0
je 0x404eb6
mov ecx, dword [ebp - 0x14]
push ecx
push esi
call fcn.00405320
jmp 0x404ebd
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x404ecb
push esi
mov edx, dword [ebp + 0xc]
push edx
call fcn.004058c0
push esi
call fcn.00414d4a
add esp, 4
mov edx, dword [ebp + 0xc]
xor esi, esi
cmp edx, 2
jne 0x404ee4
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405760
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x44cc80]
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 dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x6c], 1
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 0x104
mov ecx, dword [str.Canon]
mov dword [ebp - 0x64], ecx
mov edx, dword [0x43fe04]
mov dword [ebp - 0x60], edx
mov ecx, dword [0x43fe08]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov ecx, 8
mov esi, str.ManualInstaller
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x68]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405817
mov dword [ebp - 0x7c], 0x80004005
push 0x4472d0
lea eax, [ebp - 0x7c]
push eax
call fcn.00426b1b
lea ecx, [ebp - 0x70]
push ecx
push ebx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x40583f
mov dword [ebp - 0x78], 0x80004005
push 0x4472d0
lea eax, [ebp - 0x78]
push eax
call fcn.00426b1b
xor esi, esi
mov dword [ebp - 0x74], esi
cmp esi, 2
jge 0x405874
lea ecx, [esi + esi*4]
lea edx, [ebp + ecx*8 - 0x64]
push edx
push ebx
push 0x43fe0c
mov eax, 0x104
mov edi, ebx
call fcn.004049d0
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esi, 1
jmp 0x405841
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x405889
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
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.004237ad
mov esp, ebp
pop ebp
ret
Function at 0x4058c0
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437c80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov dword [ebp - 4], esi
push str.ManualInstaller
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x405927
mov dword [ebp - 0x24], 0x80004005
push 0x4472d0
lea eax, [ebp - 0x24]
push eax
call fcn.00426b1b
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x405972
lea edx, [ebp - 0x18]
push edx
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405972
mov dword [ebp - 0x28], 0x80004005
push 0x4472d0
lea eax, [ebp - 0x28]
push eax
call fcn.00426b1b
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push esi
push 1
mov eax, dword [ebp - 0x18]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414d4f
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x4059b3
mov dword [ebp - 0x2c], 0x80004005
push 0x4472d0
lea edx, [ebp - 0x2c]
push edx
call fcn.00426b1b
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x18]
push edx
call edi
mov esi, dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4059d1
jmp dword [eax*4 + 0x405a60]
mov ebx, 4
jmp case.default.0x4059d1
mov ebx, 2
jmp case.default.0x4059d1
mov ebx, 1
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 1
push esi
push 0x99999999
push 0
push ebx
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 4], 0xffffffff
jmp 0x405a21
test esi, esi
je 0x405a2c
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x405a3c
push eax
call fcn.00414d4a
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x405a4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437de0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx + 4], 1
mov dword [ebx], edi
cmp dword [0x4519d0], edi
jne 0x405b49
call fcn.00405ce0
cmp dword [0x4519cc], edi
jne 0x405b59
cmp dword [0x44e978], edi
je 0x405bc4
push 0x800
call fcn.00414d4f
add esp, 4
mov dword [ebx], eax
cmp eax, edi
je 0x405bbc
push 0x800
push edi
push eax
call fcn.004250c0
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, 0x400
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov edi, edi
cmp edx, edi
je 0x405bb3
movzx esi, word [ecx]
cmp si, di
je 0x405bb9
mov word [eax], si
add eax, 2
mov dword [ebp - 0x14], eax
add ecx, 2
mov dword [ebp - 0x18], ecx
sub edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x405b90
sub eax, 2
mov dword [ebp - 0x14], eax
mov word [eax], di
cmp dword [0x4519cc], edi
jne 0x405bd5
mov dword [ebp - 0x20], edi
push 0x44729c
lea eax, [ebp - 0x20]
push eax
call fcn.00426b1b
cmp dword [ebp + 0x10], edi
jne 0x405c05
push 0x43fa9c
push 1
push ebx
call fcn.00404dc0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800
call fcn.00414d4f
add esp, 4
mov edi, eax
test edi, edi
je 0x405c5c
lea ecx, [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, 0x400
call fcn.004052a0
test eax, eax
jl 0x405c38
push edi
push 1
push ebx
call fcn.00404dc0
add esp, 0xc
push edi
call fcn.00414d4a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.____logging_Error__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ce0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SoftwareCanonMI
mov esi, 1
push 0x80000001
mov dword [0x4519cc], ebx
mov dword [0x44e978], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ec0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x4519cc
push ebx
push ebx
push str.LOG_LEVEL_DEBUG
mov edi, 4
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x405d5a
mov dword [0x4519cc], ebx
jmp 0x405df2
cmp dword [0x4519cc], ebx
je 0x405df2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0x4519d4
push ebx
push ebx
push str.LOG_USEFILE
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405dec
cmp dword [0x4519d4], ebx
je 0x405df2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0x4519d8
push ebx
push ebx
push str.LOG_USEFILE_DIVSIZE
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x405db8
mov dword [0x4519d8], 0x1400000
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x4519dc
push ebx
push ebx
push str.LOG_USEFILE_MAXCOUNT
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x405de4
mov dword [0x4519dc], 0xa
jmp 0x405df2
cmp dword [0x4519dc], ebx
jne 0x405df2
mov dword [0x4519d4], ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0x44e978
push ebx
push ebx
push str.LOG_LEVEL_EVENT
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x405e1c
mov dword [0x44e978], 1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0x4519e4
push ebx
push ebx
push str.LOG_USEMINIDUMP
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x405e9e
cmp dword [0x4519e4], ebx
je 0x405ea4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x4519e8
push ebx
push ebx
push str.LOG_USEMINIDUMP_TYPE
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x405e6a
mov dword [0x4519e8], ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0x4519ec
push ebx
push ebx
push str.LOG_USEMINIDUMP_MAXCOUNT
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x405e96
mov dword [0x4519ec], 0xa
jmp 0x405ea4
cmp dword [0x4519ec], ebx
jne 0x405ea4
mov dword [0x4519e4], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov dword [0x4519d0], 1
pop ebx
add esp, 8
ret
mov dword [0x4519d0], esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x409270
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push ebx
push str.COperateFile::DeleteFile
lea eax, [ebp - 0x28]
push eax
call fcn.00405b00
add esp, 0xc
mov dword [ebp - 4], ebx
mov edi, 0x800000
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x4092d6
mov dword [ebp - 0x18], 0x8080ffff
push 0x44729c
lea ecx, [ebp - 0x18]
push ecx
call fcn.00426b1b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409320
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x409320
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409320
push esi
push 0x8080000e
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00409990
add esp, 0xc
mov dword [ebp - 0x1c], 0x8080ffff
push 0x44729c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00426b1b
mov dword [ebp - 4], ebx
jmp 0x409351
push edi
push str.return_DWORD__d__n
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00404dc0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405a70
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 4
Function at 0x409b40
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x437c50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x44cc80]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp], bx
push 0x206
push ebx
lea eax, [ebp + 2]
push eax
call fcn.004250c0
add esp, 0xc
mov dword [ebp - 4], ebx
push 0x104
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x409c1f
push edi
call fcn.00414d4f
add esp, 4
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x409c1f
push edi
push ebx
push esi
call fcn.004250c0
add esp, 0xc
push esi
push edi
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409c1f
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 0x1c]
movzx ebx, word [edx]
and ebx, 0x3ff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x409c38
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x409c48
push eax
call fcn.00414d4a
add esp, 4
mov ax, bx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004237ad
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x409e20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x438a30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, ecx
push 0
lea eax, [esp + 0x1c]
push str.CBaseAnalyzeIni::Attach
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x2c], 0
test ebp, ebp
mov ebx, 0x80800001
je 0x409f11
call fcn.00409f50
mov eax, ebp
lea edi, [esi + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409e83
sub eax, edx
sar eax, 1
push eax
push ebp
mov ecx, edi
call fcn.00404ad0
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409f11
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x409f11
mov eax, dword [edi]
push 0x5c
push eax
call fcn.0042338a
add esp, 8
test eax, eax
je 0x409f11
sub eax, dword [edi]
sar eax, 1
mov ecx, eax
test ecx, ecx
jle 0x409f11
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
sub eax, ecx
mov ebx, 1
sub eax, ebx
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.004038e0
mov byte [esp + 0x2c], bl
lea ecx, [esi + 0xc]
push eax
call fcn.00404a50
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x34]
call fcn.00405f60
mov dword [esp + 0x34], 0x800000
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x34]
push ebx
push str.return_DWORD__d__n
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00404dc0
add esp, 0x10
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00405a70
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x40a250
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4389ed
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x44cc80]
xor eax, esp
mov dword [esp + 0x810], eax
push ebp
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x824]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x834]
push 0
lea eax, [esp + 0x14]
push str.CBaseAnalyzeIni::GetSectionString
push eax
mov edi, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x82c], 1
push 0x7fe
lea ecx, [esp + 0x22]
push 0
push ecx
mov word [esp + 0x28], 0
call fcn.004250c0
mov edi, dword [edi + 8]
add esp, 0xc
push edi
push 0x400
lea edx, [esp + 0x24]
push edx
push 0x43fa9c
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x1c]
push eax
push str.return_CString__s__n
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00404dc0
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00404c50
mov dword [esp + 0xc], 1
mov byte [esp + 0x82c], 0
lea ecx, [esp + 0x10]
call fcn.00405a70
mov eax, esi
mov ecx, dword [esp + 0x824]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.004237ad
add esp, 0x824
ret 4

Function at 0x40a360
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4380b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0xc]
push str.CBaseAnalyzeIni::GetSectionInt
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.return_int__d__n
lea edx, [esp + 0x10]
push 2
push edx
call fcn.00404dc0
add esp, 0x10
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call fcn.00405a70
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x10

Function at 0x40c040
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4382d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esp + 0x10]
push str.CDlgInstallProgress::OnInitDialog
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x20], 0
mov ecx, esi
call fcn.0040b170
push 0
push 4
push 0
push 0
push esi
push 0x4068a0
call fcn.00417e26
test eax, eax
mov dword [esi + 0x334], eax
je 0x40c0c3
mov dword [eax + 0x28], 0
mov esi, dword [esi + 0x334]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00405a70
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4382d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esp + 0x10]
push str.CDlgUninstallProgress::OnInitDialog
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x20], 0
mov ecx, esi
call fcn.0040b170
push 0
push 4
push 0
push 0
push esi
push 0x407750
call fcn.00417e26
test eax, eax
mov dword [esi + 0x334], eax
je 0x410ed3
mov dword [eax + 0x28], 0
mov esi, dword [esi + 0x334]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00405a70
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret