joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406750
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48676b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x1018]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00461950
mov esi, dword [esi + 0x138]
add esp, 0xc
push str.i18ni18n.ini
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea edx, [esp + 0x810]
push 0
push edx
call fcn.00461950
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x494b44
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x810]
call fcn.00406a00
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.004035c0
mov esi, eax
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406855
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1018]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00461932
mov esp, ebp
pop ebp
ret 4
Function at 0x406880
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x820
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x818], eax
push ebp
push esi
push edi
xor ebp, ebp
push 0x800
lea eax, [esp + 0x24]
push ebp
push eax
mov esi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00461950
mov eax, dword [esi + 0x130]
mov ecx, dword [esi + 0xfc]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push ebp
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x406999
mov esi, dword [esi + 0x134]
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x400
call fcn.00407c20
test eax, eax
jne 0x40698a
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40698a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40698a
mov edx, 0x400
mov eax, ebx
sub esi, ebx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x406952
movzx ecx, word [esi + eax]
cmp cx, bp
je 0x406952
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x406932
jmp 0x406956
cmp edx, ebp
jne 0x406959
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40696d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.00461932
add esp, 0x820
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x406999
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00461932
add esp, 0x820
ret

Function at 0x407bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407bd7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407c08
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407c04
cmp esi, eax
jae 0x407c08
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x407bf4
cmp esi, eax
jb 0x407c0e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x407c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
push eax
push edx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c8e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x407c5f
cmp eax, 2
jne 0x407c7a
mov eax, dword [esp]
test esi, esi
je 0x407c88
test eax, eax
je 0x407c83
test al, 1
jne 0x407c7a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x407c88
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x4092a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x485d28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x44]
mov eax, dword [0x4a97b8]
mov ecx, dword [eax + 0xc]
push 0x4a97b8
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x4092ef
mov eax, 0x80004005
jmp 0x40940a
mov eax, dword [esi]
test eax, eax
je 0x4092fd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], 0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x78]
push esi
push edi
call edx
mov dword [esp + 0x44], eax
test eax, eax
jge 0x409319
jmp 0x40940a
lea edi, [ebp + 8]
call fcn.004091b0
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x409336
push 0x80004003
call fcn.00451100
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x409350
push 0x80004003
call fcn.00451100
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x409367
mov eax, dword [eax]
jmp 0x409369
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4093d6
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00402420
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x409397
push 0x80004003
call fcn.00451100
mov ebx, dword [eax]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x30]
push edx
call ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4093da
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x4093f0
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x4093f4
test edi, edi
jge 0x409408
mov eax, dword [esi]
test eax, eax
je 0x409408
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x4095c0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4874ee
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [edi], vtable.CSetupBaseCall.0
mov eax, dword [0x4a7e58]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a7e58
call edx
add eax, 0x10
mov dword [edi + 4], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x4a7e58]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a7e58
call edx
add eax, 0x10
mov dword [edi + 8], eax
mov eax, 1
mov byte [esp + 0x1c], al
lea esi, [edi + 0x18]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x14], esi
mov dword [esi], vtable.CINIReader.0
call fcn.00418120
mov byte [esp + 0x1c], 2
mov dword [esi + 0x30], vtable.CFileInfo.0
mov eax, dword [0x4a7e58]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a7e58
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
lea eax, [edi + 0x78]
push eax
mov byte [esp + 0x20], 3
call fcn.00412ce0
lea ecx, [edi + 0x94]
push ecx
mov dword [edi + 0x90], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40bbf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00461950
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x28]
call fcn.00465ad0
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40bc8f
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x4c]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40bca8
jb 0x40bc70
cmp eax, dword [esp + 0x10]
ja 0x40bca8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc75
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40bc58
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.00461932
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00461932
mov esp, ebp
pop ebp
ret 8

Function at 0x40bcd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00461950
add esp, 0xc
push 0x400
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.00461932
mov esp, ebp
pop ebp
ret 4
Function at 0x40ece0
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x4a9464], 0
jne 0x40ecf3
push esi
call fcn.00402050
add esp, 4
ret
call fcn.00401f00
test eax, eax
je 0x40ed02
mov eax, 1
ret
test esi, esi
jne 0x40ed09
xor eax, eax
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ecfc
push esi
call fcn.00401f80
mov eax, 1
add esp, 4
ret

Function at 0x40ef50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x485962
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [ebx], vtable.CFileManagerEx.2.0
mov dword [esp + 0x20], 3
mov eax, dword [esi + 0x9c]
xor ebp, ebp
mov dword [esi + 0xb4], 1
cmp eax, ebp
je 0x40efcb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x9c], ebp
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40efeb
mov eax, dword [esi + 0x80]
push eax
call fcn.00419db0
add esp, 4
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x40f00f
mov edi, dword [esi + 0x94]
call fcn.0040d7a0
mov eax, dword [esi + 0x90]
push eax
call fcn.00458da0
add esp, 4
mov eax, dword [esi + 0x84]
push eax
mov dword [esi + 0x90], ebp
mov dword [esi + 0x94], ebp
mov dword [esi + 0x98], ebp
call fcn.00458da0
mov byte [esp + 0x24], 1
mov eax, dword [esi + 0x80]
sub eax, 0x10
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f057
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebx
call fcn.00419940
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40f8c0
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f8f0
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
push eax
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040f920
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40f920
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1024]
mov ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
je 0x40fa4b
xor ebp, ebp
cmp edi, ebp
je 0x40fa4b
cmp ebx, ebp
jle 0x40fa4b
mov eax, ebx
cdq
and edx, 0xfff
add eax, edx
push esi
mov esi, eax
sar esi, 0xc
and ebx, 0x80000fff
jns 0x40f98f
dec ebx
or ebx, 0xfffff000
inc ebx
cmp esi, ebp
mov dword [esp + 0x10], ebp
jle 0x40f9ec
jmp 0x40f9a0
push 0x1000
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00461ec0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40fa1b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f9e1
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebp
add edi, 0x1000
cmp ebp, esi
jl 0x40f9a0
test ebx, ebx
jle 0x40fa44
push ebx
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00461ec0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40fa36
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00461932
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40fa44
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x40fa1d
mov ecx, dword [esp + 0x1018]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00461932
add esp, 0x1010
ret
Function at 0x40fd50
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x2000], eax
xor eax, eax
test ebx, ebx
je 0x40fe45
mov word [ebx], ax
test edi, edi
jne 0x40fd8e
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461932
add esp, 0x2004
ret
push esi
mov esi, 0x494930
mov ecx, dword [esi]
push edi
push ecx
call fcn.004626b1
add esp, 8
test eax, eax
je 0x40fdc7
add esi, 8
cmp esi, str.360DesktopMainWndForMsg
jl 0x40fd94
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461932
add esp, 0x2004
ret
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40fe18
push 0x2000
lea edx, [esp + 8]
push 0
push edx
call fcn.00461950
add esp, 0xc
push 1
push esi
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40fe18
lea eax, [esp + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe00
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x200c]
jl 0x40fe30
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461932
add esp, 0x2004
ret
push eax
lea ecx, [esp + 8]
push ecx
push ebx
call fcn.00462b97
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00461932
add esp, 0x2004
ret

Function at 0x40feb0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
xor eax, eax
push 0x3ffe
mov ebx, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00461950
add esp, 0xc
mov dword [esp + 8], 0
test esi, esi
je 0x40ff95
test edi, edi
je 0x40ff95
lea edx, [esp + 8]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40ff95
cmp eax, 0x3fff
ja 0x40ff95
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ff95
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x494630
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ff95
lea edx, [ebx + ebx]
push edx
push 0
push edi
call fcn.00461950
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
dec ebx
push ebx
push edi
call fcn.004666a1
add esp, 0x28
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.00461932
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00461932
add esp, 0x4010
ret
Function at 0x40ffb0
Capabilities:
Check if file exists
Check os version

Disassembly:
mov eax, 0x2140
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x213c], eax
test esi, esi
jne 0x40ffe3
xor eax, eax
mov ecx, dword [esp + 0x213c]
xor ecx, esp
call fcn.00461932
add esp, 0x2140
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41009e
xor eax, eax
push 0x2000
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x144]
push eax
mov dword [esp + 0x10], 3
call fcn.00461950
push 0x1000
lea ecx, [esp + 0x14c]
push esi
push ecx
call fcn.00462b97
push 0x11c
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00461950
add esp, 0x24
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x24], 6
jb 0x41007f
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp]
lea edx, [esp + 0x13c]
mov eax, 0x614
push ecx
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x213c]
xor ecx, esp
mov eax, 1
call fcn.00461932
add esp, 0x2140
ret

Function at 0x410e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00406a00
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.00410c50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410e7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 4]
test esi, esi
je 0x410e8b
cmp esi, dword [esp + 0x14]
je 0x410e90
call fcn.00461ea8
xor eax, eax
cmp edi, dword [esp + 0x18]
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00406a00
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.00410c50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410f2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
add esi, 4
test edi, edi
je 0x410f40
cmp edi, eax
je 0x410f45
call fcn.00461ea8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x410f5a
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.004112b0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486f78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x4a60f8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41210a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41210a
lea eax, [esp + 0x14]
push eax
mov edi, str.version1.0_encodingutf_16
call fcn.00402330
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
mov dword [esp + 0x6c], 0
call fcn.00402330
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x74], 1
call fcn.00409420
lea edi, [esp + 0x10]
call fcn.004023d0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.004023d0
cmp dword [esp + 0x4c], 0
sete al
test al, al
sete al
test al, al
jne 0x412120
lea ecx, [esp + 0x48]
call fcn.004090e0
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x14]
push edx
mov edi, 0x4959e8
call fcn.00402330
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
lea esi, [esp + 0x3c]
mov byte [esp + 0x6c], 5
call fcn.00408fe0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.004023d0
cmp dword [esp + 0x40], 0
sete al
test al, al
sete al
test al, al
je 0x412183
cmp dword [esp + 0x3c], 0
sete al
test al, al
sete al
test al, al
je 0x412183
mov edx, dword [ebp + 8]
add edx, 8
mov ecx, esi
call fcn.00412300
lea ecx, [esp + 0x14]
push ecx
mov edi, str.Plugin_AfterSetup
call fcn.00402330
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x18]
lea esi, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.00408fe0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xa
call fcn.004023d0
cmp dword [esp + 0x30], 0
sete al
test al, al
sete al
test al, al
je 0x4121e6
cmp dword [esp + 0x2c], 0
sete al
test al, al
sete al
test al, al
je 0x4121e6
mov edx, dword [ebp + 8]
add edx, 0x20
mov ecx, esi
call fcn.00412300
lea eax, [esp + 0x14]
push eax
mov edi, str.Plugin_BeforeUninstall
call fcn.00402330
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov byte [esp + 0x6c], 0xb
call fcn.00408fe0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xd
call fcn.004023d0
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x412249
cmp dword [esp + 0x1c], 0
sete al
test al, al
sete al
test al, al
je 0x412249
mov edx, dword [ebp + 8]
add edx, 0x38
mov ecx, esi
call fcn.00412300
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.004024a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.004024a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.004024a0
lea ecx, [esp + 0x48]
call fcn.004090e0
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8