joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df5e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4755d0]
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 0x40e00b
cmp byte [esi], bl
je 0x40e00b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jge 0x40e00b
push ebx
push esi
call fcn.0040dde2
test eax, eax
je 0x40dfa7
xor eax, eax
inc eax
jmp 0x40e00d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e00b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x40e004
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.0044a090
pop ecx
pop ecx
cmp eax, ebx
je 0x40e00b
mov byte [eax], bl
lea eax, [ebp - 0x10c]
push eax
call fcn.0040df5e
cmp eax, ebx
je 0x40e00d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x40e00d
call edi
cmp eax, 2
je 0x40dff4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret 4

Function at 0x40e01e
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x4755d0]
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 0x40e07c
mov eax, esi
push eax
call edi
mov byte [eax + esi - 1], bl
cmp dword [ebp + 0x304], ebx
jne 0x40e0d3
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 0x40e0cb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40e145
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea eax, [ebp + 0x1ec]
push eax
call fcn.0040dde2
test eax, eax
je 0x40e0c7
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40e0fa
xor eax, eax
inc eax
jmp 0x40e145
lea eax, [ebp + 0x1ec]
push eax
call fcn.0044a0c0
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.00448080
add ebp, 0x2f8
leave
ret 8
Function at 0x40e15f
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4755d0]
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.00448090
push esi
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], bl
call fcn.00448090
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 0x40e1f2
mov eax, esi
push eax
call edi
mov byte [eax + esi - 1], bl
push ebx
lea eax, [ebp + 0xac]
push eax
call fcn.0040dde2
test eax, eax
jne 0x40e207
xor eax, eax
jmp 0x40e282
lea eax, [ebp - 0x5c]
push eax
call fcn.0040df5e
test eax, eax
je 0x40e203
push str..
lea eax, [ebp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0xac]
push eax
call fcn.0044a0c0
mov byte [ebp + eax + 0xad], bl
lea eax, [ebp - 0x5c]
push eax
call fcn.0044a0c0
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.00448080
add ebp, 0x1b8
leave
ret 8
Function at 0x40e350
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 0x40e369
xor eax, eax
jmp 0x40e42e
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
cmp edi, 2
jne 0x40e37c
push 0xb
jmp 0x40e399
cmp edi, 3
jne 0x40e385
push 6
jmp 0x40e399
cmp edi, 4
jne 0x40e38e
push 5
jmp 0x40e399
cmp edi, 5
jne 0x40e397
push 0x1a
jmp 0x40e399
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x40e3d6
cmp dword [ebp - 4], ebx
je 0x40e3d6
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp byte [esi], bl
je 0x40e3d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x40e3d1
push 0x45c800
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x40e42d
cmp edi, 2
jne 0x40e3eb
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersStart_Menu
push 0x103
push esi
push ebx
push 3
jmp 0x40e41e
push 3
pop eax
cmp edi, eax
jne 0x40e3f9
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersFavorites
jmp 0x40e416
cmp edi, 4
jne 0x40e405
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersPersonal
jmp 0x40e416
cmp edi, 5
jne 0x40e411
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersLocal_AppData
jmp 0x40e416
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersDesktop
push 0x103
push esi
push ebx
push eax
call fcn.00442f38
xor eax, eax
add esp, 0x14
cmp byte [esi], bl
setne al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40e434
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4755d0]
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.00448090
add esp, 0xc
test ebx, ebx
je 0x40e47d
mov byte [ebx], 0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x40e48e
cmp byte [edi], 0
jne 0x40e493
mov edi, 0x45f444
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.00448080
add ebp, 0x90
leave
ret 8
Function at 0x40e4ce
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4755d0]
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.00448090
add esp, 0xc
test ebx, ebx
je 0x40e517
mov byte [ebx], 0
test esi, esi
je 0x40e52d
cmp byte [esi], 0
je 0x40e52d
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40e541
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 0x40e617
mov eax, 0x1000
cmp esi, eax
jbe 0x40e563
mov eax, esi
push 1
push eax
call fcn.00447e84
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 0x45c800
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e60c
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
test ebx, ebx
je 0x40e5e5
cmp dword [ebp + 0xa4], 0
je 0x40e5c4
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 0x40e5e5
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 0x40e5f0
push edi
call fcn.00447ab6
pop ecx
mov eax, esi
push 0x63
and eax, 0xffff
pop ecx
cmp eax, ecx
ja 0x40e600
mov ecx, eax
mov eax, esi
shr eax, 0x10
imul eax, eax, 0x64
add eax, ecx
jmp 0x40e619
test edi, edi
je 0x40e617
push edi
call fcn.00447ab6
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x94
leave
ret 0xc
Function at 0x40e633
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb0
mov eax, dword [0x4755d0]
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.00448090
add esp, 0xc
cmp esi, ebx
je 0x40e674
mov byte [esi], bl
cmp edi, ebx
je 0x40e779
cmp byte [edi], bl
je 0x40e779
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40e779
cmp byte [eax], bl
je 0x40e779
cmp esi, ebx
je 0x40e779
lea eax, [ebp - 0x44]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40e779
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 0x45c800
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 0x40e762
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 0x40e755
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 0x40e77b
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x6c
leave
ret 0xc
Function at 0x40e78f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4755d0]
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.00448090
mov eax, dword [ebp - 0x80]
add esp, 0xc
cmp eax, ebx
je 0x40e7e9
cmp dword [ebp + 0xa4], 1
jb 0x40e7e9
mov byte [eax], bl
cmp edi, ebx
je 0x40e8f6
cmp byte [edi], bl
je 0x40e8f6
cmp eax, ebx
je 0x40e8f6
cmp dword [ebp + 0xa4], 1
jb 0x40e8f6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, esi
jle 0x40e81e
mov eax, esi
jmp 0x40e826
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.0040d1b6
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e8f1
cmp edi, ebx
je 0x40e8f1
cmp dword [ebp + 0x9c], ebx
jge 0x40e888
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 0x40e8b0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
call esi
cmp eax, dword [ebp + 0x9c]
jae 0x40e8a0
push ebx
push edi
call esi
jmp 0x40e8a6
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 0x40e8c3
mov dword [ebp - 0x7c], ecx
jmp 0x40e8ca
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 0x40e8e4
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 0x40e8f8
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x90
leave
ret 0x10
Function at 0x40e912
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4755d0]
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.00448090
add esp, 0xc
mov dword [ebp - 0x80], ebx
cmp esi, ebx
je 0x40e966
cmp byte [esi], bl
je 0x40e966
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40e979
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.0040d1b6
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e9a7
xor eax, eax
jmp 0x40e9d7
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp esi, ebx
je 0x40e9bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x40e9a3
mov edx, dword [ebp - 0x80]
cmp edx, ebx
je 0x40e9d5
xor eax, eax
xor ecx, ecx
or eax, edi
or edx, ecx
jmp 0x40e9d9
mov eax, edi
xor edx, edx
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x8c
leave
ret 4
Function at 0x40e9f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.0040e912
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, edi
je 0x40eb60
cmp esi, 0xffffffff
je 0x40eb60
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push esi
call ebx
cmp eax, 0xffffffff
je 0x40eb60
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 0x14], edi
je 0x40eb52
xor eax, eax
inc eax
push eax
mov esi, 0x2000000
push esi
mov dword [ebp - 4], eax
call fcn.00447e84
pop ecx
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
je 0x40eb60
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x14], eax
ja 0x40eb3e
jae 0x40eb32
cmp dword [ebp - 4], edi
jbe 0x40eb3e
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00448090
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or ecx, eax
mov dword [ebp - 0x10], eax
jne 0x40eac7
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x1c], edi
je 0x40ead6
mov eax, dword [ebp - 0x18]
jmp 0x40ead8
xor eax, eax
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 8]
call ebx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], ecx
jne 0x40eafb
cmp eax, esi
jbe 0x40eb03
push edi
lea eax, [ebp - 4]
push eax
push esi
jmp 0x40eb0f
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jb 0x40ea9f
ja 0x40eb3e
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x18], eax
jb 0x40ea9f
push dword [ebp + 8]
call fcn.00447ab6
pop ecx
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40eb62
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40f246
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040e912
mov edi, eax
cmp edi, 1
jge 0x40f268
xor eax, eax
jmp 0x40f325
lea ecx, [edi + 0x100]
mov eax, 0x1000
cmp ecx, eax
jle 0x40f279
mov eax, ecx
push esi
push 1
push eax
call fcn.00447e84
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x40f2b6
cmp esi, ebx
je 0x40f2b2
push esi
call fcn.00447ab6
pop ecx
xor eax, eax
jmp 0x40f324
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f2fd
mov byte [esi + edi], bl
xor eax, eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
jle 0x40f2f8
mov cl, byte [eax + esi]
cmp cl, 0xd
je 0x40f2ee
cmp cl, 0xa
jne 0x40f2f2
inc dword [ebp - 4]
inc eax
inc eax
cmp eax, dword [ebp - 8]
jl 0x40f2e1
inc dword [ebp - 4]
jne 0x40f308
cmp edi, ebx
jle 0x40f308
mov dword [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x40f316
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40f321
push esi
call fcn.00447ab6
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x40f622
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c0]
push ebx
push esi
mov esi, dword [ebp + 0x1c8]
push edi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1cc]
push 7
xor ebx, ebx
mov dword [ebp - 0x60], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x80], ebx
rep stosd dword es:[edi], eax
mov edi, 0x103
push edi
lea eax, [ebp + 0xb1]
push ebx
push eax
mov dword [ebp - 0x54], ebx
mov byte [ebp + 0xb0], bl
call fcn.00448090
push 0xff
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], bl
call fcn.00448090
add esp, 0x18
cmp esi, ebx
je 0x40f733
cmp byte [esi], bl
je 0x40f733
push esi
lea eax, [ebp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov al, byte [ebp + 0xb0]
cmp al, bl
je 0x40f702
cmp al, 0x22
je 0x40f6df
cmp al, 0x20
je 0x40f6df
cmp al, 9
je 0x40f6df
cmp al, 0xa
jne 0x40f702
lea eax, [ebp + 0xb1]
push eax
call esi
inc eax
push eax
lea eax, [ebp + 0xb1]
push eax
lea eax, [ebp + 0xb0]
push eax
call fcn.00448130
add esp, 0xc
jmp 0x40f6c5
lea eax, [ebp + 0xb0]
push eax
call esi
jmp 0x40f72c
lea esi, [ebp + eax + 0xb0]
mov cl, byte [esi]
cmp cl, 0x22
je 0x40f72a
cmp cl, 0x20
je 0x40f72a
cmp cl, 9
je 0x40f72a
cmp cl, 0xa
jne 0x40f741
mov byte [esi], bl
dec eax
cmp eax, ebx
jg 0x40f70d
jmp 0x40f741
lea eax, [ebp + 0xb0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [ebp - 0x60]
cmp esi, ebx
jne 0x40f74f
xor eax, eax
jmp 0x40f7fa
lea eax, [ebp - 0x54]
push eax
mov byte [esi], bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40f748
push 0x20
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00448090
add esp, 0xc
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45f764
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [ebp - 0x58]
cmp edi, ebx
je 0x40f7a1
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f7a1
mov dword [ebp - 0x80], edi
jmp 0x40f7aa
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xb0]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], 0x40d283
mov dword [ebp - 0x70], 5
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov edi, eax
cmp edi, ebx
je 0x40f7ef
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x1b8
leave
ret 0x10