joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441c14
Capabilities:
Check for time delay via gettickcount
Create process on windows
Read .ini file
Terminate process

Disassembly:
push 0x270
mov eax, 0x5aa895
call fcn.00588aeb
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.istdrv.debug.ini
push 0
push str.LaunchAppWait
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or dword [ebp - 0x228], 0xffffffff
push 0x5c9e94
mov edi, eax
push str.CInstallAction::LaunchExe
push 5
mov dword [ebp - 0x224], edi
call fcn.00423f75
add esp, 0xc
test esi, esi
je 0x441e51
xor eax, eax
cmp ax, word [esi]
je 0x441e51
push 0x44
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00587a70
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
mov dword [ebp - 0x27c], 0x44
call fcn.00587a70
add esp, 0x18
lea eax, [ebp - 0x21c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x5bf818
mov esi, 0x105
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0058af59
push ebx
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0058af59
add esp, 0x18
lea eax, [ebp - 0x238]
push eax
xor esi, esi
lea eax, [ebp - 0x27c]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x441e51
push dword [ebp - 0x234]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x441e49
cmp eax, 1
jle 0x441de2
cmp eax, 2
je 0x441d59
cmp eax, 3
je 0x441de2
cmp eax, 0x64
jne 0x441e49
mov dword [ebp - 0x228], esi
jmp 0x441e49
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp dword [ebp + 0x14], 0
jbe 0x441d7a
cmp dword [ebp + 0x14], eax
jbe 0x441dcb
call fcn.00473832
mov ecx, dword [eax + 4]
call fcn.00474e21
xor esi, esi
inc esi
push 0x1f4
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.0046f113
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0040712f
cmp esi, 0x102
jne 0x441dd9
mov esi, dword [ebp - 0x224]
jmp 0x441d67
push 0xffffffffffffffff
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x441e49
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00473832
mov ecx, dword [eax + 4]
call fcn.00474e21
push 0x1f4
mov dword [ebp - 4], esi
call edi
push 0x64
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.0046f113
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0040712f
push 0
cmp esi, 0x102
pop esi
je 0x441de8
push dword [ebp - 0x224]
call edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x238]
call ebx
push 0x5c9efc
push str.CInstallAction::LaunchExe
push 5
call fcn.00423f75
mov eax, dword [ebp - 0x228]
add esp, 0xc
call fcn.00588a9a
ret 0x10
Function at 0x44a1c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x63aa0c], 0
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x220]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ebx
mov edi, 0x80004005
je 0x44a2a7
and dword [ebp - 0x224], 0
push str.Shell32.dll
call fcn.004042ad
mov esi, eax
pop ecx
test esi, esi
jne 0x44a23b
push str.Shell32.dll_SAW_LoadLibrary_failed._n
push str.GetKnownFolderPath
push 4
call fcn.00423f75
add esp, 0xc
jmp 0x44a2a0
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x44a261
push str.SHGetKnownFolderPath_GetProcAddress_failed._n
push str.GetKnownFolderPath
push 4
call fcn.00423f75
add esp, 0xc
jmp 0x44a299
lea ecx, [ebp - 0x224]
push ecx
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
push dword [ebp + 0x18]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x44a28d
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.00403cc8
push dword [ebp - 0x224]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x44a35c
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00587a70
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
sub esp, 0x10
lea esi, [ebp - 0x220]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x224], 0xffff
movsd dword es:[edi], dword [esi]
call fcn.00449ffd
add esp, 0x14
test eax, eax
jne 0x44a2fa
mov eax, 0x80070057
jmp 0x44a35c
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0044a381
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x44a35a
cmp word [ebp - 0x210], bx
je 0x44a347
lea eax, [ebp - 0x210]
push eax
call fcn.00588144
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x22c]
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.00403cef
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret
Function at 0x456c17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5cf600
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00423f75
xor esi, esi
xor eax, eax
add esp, 0xc
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x456cb5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x456cb5
push edi
call fcn.004042ad
mov edi, eax
pop ecx
test edi, edi
je 0x456cb5
push 5
lea eax, [ebp - 0x10]
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x456c95
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0058bd3d
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5cf61c
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00423f75
add esp, 0xc
mov ax, si
jmp 0x456ccb
push 0x5cf638
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00423f75
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00588a1c
leave
ret 4

Function at 0x4597a3
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x5d0038
mov ebx, str.MS4SCRIPT::CompulsoryPnPFlagSet
push ebx
push 5
call fcn.00423f75
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4597d8
mov esi, dword [esi]
push edi
push 0x204
push esi
mov edi, 0x205
lea eax, [ebp - 0x81c]
push edi
push eax
call fcn.0058b12c
push 0
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.0045f00a
add esp, 0x1c
mov esi, eax
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.0045efc5
add esp, 0xc
cmp dword [ebp + 8], 0
pop edi
lea eax, [ebp - 0x410]
je 0x459844
push 0
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x45985d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45985d
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5d0054
push ebx
push 5
call fcn.00423f75
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.00588a1c
leave
ret 8
Function at 0x45b9bf
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x5d0398
mov ebx, str.LoadSETUPAPI
push ebx
push 5
call fcn.00423f75
mov edi, dword [0x63a954]
add esp, 0xc
test edi, edi
jne 0x45bb46
push str.setupapi.dll
call fcn.004042ad
mov edi, eax
mov dword [esp], str.CFGMGR32.DLL
call fcn.004042ad
pop ecx
mov dword [0x63a958], eax
test edi, edi
je 0x45bb46
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5d0a60
push edi
call esi
push 0x5d011c
push edi
mov dword [0x63a924], eax
call esi
push 0x5d0a78
push edi
mov dword [0x63a928], eax
call esi
push 0x5d0a9c
push edi
mov dword [0x63a92c], eax
call esi
push 0x5d01bc
push edi
mov dword [0x63a930], eax
call esi
push 0x5d0ab4
push edi
mov dword [0x63a934], eax
call esi
push 0x5d0ad0
push edi
mov dword [0x63a95c], eax
call esi
push 0x5d0ae4
push edi
mov dword [0x63a960], eax
call esi
push str.SetupFindNextLine
push edi
mov dword [0x63a938], eax
call esi
push str.SetupGetMultiSzFieldW
push edi
mov dword [0x63a93c], eax
call esi
push str.SetupGetStringFieldW
push edi
mov dword [0x63a940], eax
call esi
push str.SetupFindFirstLineW
push edi
mov dword [0x63a944], eax
call esi
push 0x5d0b50
push edi
mov dword [0x63a948], eax
call esi
push str.CMP_WaitNoPendingInstallEvents
push edi
mov dword [0x63a94c], eax
call esi
push str.CM_Reenumerate_DevNode
push dword [0x63a958]
mov dword [0x63a964], eax
call esi
cmp dword [0x63a924], 0
mov dword [0x63a968], eax
pop esi
je 0x45bb3d
cmp dword [0x63a928], 0
je 0x45bb3d
cmp dword [0x63a92c], 0
je 0x45bb3d
cmp dword [0x63a930], 0
je 0x45bb3d
cmp dword [0x63a934], 0
je 0x45bb3d
cmp dword [0x63a938], 0
je 0x45bb3d
cmp dword [0x63a93c], 0
je 0x45bb3d
cmp dword [0x63a940], 0
je 0x45bb3d
cmp dword [0x63a944], 0
je 0x45bb3d
cmp dword [0x63a948], 0
je 0x45bb3d
cmp dword [0x63a94c], 0
jne 0x45bb46
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
push 0x5d03b4
push ebx
push 5
mov dword [0x63a954], edi
call fcn.00423f75
mov eax, dword [0x63a954]
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x45bcd1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x5d0398
push str.OpenReg9x
push 5
call fcn.00423f75
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 0xc]
mov ebx, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45bd7b
push esi
mov esi, dword [ebp + 0x18]
push esi
push edi
mov dword [esi], edi
mov edi, dword [ebp + 0x14]
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [edi], ebx
jbe 0x45bd3e
cmp dword [edi], 2
jbe 0x45bd37
cmp dword [edi], 7
jne 0x45bd3e
mov eax, dword [esi]
lea edi, [eax + 4]
jmp 0x45bd42
mov eax, dword [esi]
lea edi, [eax + 2]
jmp 0x45bd42
mov eax, dword [esi]
mov edi, eax
cmp edi, eax
jb 0x45bd71
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x45bd71
push esi
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0x5d03b4
push str.OpenReg9x
push 5
call fcn.00423f75
add esp, 0xc
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x45e083
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x5acc1d
call fcn.00588ab8
mov esi, ecx
push 0x5d0bac
push str.MS4SCRIPT::Initialize
push 5
mov dword [ebp - 4], 1
call fcn.00423f75
lea eax, [ebp + 8]
add esp, 0xc
xor bl, bl
cmp esi, eax
je 0x45e0c1
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403c35
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x50]
lea eax, [ebp + 0x28]
cmp ecx, eax
je 0x45e0e1
push 0xffffffffffffffff
push 0
push eax
call fcn.00403c35
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x45e683
xor edi, edi
push edi
push edi
call fcn.0058d21a
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov dword [esi + 0x24], eax
cmp dword [esi + 0x20], edi
je 0x45e118
cmp dword [esi + 0x20], 0xffffffff
je 0x45e118
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov bl, 1
push 0x5d0bc8
push str.MS4SCRIPT::Initialize
push 5
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp + 8]
push edi
push 1
call fcn.00403a7f
push edi
push 1
lea ecx, [ebp + 0x28]
call fcn.00403a7f
mov al, bl
call fcn.00588a86
ret 0x38

Function at 0x45f0be
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x108], eax
jne 0x45f105
cmp dword [ebp - 0x114], 4
jne 0x45f105
cmp dword [ebp - 0x110], 0xa
jae 0x45f107
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00588a1c
leave
ret
Function at 0x46315b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.00463217
test eax, eax
je 0x4631ed
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi + 4]
call ebx
mov eax, dword [ebp - 4]
lea edi, [eax + 2]
test eax, eax
je 0x4631e4
cmp edi, eax
jbe 0x4631e4
cmp dword [esi + 0x20], 0
je 0x4631ab
push dword [esi + 0x20]
call fcn.00459786
and dword [esi + 0x20], 0
pop ecx
push 0x292
push 0x5d2a14
push edi
call fcn.0045976f
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
je 0x4631ec
push edi
push 0
push eax
call fcn.00587a70
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
push 0
push 0
push dword [ebp + 8]
push dword [esi + 4]
call ebx
mov eax, dword [esi + 0x20]
shr edi, 1
mov dword [esi + 0x24], edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x463235
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov ebx, ecx
mov edi, esi
push esi
jmp 0x46329e
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0058b693
add esp, 0xc
test eax, eax
je 0x4632ad
push 0x105
lea eax, [ebp - 0x210]
inc edi
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x463272
jmp 0x4632b0
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret 4
Function at 0x4692b6
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
mov edi, 0x100
lea eax, [ebp - 0x40c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x618], ebx
call fcn.0058b0b1
push esi
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.0058af59
add esp, 0x18
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x40c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x469323
xor eax, eax
jmp 0x4693f2
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.ProfileImagePath
push dword [ebp - 0x618]
mov dword [ebp - 0x61c], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x618]
test eax, eax
je 0x469360
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46931c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0058b10d
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
pop ecx
je 0x46939a
push 0x5bef0c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0058af59
add esp, 0xc
push str.NTUSER.DAT
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0058af59
push 0x208
lea eax, [ebp - 0x614]
push ebx
push eax
call fcn.00587a70
add esp, 0x18
lea eax, [ebp - 0x614]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x614]
push eax
push esi
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret 4
Function at 0x46ee75
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x104
xor edi, edi
and dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], ecx
call fcn.0058b0b1
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
push 8
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46efbf
push esi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46efaf
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x5bef0c
push esi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x210]
mov edi, dword [ebp - 0x220]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push edi
push str.File___1_s__nfile_version:_____2_u_._3_u_._4_u_._5_u__n
push str.GetFileVersion
push 5
call fcn.00423f75
mov ecx, dword [ebp - 0x210]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
push edi
push str.File___1_s__nproduct_version:__2_u_._3_u_._4_u_._5_u__n
push str.GetFileVersion
push 5
call fcn.00423f75
mov ecx, dword [ebp - 0x210]
add esp, 0x40
cmp dword [ebp + 0x14], 0
je 0x46ef9c
mov eax, dword [ecx + 0x10]
mov dword [ebx], eax
mov eax, dword [ecx + 0x14]
jmp 0x46efa4
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x214]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret
Function at 0x475963
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x475985
cmp dword [ebx + 0x74], 0
jne 0x475985
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00473832
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00475bf0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4759bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00473832
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4759f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00475a15
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x477d0b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004783fd
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x477d47
call fcn.00477fc9
mov dword [esi + 0xc], 1
jmp 0x477d4c
call fcn.00477fc9
cmp dword [esi], 0
je 0x477d95
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x477d6f
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004729e5
jmp 0x477d80
push 0xff
mov ecx, esi
call fcn.0041bbf9
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00460b48
jmp 0x477db9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x477db9
push dword [esi]
push dword [ebp - 4]
call fcn.00484d13
pop esi
leave
ret 0xc