joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bd40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45bd7b
xor eax, eax
jmp 0x45be36
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45bd99
xor eax, eax
jmp 0x45be36
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x45bdcb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x45be36
mov eax, dword [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45bde4
jmp 0x45be29
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0042be50
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x45be40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45be73
xor eax, eax
jmp 0x45bee3
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45be8e
xor eax, eax
jmp 0x45bee3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45bec0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x45bee3
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0042be50
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45bef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45bf23
xor eax, eax
jmp 0x45bf93
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45bf3e
xor eax, eax
jmp 0x45bf93
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45bf70
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x45bf93
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sym.Install_adv.exe_int___cdecl_NsWriteFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45bfa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45bfd1
xor eax, eax
jmp 0x45c041
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45bfec
xor eax, eax
jmp 0x45c041
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45c01e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x45c041
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sym.Install_adv.exe_int___cdecl_NsWriteFile_wchar_t_const___void___unsigned_long_int_
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45c050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45c081
xor eax, eax
jmp 0x45c0ba
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45c09c
xor eax, eax
jmp 0x45c0ba
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x45c0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push 0
push str.Control_PanelDesktopWindowMetrics
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x45c104
jmp 0x45c1c7
push 0x28
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0042b9d0
add esp, 0xc
mov edx, dword [ebp - 0x34]
sub edx, 1
push edx
push 0x489630
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea edx, [ebp - 0x2c]
push edx
push 1
push 0
push 0x489638
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x28
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0042b9d0
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
push 0x489658
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea edx, [ebp - 0x2c]
push edx
push 1
push 0
push str.Shell_Icon_Size
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429d20
mov esp, ebp
pop ebp
ret
Function at 0x45c8b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x26
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop ebp
ret

Function at 0x45c910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 2
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop ebp
ret

Function at 0x45c970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0042b9d0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x10], 0
je 0x45c9de
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45caf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4894f0
mov eax, dword [ebp + 8]
push eax
call fcn.004346e6
add esp, 8
mov dword [ebp - 0x40c], eax
push 0x4894f8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004346e6
add esp, 8
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x40c], 0
je 0x45cb43
cmp dword [ebp - 0x410], 0
jne 0x45cb4a
xor eax, eax
jmp 0x45cbe3
mov dword [ebp - 0x408], 0
mov edx, dword [ebp - 0x40c]
push edx
push 0x400
push 1
lea eax, [ebp - 0x404]
push eax
call fcn.00436cd4
add esp, 0x10
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jg 0x45cb82
jmp 0x45cbc0
mov ecx, dword [ebp - 0x408]
push ecx
lea edx, [ebp - 0x404]
push edx
call sym.Install_adv.exe_void___cdecl_EasyEncode_char___int_
add esp, 8
mov eax, dword [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x408]
push ecx
push 1
lea edx, [ebp - 0x404]
push edx
call fcn.004345cd
add esp, 0x10
cmp dword [ebp - 0x408], 0
jg 0x45cb54
mov eax, dword [ebp - 0x40c]
push eax
call fcn.004347ba
add esp, 4
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.004347ba
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429d20
mov esp, ebp
pop ebp
ret
Function at 0x45d0d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0042b9d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x45d1ff
cmp dword [ebp - 0x114], 5
jbe 0x45d1ff
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x138], 4
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x134], 4
lea edx, [ebp - 0x120]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x45d1ff
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x138]
push edx
push 0
push str.EnableLUA
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x45d1f2
cmp dword [ebp - 0x124], 1
jne 0x45d1dc
mov dword [ebp - 0x128], 1
jmp 0x45d1e6
mov dword [ebp - 0x128], 0
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429d20
mov esp, ebp
pop ebp
ret

Function at 0x45d430
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45d4ef
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45d4ef
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45d49d
push 9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp + 0xc], 0
je 0x45d4eb
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jle 0x45d4eb
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x45d4f4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45d9d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474c4f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00435e6e
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.004096c0
mov dword [ebp - 4], 0
call fcn.00435e4d
push eax
call fcn.00435e4d
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.NS_08d_05d_05d
lea eax, [ebp - 0x78]
push eax
call fcn.00409d20
add esp, 0x14
cmp dword [ebp + 0xc], 0
je 0x45db48
push 0
lea ecx, [ebp - 0x84]
call fcn.0041b8b0
mov byte [ebp - 4], 1
push 0xf003f
push 0x4893bc
push SysReAllocString
lea ecx, [ebp - 0x84]
call fcn.0041b5b0
test eax, eax
jne 0x45daf1
mov dword [ebp - 0x88], 0x1e
push 0x64
push 0
lea ecx, [ebp - 0x74]
push ecx
call fcn.0042b9d0
add esp, 0xc
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x74]
push eax
push 0x4893e0
lea ecx, [ebp - 0x84]
call fcn.0041b450
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x14
jl 0x45dac6
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x45dae3
push 1
lea ecx, [ebp - 0x78]
call fcn.00409710
push eax
push 0x4893e8
lea ecx, [ebp - 0x84]
call fcn.0041b650
jmp 0x45daef
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
call fcn.004094f0
jmp 0x45db2e
push 0
push 0
push 0x2001f
push 0
push 0
push 0x4893f0
push SysReAllocString
lea ecx, [ebp - 0x84]
call fcn.0041b780
push 1
lea ecx, [ebp - 0x78]
call fcn.00409710
push eax
push 0x489414
lea ecx, [ebp - 0x84]
call fcn.0041b650
lea ecx, [ebp - 0x84]
call fcn.0041b840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.0041b890
lea ecx, [ebp - 0x78]
call fcn.00409710
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004095a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429d20
mov esp, ebp
pop ebp
ret
Function at 0x45df60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474cdd
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x49c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x45dfa8
xor eax, eax
xor edx, edx
jmp 0x45e10e
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
cmp dword [ebp - 0x1c], 3
jne 0x45dfe7
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45dfe2
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
sbb eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
jmp 0x45e108
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00418da0
mov byte [ebp - 4], 1
push 0x17
push 0
push 0x48dc18
lea ecx, [ebp - 0x18]
call fcn.00418dc0
lea ecx, [ebp - 0x14]
call fcn.00418da0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00418d50
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x34]
call fcn.00418880
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00418d80
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00418940
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x54]
call ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00418920
lea ecx, [ebp - 0x70]
call fcn.00418ae0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00418d50
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [eax + 0x60]
call ecx
lea ecx, [ebp - 0x70]
call fcn.00418b00
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00418be0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00418c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00418c30
jmp 0x45e0f2
mov dword [ebp - 4], 0xffffffff
jmp 0x45e102
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
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 0x45e4a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x4892d0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x45e4d1
xor eax, eax
jmp 0x45e62b
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00450b8d
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45e503
xor eax, eax
jmp 0x45e62b
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x45e534
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00450b88
add esp, 4
xor eax, eax
jmp 0x45e62b
mov dword [ebp - 0x18], 0x34
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x4892d4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45e614
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x4892d8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x45e614
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._d._d._d._d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00450b88
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret