joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597f9a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0055ab92
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4e0836
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0056144c
push 0x609d74
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0055dd0c
push edi
push esi
call fcn.0055b097
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 4

Function at 0x4e0dd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598028
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004eafb0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.004e0d00
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x4e0e41
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0056144c
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x4e0e6a
push dword [esp + 0xc]
call fcn.0055b689
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e1960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e19eb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4e19ad
cmp eax, 2
jne 0x4e19c9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4e19e5
test ecx, ecx
je 0x4e19e0
test cl, 1
jne 0x4e19c9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4e19e5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e3590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5982fb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [0x61ee5c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e3614
or eax, 1
mov dword [0x61ee88], 7
mov dword [0x61ee5c], eax
xor eax, eax
push 0x5a2f50
mov dword [0x61ee84], 0
mov word [0x61ee74], ax
call fcn.0055b82c
add esp, 4
push 0
push 0x5f6f5c
push dword [0x61ee84]
mov ecx, 0x61ee74
push 0
call fcn.004ebec0
test eax, eax
jne 0x4e3729
push 0x104
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x44], ax
jne 0x4e3667
xor ecx, ecx
jmp 0x4e367f
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3670
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004e9ac0
push 0x5f6f78
lea eax, [esp + 0x30]
mov dword [esp + 0x264], 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ee650
mov edi, eax
add esp, 0xc
cmp edi, 0x61ee74
je 0x4e36f8
cmp dword [0x61ee88], 8
jb 0x4e36d1
push dword [0x61ee74]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [0x61ee88], 7
push edi
mov ecx, 0x61ee74
mov dword [0x61ee84], 0
mov word [0x61ee74], ax
call fcn.004ebad0
cmp dword [esp + 0x28], 8
jb 0x4e370b
push dword [esp + 0x14]
call fcn.0055b689
add esp, 4
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x4e3729
push dword [esp + 0x2c]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x61ee74
mov word [esi], ax
call fcn.004ebc00
mov eax, esi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e3770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5982fb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [0x61eec8]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e37f4
or eax, 1
mov dword [0x61ee04], 7
mov dword [0x61eec8], eax
xor eax, eax
push 0x5a2fb0
mov dword [0x61ee00], 0
mov word [0x61edf0], ax
call fcn.0055b82c
add esp, 4
push 0
push 0x5f6f5c
push dword [0x61ee00]
mov ecx, 0x61edf0
push 0
call fcn.004ebec0
test eax, eax
jne 0x4e3909
push 0x104
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x44], ax
jne 0x4e3847
xor ecx, ecx
jmp 0x4e385f
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3850
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004e9ac0
push str._sysnative_
lea eax, [esp + 0x30]
mov dword [esp + 0x264], 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ee650
mov edi, eax
add esp, 0xc
cmp edi, 0x61edf0
je 0x4e38d8
cmp dword [0x61ee04], 8
jb 0x4e38b1
push dword [0x61edf0]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [0x61ee04], 7
push edi
mov ecx, 0x61edf0
mov dword [0x61ee00], 0
mov word [0x61edf0], ax
call fcn.004ebad0
cmp dword [esp + 0x28], 8
jb 0x4e38eb
push dword [esp + 0x14]
call fcn.0055b689
add esp, 4
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x4e3909
push dword [esp + 0x2c]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x61edf0
mov word [esi], ax
call fcn.004ebc00
mov eax, esi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e3950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59833b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [0x61ee6c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e39d4
or eax, 1
mov dword [0x61ee24], 7
mov dword [0x61ee6c], eax
xor eax, eax
push 0x5a3010
mov dword [0x61ee20], 0
mov word [0x61ee10], ax
call fcn.0055b82c
add esp, 4
sub esp, 0x18
mov dword [esp + 0x44], 0
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov word [ecx], ax
call fcn.004e9ac0
lea eax, [esp + 0x44]
push eax
call fcn.004e6800
add esp, 0x1c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.0055e3d0
add esp, 0xc
mov dword [esp + 0x30], 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x268], eax
cmp word [esp + 0x4c], ax
jne 0x4e3a76
xor ecx, ecx
jmp 0x4e3a8f
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3a80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.004e9ac0
push str.AppData_
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ee650
mov edi, eax
add esp, 0xc
cmp edi, 0x61ee10
je 0x4e3afd
cmp dword [0x61ee24], 8
jb 0x4e3ad6
push dword [0x61ee10]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [0x61ee24], 7
push edi
mov ecx, 0x61ee10
mov dword [0x61ee20], 0
mov word [0x61ee10], ax
call fcn.004ebad0
cmp dword [esp + 0x28], 8
jb 0x4e3b10
push dword [esp + 0x14]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x61ee10
mov word [esi], ax
call fcn.004ebc00
cmp dword [esp + 0x48], 8
jb 0x4e3b45
push dword [esp + 0x34]
call fcn.0055b689
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e4620
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598478
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x615720]
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 eax, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
xor edi, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
xor esi, esi
push ecx
push edi
xor bl, bl
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp + 8]
push edi
push eax
push edi
mov byte [ebp - 0x21], bl
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4e4713
push dword [ebp - 0x20]
call fcn.0055e51a
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
mov dword [ebp - 0x30], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055e51a
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x4e46f1
test edi, edi
je 0x4e46f1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push esi
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4e46fa
push 0
push 0
call fcn.0055dd0c
mov bl, 1
jmp 0x4e4713
test edi, edi
je 0x4e4720
push edi
call fcn.0055e4e2
add esp, 4
test bl, bl
jne 0x4e4733
test esi, esi
je 0x4e4738
push esi
call fcn.0055e4e2
add esp, 4
jmp 0x4e4738
mov eax, dword [ebp - 0x28]
mov dword [eax], esi
cmp dword [ebp + 0x1c], 8
jb 0x4e4749
push dword [ebp + 8]
call fcn.0055b689
add esp, 4
mov al, bl
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.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e47b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5984b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x4e47ee
xor edi, edi
jmp 0x4e495b
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5c
push eax
lea ecx, [ebp + 8]
call fcn.004ebe00
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.004e9cd0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4e484b
cmp dword [ebp + 0x1c], 8
jb 0x4e482e
push dword [ebp + 8]
call fcn.0055b689
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.004ebad0
cmp dword [ebp - 0x18], 8
jb 0x4e485c
push dword [ebp - 0x2c]
call fcn.0055b689
add esp, 4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp + 8]
push eax
call esi
cmp dword [ebp + 0x1c], 8
mov edi, eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x4e4956
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmovae eax, dword [ebp + 8]
push 0
push eax
call esi
test eax, eax
jne 0x4e4956
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 0x5c
call fcn.004ebe00
inc eax
lea ecx, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004e9cd0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004e9990
cmp dword [ebp - 0x30], 8
jb 0x4e48f9
push dword [ebp - 0x44]
call fcn.0055b689
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.004ebc00
call fcn.004e47b0
add esp, 0x18
test eax, eax
je 0x4e4943
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
mov ecx, 1
cmovne edi, ecx
cmp dword [ebp - 0x18], 8
jb 0x4e495b
push dword [ebp - 0x2c]
call fcn.0055b689
add esp, 4
jmp 0x4e495b
mov edi, 1
cmp dword [ebp + 0x1c], 8
jb 0x4e496c
push dword [ebp + 8]
call fcn.0055b689
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e4990
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push bind
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e49ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4e49db
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4e49db
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e49db
push edi
call fcn.0055a711
add esp, 4
mov ebx, eax
lea eax, [esp + 0x38]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e49db
push 0
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4e49db
push ebx
call fcn.0055ee23
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [esp + 0x2c]
push 0
push eax
push 0
push 2
push dword [esp + 0x40]
mov dword [esp + 0x40], 4
call edi
test eax, eax
je 0x4e49db
push dword [esp + 0x2c]
call fcn.0055e51a
add esp, 4
mov esi, eax
lea eax, [esp + 0x2c]
push 0
push eax
push esi
push 2
push dword [esp + 0x40]
call edi
test eax, eax
je 0x4e4b15
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004e29a0
cmp dword [eax + 0x14], 0x10
jb 0x4e4aed
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e1e00
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
call fcn.004e9990
lea ecx, [esp + 0x14]
call fcn.004e99d0
mov ebx, 1
jmp 0x4e4b17
xor ebx, ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4e49db
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x3c]
neg eax
pop edi
sbb eax, eax
and eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e4b50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5984e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x5f6f5c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004e9ac0
lea eax, [esp + 0x54]
mov dword [esp + 0x68], 0
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4e4c9a
lea eax, [esi + 1]
push eax
call fcn.0055a711
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push dword [esp + 0x20]
mov dword [ebx], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e4c9a
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x54], 0
push eax
push 0x5f6f78
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e4c4a
push eax
push 0x5f6f5c
lea ecx, [esp + 0x40]
call fcn.004e9ac0
jmp 0x4e4c9a
mov eax, dword [esp + 0x34]
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.004e2580
add esp, 0x18
lea ecx, [esp + 0x38]
push eax
call fcn.004e9990
cmp dword [esp + 0x30], 8
jb 0x4e4c91
push dword [esp + 0x1c]
call fcn.0055b689
add esp, 4
push ebx
call fcn.0055b689
add esp, 4
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004e9920
cmp dword [esp + 0x4c], 8
jb 0x4e4cb9
push dword [esp + 0x38]
call fcn.0055b689
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x4e4ce0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598520
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push 0x5f6f5c
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
call fcn.004e9ac0
mov dword [esp + 0x70], edi
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4e4ea5
lea eax, [ebx + 1]
push eax
call fcn.0055a711
add esp, 4
mov esi, eax
push esi
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi], 0
push dword [esp + 0x34]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e4e9c
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x28]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4e4e9c
mov ecx, dword [esp + 0x24]
mov eax, 0x4e4
cmp edi, 1
je 0x4e4ddb
movzx eax, word [ecx + 2]
movzx ecx, word [ecx]
push dword [esp + 0x18]
movzx eax, ax
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x4c]
push ecx
push str.StringFileInfo_08lx_s
push eax
call fcn.004e2580
add esp, 0x10
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x28]
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push ecx
cmovae eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e4e5b
push esi
call fcn.0055ee23
add esp, 4
mov byte [esp + 0x70], 0
inc edi
cmp dword [esp + 0x5c], 8
jb 0x4e4e50
push dword [esp + 0x48]
call fcn.0055b689
add esp, 4
cmp edi, 2
jl 0x4e4d60
jmp 0x4e4ea5
mov edx, dword [esp + 0x20]
cmp word [edx], 0
jne 0x4e4e69
xor ecx, ecx
jmp 0x4e4e7f
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4e70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004e9ac0
cmp dword [esp + 0x5c], 8
jb 0x4e4ea5
push dword [esp + 0x48]
call fcn.0055b689
jmp 0x4e4ea2
push esi
call fcn.0055ee23
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004e9920
cmp dword [esp + 0x44], 8
jb 0x4e4ec8
push dword [esp + 0x30]
call fcn.0055b689
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret