joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410370
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00452e00
add esp, 0xc
test edi, edi
je 0x410504
cmp byte [edi], 0
je 0x410504
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
inc eax
cmp eax, esi
jle 0x4103ca
mov eax, esi
jmp 0x4103ce
push edi
call ebx
inc eax
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 1
mov esi, str.__r_n
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0044937b
push 2
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0044937b
cmp byte [ebp - 0x108], 0x22
jne 0x410423
push 0
push 0
push 0x464a50
push 0x465ee0
lea eax, [ebp - 0x108]
push eax
call fcn.0044923e
push 0x140
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00452e00
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4104e2
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x108]
push 0x46741c
push eax
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
jne 0x41048c
lea eax, [ebp - 0x108]
push 0x467418
push eax
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
je 0x4104d5
push 0x466c80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4104b8
push 0x467414
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4104d5
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4104d0
push esi
call edi
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x41045e
cmp esi, 0xffffffff
je 0x4104e2
push esi
call edi
xor eax, eax
inc eax
jmp 0x410506
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0x104
jge 0x410504
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4104dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
leave
ret 4
Function at 0x410fea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
cmp esi, ebx
je 0x411061
cmp edi, ebx
je 0x411061
cmp byte [edi], bl
je 0x411061
push str.MAIL
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x411074
push str.HKEY_LOCAL_MACHINESOFTWAREClientsMail_
mov edi, 0x102
push edi
push esi
push ebx
push 3
call fcn.0044ad45
add esp, 0x14
cmp byte [esi], bl
je 0x411061
push esi
push str.HKEY_LOCAL_MACHINESOFTWAREClientsMail_s_shellopencommand_
push edi
push esi
push ebx
push 3
call fcn.0044ad45
add esp, 0x18
cmp byte [esi], bl
jne 0x4110c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
leave
ret 0xc
push edi
push str.HKEY_CLASSES_ROOT_s_
mov edi, 0x103
push edi
push esi
push ebx
push 3
call fcn.0044ad45
add esp, 0x18
cmp byte [esi], bl
je 0x411061
push esi
push str.HKEY_CLASSES_ROOT_s_shellopencommand_
push edi
push esi
push ebx
push 3
call fcn.0044ad45
add esp, 0x18
cmp byte [esi], bl
jne 0x4110c3
cmp dword [ebp - 0x210], ebx
je 0x41105d
push esi
push 0x4677dc
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
jmp 0x41105d
push 0x207
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00452e00
add esp, 0xc
push 0x1f8
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push ebx
push 0x464a50
push 0x465ee0
push esi
call fcn.0044923e
mov edi, 0x46493c
push edi
push esi
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
je 0x41112e
push edi
push esi
call fcn.004010ff
pop ecx
pop ecx
mov byte [eax], bl
push 2
push str.__r_n
push esi
call fcn.0044937b
xor eax, eax
inc eax
jmp 0x411063
Function at 0x411143
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push edi
mov edi, dword [ebp + 0x1a0]
push 0x207
lea eax, [ebp - 0x77]
push 0
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x78], 0
call fcn.00452e00
add esp, 0xc
test ebx, ebx
je 0x4112a3
cmp byte [ebx], 0
je 0x4112a3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
lea ecx, [eax + 1]
mov eax, 0x103
cmp ecx, eax
jg 0x4111b4
push ebx
call esi
inc eax
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x78]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4111dd
test al, 0x10
je 0x4111dd
xor eax, eax
inc eax
jmp 0x4112a5
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x411251
mov eax, dword [ebp - 0x80]
cmp byte [eax], 0
je 0x411251
push eax
call esi
lea ecx, [eax + 1]
mov eax, 0x102
cmp ecx, eax
jg 0x411204
push dword [ebp - 0x80]
call esi
inc eax
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x78]
push eax
call esi
cmp byte [ebp + eax - 0x79], 0x5c
je 0x411232
mov eax, dword [ebp - 0x7c]
cmp byte [eax], 0x5c
je 0x411232
push 0x4648e0
lea eax, [ebp - 0x78]
push eax
call edi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp + 0x8b], 0
call ebx
cmp eax, 0xffffffff
je 0x411251
test al, 0x10
jne 0x4111d5
lea eax, [ebp - 0x78]
push eax
push 0x102
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x78]
push eax
call esi
cmp byte [ebp + eax - 0x79], 0x5c
je 0x411280
mov eax, dword [ebp - 0x7c]
cmp byte [eax], 0x5c
je 0x411280
push 0x4648e0
lea eax, [ebp - 0x78]
push eax
call edi
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp + 0x8b], 0
call ebx
cmp eax, 0xffffffff
je 0x4112a3
test al, 0x10
jne 0x4111d5
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x194
leave
ret 8
Function at 0x4112bf
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x41136c
cmp byte [esi], bl
je 0x41136c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jge 0x41136c
push ebx
push esi
call fcn.00411143
test eax, eax
je 0x411308
xor eax, eax
inc eax
jmp 0x41136e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41136c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x411365
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.00454d40
pop ecx
pop ecx
cmp eax, ebx
je 0x41136c
mov byte [eax], bl
lea eax, [ebp - 0x10c]
push eax
call fcn.004112bf
cmp eax, ebx
je 0x41136e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x41136e
call edi
cmp eax, 2
je 0x411355
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
leave
ret 4

Function at 0x41137f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x2f4], eax
mov eax, dword [ebp + 0x300]
push ebx
push esi
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp + 0x1ec]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + 0x1ec]
mov eax, esi
push eax
call edi
xor ebx, ebx
cmp byte [eax + esi - 1], 0x5c
jne 0x4113dd
mov eax, esi
push eax
call edi
mov byte [eax + esi - 1], bl
cmp dword [ebp + 0x304], ebx
jne 0x411434
lea eax, [ebp + 0x1ec]
push eax
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41142c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4114a6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea eax, [ebp + 0x1ec]
push eax
call fcn.00411143
test eax, eax
je 0x411428
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x41145b
xor eax, eax
inc eax
jmp 0x4114a6
lea eax, [ebp + 0x1ec]
push eax
call fcn.00454d70
mov byte [ebp + eax + 0x1ed], bl
mov eax, 0x614
mov word [ebp - 0x6c], ax
lea eax, [ebp + 0x1ec]
mov dword [ebp - 0x74], eax
pop ecx
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x6a], ebx
mov dword [ebp - 0x66], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x62], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x2f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x2f8
leave
ret 8
Function at 0x4114c0
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c0]
mov esi, 0x105
xor ebx, ebx
push esi
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0xad]
push ebx
push eax
mov byte [ebp + 0xac], bl
call fcn.00452e00
push esi
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], bl
call fcn.00452e00
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x18
push edi
lea eax, [ebp + 0xac]
push eax
call esi
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + 0xac]
mov eax, esi
push eax
call edi
cmp byte [eax + esi - 1], 0x5c
jne 0x411553
mov eax, esi
push eax
call edi
mov byte [eax + esi - 1], bl
push ebx
lea eax, [ebp + 0xac]
push eax
call fcn.00411143
test eax, eax
jne 0x411568
xor eax, eax
jmp 0x4115e3
lea eax, [ebp - 0x5c]
push eax
call fcn.004112bf
test eax, eax
je 0x411564
push str..
lea eax, [ebp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0xac]
push eax
call fcn.00454d70
mov byte [ebp + eax + 0xad], bl
lea eax, [ebp - 0x5c]
push eax
call fcn.00454d70
mov byte [ebp + eax - 0x5b], bl
mov eax, 0x614
mov word [ebp - 0x70], ax
lea eax, [ebp + 0xac]
mov dword [ebp - 0x78], eax
pop ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x74], eax
pop ecx
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x6e], ebx
mov dword [ebp - 0x6a], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x66], ebx
mov dword [ebp - 0x7c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x1b8
leave
ret 8
Function at 0x4116b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x4116ca
xor eax, eax
jmp 0x41178f
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
cmp edi, 2
jne 0x4116dd
push 0xb
jmp 0x4116fa
cmp edi, 3
jne 0x4116e6
push 6
jmp 0x4116fa
cmp edi, 4
jne 0x4116ef
push 5
jmp 0x4116fa
cmp edi, 5
jne 0x4116f8
push 0x1a
jmp 0x4116fa
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x411737
cmp dword [ebp - 4], ebx
je 0x411737
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp byte [esi], bl
je 0x411732
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x411732
push 0x4648e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x41178e
cmp edi, 2
jne 0x41174c
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersStart_Menu
push 0x103
push esi
push ebx
push 3
jmp 0x41177f
push 3
pop eax
cmp edi, eax
jne 0x41175a
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersFavorites
jmp 0x411777
cmp edi, 4
jne 0x411766
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersPersonal
jmp 0x411777
cmp edi, 5
jne 0x411772
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersLocal_AppData
jmp 0x411777
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersDesktop
push 0x103
push esi
push ebx
push eax
call fcn.0044ad45
xor eax, eax
add esp, 0x14
cmp byte [esi], bl
setne al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x411795
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
mov ebx, dword [ebp + 0x9c]
push esi
push edi
mov edi, dword [ebp + 0x98]
mov esi, 0xff
push esi
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.00452e00
add esp, 0xc
test ebx, ebx
je 0x4117de
mov byte [ebx], 0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x4117ef
cmp byte [edi], 0
jne 0x4117f4
mov edi, 0x4677dc
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp + 0x8c]
neg eax
pop edi
sbb eax, eax
and eax, dword [ebp - 0x78]
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x90
leave
ret 8
Function at 0x41182f
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
mov ebx, dword [ebp + 0xa0]
push esi
mov esi, dword [ebp + 0x9c]
push edi
mov edi, 0x103
push edi
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.00452e00
add esp, 0xc
test ebx, ebx
je 0x411878
mov byte [ebx], 0
test esi, esi
je 0x41188e
cmp byte [esi], 0
je 0x41188e
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4118a2
push edi
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x411978
mov eax, 0x1000
cmp esi, eax
jbe 0x4118c4
mov eax, esi
push 1
push eax
call fcn.00452b24
pop ecx
pop ecx
mov edi, eax
push edi
push esi
push 0
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4648e0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41196d
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
test ebx, ebx
je 0x411946
cmp dword [ebp + 0xa4], 0
je 0x411925
movzx eax, si
push eax
mov eax, esi
shr eax, 0x10
push eax
push str._u._u
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x411946
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
movzx eax, si
push eax
mov eax, esi
shr eax, 0x10
push eax
push str._u._u._u._u
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
test edi, edi
je 0x411951
push edi
call fcn.00452756
pop ecx
mov eax, esi
push 0x63
and eax, 0xffff
pop ecx
cmp eax, ecx
ja 0x411961
mov ecx, eax
mov eax, esi
shr eax, 0x10
imul eax, eax, 0x64
add eax, ecx
jmp 0x41197a
test edi, edi
je 0x411978
push edi
call fcn.00452756
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x94
leave
ret 0xc
Function at 0x411994
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb0
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x78]
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
mov edi, dword [ebp + 0x74]
xor ebx, ebx
push 0x7f
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x17]
push ebx
push eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x18], bl
call fcn.00452e00
add esp, 0xc
cmp esi, ebx
je 0x4119d5
mov byte [esi], bl
cmp edi, ebx
je 0x411ada
cmp byte [edi], bl
je 0x411ada
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x411ada
cmp byte [eax], bl
je 0x411ada
cmp esi, ebx
je 0x411ada
lea eax, [ebp - 0x44]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x411ada
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
push dword [ebp - 0x34]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x4648e0
push esi
call sub.VERSION.dll_VerQueryValueA
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 2]
push dword [ebp - 0x20]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x28], 0xff
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411ac3
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [eax + 1]
mov eax, 0x103
cmp ecx, eax
jg 0x411ab6
push dword [ebp - 0x1c]
call esi
inc eax
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x411adc
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x6c
leave
ret 0xc
Function at 0x411af0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
xor ebx, ebx
mov esi, 0x103
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x78], bl
call fcn.00452e00
mov eax, dword [ebp - 0x80]
add esp, 0xc
cmp eax, ebx
je 0x411b4a
cmp dword [ebp + 0xa4], 1
jb 0x411b4a
mov byte [eax], bl
cmp edi, ebx
je 0x411c57
cmp byte [edi], bl
je 0x411c57
cmp eax, ebx
je 0x411c57
cmp dword [ebp + 0xa4], 1
jb 0x411c57
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, esi
jle 0x411b7f
mov eax, esi
jmp 0x411b87
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x78]
push eax
call fcn.00410517
push ebx
push 0x80
push 3
push ebx
push 3
push SQLAllocEnv
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x411c52
cmp edi, ebx
je 0x411c52
cmp dword [ebp + 0x9c], ebx
jge 0x411be9
push 2
push ebx
push dword [ebp + 0x9c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x411c11
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
call esi
cmp eax, dword [ebp + 0x9c]
jae 0x411c01
push ebx
push edi
call esi
jmp 0x411c07
mov eax, dword [ebp + 0x9c]
push ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push edi
call esi
mov ecx, dword [ebp + 0xa4]
cmp ecx, eax
jae 0x411c24
mov dword [ebp - 0x7c], ecx
jmp 0x411c2b
push ebx
push edi
call esi
mov dword [ebp - 0x7c], eax
mov esi, dword [ebp - 0x80]
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411c45
mov dword [ebp - 0x7c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
mov byte [esi + eax], bl
mov eax, dword [ebp - 0x7c]
jmp 0x411c59
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x90
leave
ret 0x10
Function at 0x411c73
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
mov edi, 0x103
xor ebx, ebx
push edi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00452e00
add esp, 0xc
mov dword [ebp - 0x80], ebx
cmp esi, ebx
je 0x411cc7
cmp byte [esi], bl
je 0x411cc7
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411cda
push edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x7c]
push eax
call fcn.00410517
push ebx
push 0x80
push 3
push ebx
push 3
push SQLAllocEnv
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411d08
xor eax, eax
jmp 0x411d38
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp esi, ebx
je 0x411d20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x411d04
mov edx, dword [ebp - 0x80]
cmp edx, ebx
je 0x411d36
xor eax, eax
xor ecx, ecx
or eax, edi
or edx, ecx
jmp 0x411d3a
mov eax, edi
xor edx, edx
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x8c
leave
ret 4