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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4705d0]
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 0x40cf8c
cmp byte [esi], bl
je 0x40cf8c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jge 0x40cf8c
push ebx
push esi
call fcn.0040cd63
test eax, eax
je 0x40cf28
xor eax, eax
inc eax
jmp 0x40cf8e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cf8c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x40cf85
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.00448550
pop ecx
pop ecx
cmp eax, ebx
je 0x40cf8c
mov byte [eax], bl
lea eax, [ebp - 0x10c]
push eax
call fcn.0040cedf
cmp eax, ebx
je 0x40cf8e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x40cf8e
call edi
cmp eax, 2
je 0x40cf75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
leave
ret 4

Function at 0x40cf9f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x4705d0]
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 eax, [ebp + 0x1ec]
lea esi, [ebp + 0x1ec]
push eax
dec esi
call edi
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x40d004
lea eax, [ebp + 0x1ec]
push eax
call edi
mov byte [eax + esi], bl
cmp dword [ebp + 0x304], ebx
jne 0x40d05b
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 0x40d053
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40d0cd
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea eax, [ebp + 0x1ec]
push eax
call fcn.0040cd63
test eax, eax
je 0x40d04f
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40d082
xor eax, eax
inc eax
jmp 0x40d0cd
lea eax, [ebp + 0x1ec]
push eax
call fcn.00448580
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.004464bf
add ebp, 0x2f8
leave
ret 8
Function at 0x40d0e7
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4705d0]
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.004464f0
push esi
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], bl
call fcn.004464f0
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 eax, [ebp + 0xac]
lea esi, [ebp + 0xac]
push eax
dec esi
call edi
cmp byte [eax + esi], 0x5c
jne 0x40d181
lea eax, [ebp + 0xac]
push eax
call edi
mov byte [eax + esi], bl
push ebx
lea eax, [ebp + 0xac]
push eax
call fcn.0040cd63
test eax, eax
jne 0x40d196
xor eax, eax
jmp 0x40d211
lea eax, [ebp - 0x5c]
push eax
call fcn.0040cedf
test eax, eax
je 0x40d192
push str..
lea eax, [ebp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0xac]
push eax
call fcn.00448580
mov byte [ebp + eax + 0xad], bl
lea eax, [ebp - 0x5c]
push eax
call fcn.00448580
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.004464bf
add ebp, 0x1b8
leave
ret 8
Function at 0x40d2df
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 0x40d2f8
xor eax, eax
jmp 0x40d389
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
cmp edi, 2
jne 0x40d30b
push 0xb
jmp 0x40d316
cmp edi, 3
jne 0x40d314
push 6
jmp 0x40d316
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x40d353
cmp dword [ebp - 4], ebx
je 0x40d353
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp byte [esi], bl
je 0x40d34e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x40d34e
push 0x45a954
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x40d388
cmp edi, 2
jne 0x40d35f
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersStart_Menu
jmp 0x40d370
cmp edi, 3
jne 0x40d36b
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersFavorites
jmp 0x40d370
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_FoldersDesktop
push 0x103
push esi
push ebx
push 3
call fcn.0044129f
xor eax, eax
add esp, 0x14
cmp byte [esi], bl
setne al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d38f
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4705d0]
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.004464f0
add esp, 0xc
test ebx, ebx
je 0x40d3d8
mov byte [ebx], 0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x40d3e9
cmp byte [edi], 0
jne 0x40d3ee
mov edi, 0x45c2bc
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.004464bf
add ebp, 0x90
leave
ret 8
Function at 0x40d429
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4705d0]
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.004464f0
add esp, 0xc
test ebx, ebx
je 0x40d472
mov byte [ebx], 0
test esi, esi
je 0x40d488
cmp byte [esi], 0
je 0x40d488
push esi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d49c
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 0x40d572
mov eax, 0x1000
cmp esi, eax
jbe 0x40d4be
mov eax, esi
push 1
push eax
call fcn.004462a8
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 0x45a954
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d567
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
test ebx, ebx
je 0x40d540
cmp dword [ebp + 0xa4], 0
je 0x40d51f
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 0x40d540
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 0x40d54b
push edi
call fcn.00445e06
pop ecx
mov eax, esi
push 0x63
and eax, 0xffff
pop ecx
cmp eax, ecx
ja 0x40d55b
mov ecx, eax
mov eax, esi
shr eax, 0x10
imul eax, eax, 0x64
add eax, ecx
jmp 0x40d574
test edi, edi
je 0x40d572
push edi
call fcn.00445e06
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x94
leave
ret 0xc
Function at 0x40d58e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb0
mov eax, dword [0x4705d0]
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.004464f0
add esp, 0xc
cmp esi, ebx
je 0x40d5cf
mov byte [esi], bl
cmp edi, ebx
je 0x40d6d4
cmp byte [edi], bl
je 0x40d6d4
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40d6d4
cmp byte [eax], bl
je 0x40d6d4
cmp esi, ebx
je 0x40d6d4
lea eax, [ebp - 0x44]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40d6d4
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 0x45a954
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 0x40d6bd
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov ecx, eax
inc ecx
mov eax, 0x103
cmp ecx, eax
jg 0x40d6b0
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 0x40d6d6
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x6c
leave
ret 0xc
Function at 0x40d6ea
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4705d0]
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.004464f0
mov eax, dword [ebp - 0x80]
add esp, 0xc
cmp eax, ebx
je 0x40d744
cmp dword [ebp + 0xa4], 1
jb 0x40d744
mov byte [eax], bl
cmp edi, ebx
je 0x40d851
cmp byte [edi], bl
je 0x40d851
cmp eax, ebx
je 0x40d851
cmp dword [ebp + 0xa4], 1
jb 0x40d851
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, esi
jle 0x40d779
mov eax, esi
jmp 0x40d781
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.0040c130
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 0x40d84c
cmp edi, ebx
je 0x40d84c
cmp dword [ebp + 0x9c], ebx
jge 0x40d7e3
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 0x40d80b
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
call esi
cmp eax, dword [ebp + 0x9c]
jae 0x40d7fb
push ebx
push edi
call esi
jmp 0x40d801
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 0x40d81e
mov dword [ebp - 0x7c], ecx
jmp 0x40d825
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 0x40d83f
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 0x40d853
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x90
leave
ret 0x10
Function at 0x40d86d
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4705d0]
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.004464f0
add esp, 0xc
mov dword [ebp - 0x80], ebx
cmp esi, ebx
je 0x40d8c1
cmp byte [esi], bl
je 0x40d8c1
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d8d4
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.0040c130
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 0x40d902
xor eax, eax
jmp 0x40d932
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp esi, ebx
je 0x40d91a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x40d8fe
mov edx, dword [ebp - 0x80]
cmp edx, ebx
je 0x40d930
xor eax, eax
xor ecx, ecx
or eax, edi
or edx, ecx
jmp 0x40d934
mov eax, edi
xor edx, edx
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x8c
leave
ret 4
Function at 0x40d94e
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.0040d86d
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 0x40dabb
cmp esi, 0xffffffff
je 0x40dabb
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 0x40dabb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 0x14], edi
je 0x40daad
xor eax, eax
inc eax
push eax
mov esi, 0x2000000
push esi
mov dword [ebp - 4], eax
call fcn.004462a8
pop ecx
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
je 0x40dabb
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x14], eax
ja 0x40da99
jae 0x40da8d
cmp dword [ebp - 4], edi
jbe 0x40da99
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004464f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or ecx, eax
mov dword [ebp - 0x10], eax
jne 0x40da22
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x1c], edi
je 0x40da31
mov eax, dword [ebp - 0x18]
jmp 0x40da33
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 0x40da56
cmp eax, esi
jbe 0x40da5e
push edi
lea eax, [ebp - 4]
push eax
push esi
jmp 0x40da6a
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 0x40d9fa
ja 0x40da99
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x18], eax
jb 0x40d9fa
push dword [ebp + 8]
call fcn.00445e06
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 0x40dabd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e176
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.0040d86d
mov edi, eax
cmp edi, 1
jge 0x40e198
xor eax, eax
jmp 0x40e255
lea ecx, [edi + 0x100]
mov eax, 0x1000
cmp ecx, eax
jle 0x40e1a9
mov eax, ecx
push esi
push 1
push eax
call fcn.004462a8
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 0x40e1e6
cmp esi, ebx
je 0x40e1e2
push esi
call fcn.00445e06
pop ecx
xor eax, eax
jmp 0x40e254
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 0x40e22d
mov byte [esi + edi], bl
xor eax, eax
cmp dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jle 0x40e228
mov cl, byte [eax + esi]
cmp cl, 0xd
je 0x40e21e
cmp cl, 0xa
jne 0x40e222
inc dword [ebp - 4]
inc eax
inc eax
cmp eax, dword [ebp - 8]
jl 0x40e211
inc dword [ebp - 4]
jne 0x40e238
cmp edi, ebx
jle 0x40e238
mov dword [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x40e246
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x40e251
push esi
call fcn.00445e06
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x40e54a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4705d0]
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.004464f0
push 0xff
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], bl
call fcn.004464f0
add esp, 0x18
cmp esi, ebx
je 0x40e65b
cmp byte [esi], bl
je 0x40e65b
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 0x40e62a
cmp al, 0x22
je 0x40e607
cmp al, 0x20
je 0x40e607
cmp al, 9
je 0x40e607
cmp al, 0xa
jne 0x40e62a
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.00446570
add esp, 0xc
jmp 0x40e5ed
lea eax, [ebp + 0xb0]
push eax
call esi
jmp 0x40e654
lea esi, [ebp + eax + 0xb0]
mov cl, byte [esi]
cmp cl, 0x22
je 0x40e652
cmp cl, 0x20
je 0x40e652
cmp cl, 9
je 0x40e652
cmp cl, 0xa
jne 0x40e669
mov byte [esi], bl
dec eax
cmp eax, ebx
jg 0x40e635
jmp 0x40e669
lea eax, [ebp + 0xb0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [ebp - 0x60]
cmp esi, ebx
jne 0x40e677
xor eax, eax
jmp 0x40e722
lea eax, [ebp - 0x54]
push eax
mov byte [esi], bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x40e670
push 0x20
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004464f0
add esp, 0xc
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45c514
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [ebp - 0x58]
cmp edi, ebx
je 0x40e6c9
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e6c9
mov dword [ebp - 0x80], edi
jmp 0x40e6d2
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], 0x40c1fd
mov dword [ebp - 0x70], 5
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov edi, eax
cmp edi, ebx
je 0x40e717
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.004464bf
add ebp, 0x1b8
leave
ret 0x10