joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40baf1
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40bb38
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40bb31
cmp dword [esp + 4], 0x1b
jne 0x40bb18
push 0
push 2
jmp 0x40bb23
cmp dword [esp + 4], 0xd
jne 0x40bb31
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x344], 0
ret 4

Function at 0x40c142
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea esi, [edi + 0x288]
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x40c16d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi], ebx
mov eax, dword [edi + 0x27c]
cmp eax, ebx
je 0x40c265
push eax
call fcn.0041068d
mov esi, eax
test esi, esi
pop ecx
mov ebx, 0x3888
je 0x40c226
push 0
push edi
push 2
pop eax
call fcn.00428938
mov eax, dword [edi + 0x27c]
cmp eax, dword [edi + 0x278]
jne 0x40c226
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, esi
push 0x202
call fcn.00411dd5
mov eax, dword [esi + 0x40]
xor edx, edx
cmp eax, edx
je 0x40c1e8
cmp word [eax], dx
je 0x40c1e8
push 1
push edx
push edx
push eax
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c226
mov ecx, dword [esi + 0x10]
cmp ecx, edx
je 0x40c226
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0x4e
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], 0xd
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [edi + 0x27c], 0
cmp dword [ebp - 8], 0
je 0x40c265
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], ebx
call dword [eax + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 0x4e
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d39a
Capabilities:
Allocate thread local storage

Disassembly:
push 0x48
mov eax, 0x460ce3
call fcn.00456faa
mov eax, dword [0x483b58]
test eax, eax
mov edi, 0x483b5c
jne 0x40d3c5
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x483b58], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [0x483b50]
test eax, eax
jne 0x40d46b
cmp byte [0x483b74], al
je 0x40d411
push str.Dead_Reference_Detected
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040f592
push 0x473dc4
lea eax, [ebp - 0x54]
push eax
call sub.MSVCR80.dll__CxxThrowException
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
test esi, esi
mov byte [ebp - 4], 2
je 0x40d451
call fcn.0040c943
lea ecx, [esi + 4]
mov dword [ecx], eax
mov byte [eax + 0x2d], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
and dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0xc], eax
jmp 0x40d453
xor esi, esi
push 0x40d6d6
mov dword [0x483b50], esi
mov byte [0x483b74], 0
call fcn.0045699b
pop ecx
mov eax, dword [0x483b58]
test eax, eax
jne 0x40d485
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x483b58], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00457082
ret
Function at 0x40efb7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40efca
push 0x80004005
call fcn.00405399
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40efd1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40f0a9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x481028]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x40f1c6
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x40f117
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x40f1c6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x40f18a
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040f0a9
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x40f1e9
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x40f14f
cmp dword [ebp - 0x210], esi
je 0x40f1b0
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x40f1d6
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004568ce
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x40f1f9
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x40f1d8
Function at 0x410a76
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
inc edi
cmp byte [ebx + 0x10], 0
mov esi, ecx
je 0x410b28
dec eax
dec eax
je 0x410b08
dec eax
je 0x410af8
dec eax
dec eax
je 0x410ae6
sub eax, 0xa
je 0x410ad4
sub eax, 9
je 0x410ac0
sub eax, 0x21a
je 0x410aaa
xor edi, edi
jmp 0x410b28
push esi
mov eax, ebx
call fcn.0041079b
test byte [ebx + 0x1c], 2
je 0x410b28
push esi
call fcn.0040ff5f
jmp 0x410b28
test byte [ebx + 0x1c], 1
je 0x410b28
push dword [esp + 0x10]
mov eax, ebx
push esi
call fcn.00410c47
jmp 0x410b28
cmp byte [ebx + 0x24], 0
je 0x410b28
push esi
call fcn.0040ff5f
mov byte [ebx + 0x24], 0
jmp 0x410b28
push dword [esp + 0x10]
mov eax, ebx
push esi
mov esi, dword [esp + 0x1c]
call fcn.00410ba3
jmp 0x410b28
test byte [ebx + 0x1c], 2
je 0x410b28
push esi
mov esi, ebx
call fcn.00410b30
jmp 0x410b28
push 0
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
or dword [ebx + 8], 0xffffffff
or dword [ebx + 4], 0xffffffff
mov byte [ebx + 0x10], 0
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x410ba3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push ebx
mov ebx, eax
jne 0x410bc3
push 0
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [ebx + 0x1c], 0xfd
jmp 0x410c2e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
dec dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
inc ecx
dec dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
sub eax, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
je 0x410c33
sub ecx, dword [ebp - 0x10]
je 0x410c33
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x410c2e
or byte [ebx + 0x1c], 4
mov al, byte [ebx + 0x1c]
test al, 2
jne 0x410c25
push dword [ebp + 8]
or al, 2
mov byte [ebx + 0x1c], al
call fcn.0040ff5f
push 8
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x410c2e
cmp dword [ebx + 0x20], esi
je 0x410c2e
mov byte [ebx + 0x24], 1
mov dword [ebx + 0x20], esi
jmp 0x410c42
push 0
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [ebx + 0x1c], 0xfd
pop ebx
leave
ret 8
Function at 0x411c22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov esi, ecx
jne 0x411c37
xor eax, eax
jmp 0x411cd7
movzx eax, word [ebp + 0xc]
push ebx
push dword [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x411c70
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x411c70
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x411c74
xor eax, eax
jmp 0x411cd6
and dword [ebp + 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411cb9
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi], eax
je 0x411cb9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x411cb9
push dword [ebp + 8]
push esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x10], 0
jne 0x411cd3
mov edi, dword [edi]
test edi, edi
je 0x411cd3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x418f05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [0x4838cc]
push esi
push edi
lea esi, [eax + 0x48]
xor edi, edi
cmp dword [esi], edi
mov dword [ebp + 0xc], eax
je 0x418f26
call fcn.00438964
mov eax, dword [ebp + 0xc]
push edi
push edi
push ebx
push 0x437569
push edi
push edi
mov dword [eax + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, edi
pop edi
setne al
pop esi
mov byte [ecx], al
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x418f87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [0x4838cc]
push esi
push edi
lea esi, [eax + 0x60]
xor edi, edi
cmp dword [esi], edi
mov dword [ebp + 0xc], eax
je 0x418fa8
call fcn.00438964
mov eax, dword [ebp + 0xc]
push edi
push edi
push ebx
push 0x437585
push edi
push edi
mov dword [eax + 0x64], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, edi
pop edi
setne al
pop esi
mov byte [ecx], al
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x419009
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [0x4838cc]
push esi
push edi
lea esi, [eax + 0x54]
xor edi, edi
cmp dword [esi], edi
mov dword [ebp + 0xc], eax
je 0x41902a
call fcn.00438964
mov eax, dword [ebp + 0xc]
push edi
push edi
push ebx
push 0x437577
push edi
push edi
mov dword [eax + 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, edi
pop edi
setne al
pop esi
mov byte [ecx], al
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4232a5
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x464515
call fcn.00456fdd
mov esi, ecx
mov ebx, edx
mov eax, dword [0x4833bc]
mov edi, 0x4833bc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
mov eax, dword [0x4833bc]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x18]
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004052c3
mov ecx, edi
call fcn.00402a17
push dword [esi + 0x14]
mov ecx, edi
call fcn.0044eaaf
mov esi, dword [esi + 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebx + 0x5c]
push eax
call fcn.0042368a
test al, al
je 0x4233e3
push str.tray
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x423343
cmp dword [ebx + 0x38], eax
je 0x4233e3
mov ecx, dword [ebx + 0x38]
push dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax]
jmp 0x4233e3
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], vtable.WinMod::CWinModule.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402a17
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x423385
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42337e
call fcn.0040535f
jmp 0x423393
mov eax, 0x80004005
jmp 0x423393
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call dword [eax + 4]
mov dword [ebp - 0x24], esi
xor eax, eax
test eax, eax
jl 0x4233d4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
call fcn.0042168b
test eax, eax
jl 0x4233d4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], vtable.WinMod::CWinModule.0
call fcn.00402696
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404929
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00404929
xor eax, eax
call fcn.00457082
ret

Function at 0x424141
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x46383b
call fcn.00456faa
mov edi, ecx
mov eax, dword [0x4833bc]
mov ecx, 0x4833bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.vulfix.ini
lea esi, [ebp - 0x10]
call fcn.00424222
test eax, eax
mov esi, dword [ebp - 0x10]
pop ecx
je 0x42418b
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00404929
mov eax, edi
call fcn.00457082
ret

Function at 0x424222
Capabilities:
Set file attributes

Disassembly:
push 0
call fcn.00402030
push eax
mov ecx, esi
call fcn.00402177
test eax, eax
jge 0x424238
xor eax, eax
ret
push 0x5c
mov eax, esi
call fcn.00405058
push dword [esp + 4]
push esi
call fcn.004046e1
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
inc eax
ret
Function at 0x4244a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREksafe
push SysStringLen
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42453a
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push str.Install_Path
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42453a
cmp dword [ebp - 8], 1
jne 0x42453a
cmp dword [ebp - 0xc], 6
jb 0x42453a
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x424533
cmp ax, 0x2f
je 0x424533
push 0x467230
push 0x204
push esi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
pop ebx
je 0x424549
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x42534c
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test ebx, ebx
jne 0x42535a
xor eax, eax
leave
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425356
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4253df
push eax
call fcn.004567b5
mov esi, eax
test esi, esi
pop ecx
je 0x4253df
push esi
push dword [ebp - 4]
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4253d8
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x467230
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4253d8
mov eax, dword [ebp - 8]
test eax, eax
je 0x4253d8
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [eax + 0xc]
push esi
mov dword [ecx], eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
jmp 0x4253e1
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
xor eax, eax
pop esi
leave
ret

Function at 0x4254bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x481028]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
and word [ebp - 0x74], 0
push esi
push 0x206
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x72]
push 0
push eax
mov esi, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x78], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
lea eax, [ebp - 0x74]
neg esi
push eax
push dword [ebp - 0x7c]
sbb esi, esi
inc esi
call fcn.00405232
mov ecx, dword [ebp + 0x194]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004568ce
add ebp, 0x198
leave
ret

Function at 0x42562b
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x46362a
call fcn.00456faa
mov esi, ecx
push str._SYSTEM
lea eax, [ebp - 0x10]
push eax
call fcn.00405099
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00425ce9
test eax, eax
je 0x4256dd
push str._ntoskrnl.exe
lea eax, [ebp - 0x10]
push eax
call fcn.004046e1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4256dd
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0042534c
test eax, eax
pop ecx
je 0x4256dd
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 4]
movzx ecx, word [ebp - 0x14]
shr eax, 0x10
cmp edx, eax
jb 0x42569f
jne 0x4256dd
cmp dword [esi + 8], ecx
jae 0x4256dd
and dword [ebp - 0x14], 0
mov dword [esi + 4], eax
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x10], 2
mov dword [esi + 8], ecx
call fcn.00425548
mov eax, dword [ebp - 0x14]
shr eax, 8
mov word [esi + 0x114], ax
xor esi, esi
pop ecx
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404929
mov eax, esi
call fcn.00457082
ret
xor esi, esi
jmp 0x4256ca
Function at 0x4258b6
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x460a60
call fcn.00457013
mov eax, dword [ebp + 8]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_wcschr]
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
je 0x4258f9
inc eax
push 0xa
inc eax
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcstol]
add esp, 0xc
xor esi, esi
cmp eax, dword [esi*8 + 0x4822f0]
je 0x425901
inc esi
cmp esi, 5
jb 0x4258ea
xor eax, eax
call fcn.00457096
ret
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x2b
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4258f9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00405099
mov dword [ebp - 4], edi
push dword [esi*8 + 0x4822f4]
mov eax, ebx
push dword [ebp - 0x21c]
push str._sMicrosoft_SharedOFFICE_d
call fcn.00404ecc
mov eax, dword [ebp - 0x21c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00404929
xor eax, eax
inc eax
jmp 0x4258fb
Function at 0x425b70
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x481028]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x10
mov eax, 0x460a2d
call fcn.00456faa
mov eax, dword [ebp + 0x41c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4833bc]
xor ebx, ebx
mov ecx, 0x4833bc
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov edi, 0x206
push edi
lea eax, [ebp + 0x20a]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp + 0x208], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x425c58
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00405232
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi - 0xc]
cmp eax, ebx
je 0x425c58
jge 0x425c05
push 0x80070057
call fcn.00405399
cmp word [esi], 0x25
jne 0x425c58
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x425bfb
cmp ecx, eax
jg 0x425bfb
cmp word [esi + ecx*2], 0x25
jne 0x425c58
push 0x104
lea eax, [ebp + 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425c86
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
call fcn.00405232
mov dword [ebp - 0x10], 1
lea eax, [esi - 0x10]
call fcn.00404929
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004568ce
add ebp, 0x414
leave
ret
push str._ProgramW6432_
push esi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x425c58
push edi
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x425cd7
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x425c58
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call fcn.00405232
push str.Program_Files
push dword [ebp - 0x14]
call fcn.004046e1
jmp 0x425c51