joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ed0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov eax, 0x2808
call fcn.0044d620
mov eax, dword [esp + 0x280c]
test eax, eax
jne 0x408eec
add esp, 0x2808
ret
push ebp
mov ebp, dword [esp + 0x2818]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x24], 0
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408ffb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
test edx, edx
jne 0x408f3d
mov dword [ebp], 2
jmp 0x408fa5
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x2800
pop edi
cmp edx, eax
jae 0x408f5f
mov eax, edx
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408f9e
lea eax, [esp + 0x10]
push 0x2800
push eax
call fcn.00408d60
add esp, 8
test eax, eax
jne 0x408fa5
mov dword [ebp], 3
jmp 0x408fa5
mov dword [ebp], 5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp], 0
jne 0x40900d
mov eax, dword [esp + 0x2818]
test eax, eax
je 0x408fe6
mov ecx, dword [esp + 0x2814]
push eax
push ecx
call fcn.00408db0
add esp, 8
test eax, eax
jne 0x408fe6
mov eax, dword [esp + 8]
mov dword [ebp], 4
pop esi
pop ebp
add esp, 0x2808
ret
mov dword [esp + 8], 1
pop esi
mov eax, dword [esp + 4]
pop ebp
add esp, 0x2808
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40900d
mov dword [ebp], 1
mov eax, dword [esp + 8]
pop esi
pop ebp
add esp, 0x2808
ret
Function at 0x40cca0
Capabilities:
Find taskbar
Get session user name

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004843a0
test eax, eax
je 0x40cd96
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
push 0
push str.Shell_TrayWnd
push 0
push 0
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x40cd10
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0040ce30
lea edx, [esp + 0x14]
push edx
call fcn.0044cee0
add esp, 4
test eax, eax
jne 0x40cd5a
push 0x41
push eax
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov esi, eax
test esi, esi
jne 0x40cd42
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push fcn.0040ce30
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.0044cee0
add esp, 4
cmp eax, ebx
jb 0x40cd78
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.0044ce7e
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x40ce06
lea edx, [esp + 0x14]
push edx
call fcn.0044cee0
add esp, 4
cmp eax, ebx
jb 0x40cde8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0044ce7e
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x40ce18
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x40d720
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
mov eax, 0x1f3
not ecx
dec ecx
push edi
mov ebx, ecx
push ebp
sub eax, ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40d760
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push esi
mov esi, 1
test byte [edi], 0x10
je 0x40d84c
mov al, byte [edi + 0x2c]
lea edx, [edi + 0x2c]
cmp al, 0x2e
jne 0x40d793
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x40d78b
mov cl, byte [edi + 0x2e]
test cl, cl
je 0x40d821
test al, al
je 0x40d821
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
cmp eax, ecx
jb 0x40d81d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx + ebp - 1], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x649714
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebp
call fcn.0040d720
mov byte [ebx + ebp - 1], 0x2a
add esp, 0x10
mov esi, eax
mov byte [ebx + ebp], 0
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x40d839
mov edx, dword [esp + 0x18]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d766
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0x2c]
push eax
push ecx
push ebp
mov byte [ebx + ebp - 1], 0
call dword [esp + 0x2c]
mov esi, eax
mov byte [ebx + ebp - 1], 0x2a
jmp 0x40d821
Function at 0x40e7f0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x40ea1f
push esi
call fcn.0044cee0
add esp, 4
test eax, eax
je 0x40ea1f
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.0040b290
add esp, 0x1c
test eax, eax
je 0x40ea1f
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x40ea1f
test al, 1
je 0x40e85c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x40e9f8
test ah, 4
je 0x40e882
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40e882
pop esi
mov eax, 1
pop ebp
add esp, 0x664
ret
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.0044ce7e
lea edx, [esp + 0x474]
push 0x649718
push edx
call fcn.0044ce54
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e9cf
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x40]
push 0x6485d8
push edx
call ebp
test eax, eax
je 0x40e9b2
lea eax, [esp + 0x40]
push 0x6485d4
push eax
call ebp
test eax, eax
je 0x40e9b2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x264]
push esi
push ecx
stosw word es:[edi], ax
call fcn.0044ce7e
lea edx, [esp + 0x26c]
push 0x6434a8
push edx
call fcn.0044ce54
lea eax, [esp + 0x50]
lea ecx, [esp + 0x274]
push eax
push ecx
call fcn.0044ce54
mov eax, dword [esp + 0x2c]
add esp, 0x18
test ah, 4
je 0x40e99a
mov eax, dword [esp + 0x38]
test eax, 0x20000000
jne 0x40e98a
cmp eax, reloc.OLEAUT32.dll_DispGetParam
jne 0x40e99a
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40e9b2
mov eax, dword [esp + 0x67c]
lea ecx, [esp + 0x264]
push eax
push ecx
call fcn.0040e7f0
add esp, 8
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e8f6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x40ea21
cmp dword [esp + 0x674], ebp
je 0x40ea21
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x40ea21
cmp dword [esp + 0x674], ebp
je 0x40ea21
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret
Function at 0x40ea30
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x40ebde
push esi
call fcn.0044cee0
add esp, 4
test eax, eax
je 0x40ebde
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.0040b290
add esp, 0x1c
test eax, eax
je 0x40ebde
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x40ebde
test al, 1
je 0x40ea9c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x40ebcb
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.0044ce7e
lea edx, [esp + 0x474]
push 0x649718
push edx
call fcn.0044ce54
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ebb6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x6485d8
push edx
call ebp
test eax, eax
je 0x40eb96
lea eax, [esp + 0x248]
push 0x6485d4
push eax
call ebp
test eax, eax
je 0x40eb96
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.0044ce7e
lea edx, [esp + 0x1c]
push 0x6434a8
push edx
call fcn.0044ce54
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0044ce54
lea edx, [esp + 0x2c]
push edx
call fcn.0040ea30
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40eb21
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x664
ret
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x664
ret

Function at 0x40f150
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x40f192
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40f192
push edi
push esi
call fcn.0040e590
add esp, 8
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40f1a0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x40f1cc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret
mov ebp, dword [esp + 0x21c]
push ebp
call ebx
cmp eax, 0xffffffff
je 0x40f283
test al, 1
je 0x40f1f5
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x40f283
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push 0x649ac4
push ecx
call fcn.0044cdc2
add esp, 0x10
lea edx, [esp + 0x14]
xor esi, esi
push edx
call ebx
cmp eax, 0xffffffff
je 0x40f270
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea eax, [esp + 0x1c]
push 0x649ac4
push eax
call fcn.0044cdc2
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebx
inc esi
cmp esi, 0xa
jge 0x40f1bf
cmp eax, 0xffffffff
jne 0x40f23c
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, dword [esp + 0x218]
mov eax, dword [esp + 0x220]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
mov esi, eax
call fcn.004110d0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x40f2b0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
push esi
mov esi, dword [esp + 0x414]
push edi
push esi
call ebx
cmp eax, 0xffffffff
jne 0x40f2dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
mov ebp, dword [esp + 0x41c]
push ebp
call ebx
cmp eax, 0xffffffff
je 0x40f392
test al, 1
je 0x40f305
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x40f392
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.0044cefd
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
cmp eax, 0xffffffff
je 0x40f37f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea eax, [esp + 0x1c]
push str._s.bak_08X
push eax
call fcn.0044cefd
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebx
inc esi
cmp esi, 0xa
jge 0x40f2cf
cmp eax, 0xffffffff
jne 0x40f34b
lea edx, [esp + 0x14]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, dword [esp + 0x418]
mov eax, dword [esp + 0x420]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebp
mov esi, eax
call fcn.00411110
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x40f3c0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eecdb
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
xor ebx, ebx
cmp edi, ebx
je 0x40f5a1
mov esi, dword [esp + 0x22c]
cmp esi, ebx
je 0x40f5a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x230]
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x40f41e
cmp eax, 0xffffffff
jne 0x40f5a1
push esi
lea ecx, [esp + 0x14]
call fcn.005df235
push 0x649ae8
lea ecx, [esp + 0x14]
mov dword [esp + 0x224], ebx
call fcn.005df5a3
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edi
call fcn.0040f1a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40f58d
mov eax, dword [esp + 0x234]
test eax, eax
je 0x40f484
mov edx, dword [esp + 0x10]
push edx
push edi
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40f5bc
mov eax, dword [esp + 0x10]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, eax
test ebx, ebx
jne 0x40f58d
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40f5c5
test al, 1
je 0x40f4b7
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
push eax
push esi
lea ecx, [esp + 0x20]
push 0x649ac4
push ecx
call fcn.0044cdc2
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
cmp eax, 0xffffffff
je 0x40f52e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
push eax
push esi
lea eax, [esp + 0x20]
push 0x649ac4
push eax
call fcn.0044cdc2
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc edi
cmp edi, 0xa
jge 0x40f582
cmp eax, 0xffffffff
jne 0x40f4fa
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x18]
push edx
push esi
call ebp
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push esi
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x40f56d
mov eax, dword [esp + 0x238]
test eax, eax
je 0x40f569
mov ecx, dword [esp + 0x10]
push 5
push esi
push ecx
call edi
mov ebx, eax
test ebx, ebx
je 0x40f57a
push 4
lea edx, [esp + 0x1c]
push 0
push edx
call edi
jmp 0x40f58d
lea eax, [esp + 0x18]
push esi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x220], 0xffffffff
call fcn.005df1c7
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x40f58d
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x40f58d
Function at 0x40f7e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eed52
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x170]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40f9f5
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f9f5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f9f5
test al, 0x10
je 0x40f9f5
push esi
lea ecx, [esp + 0x10]
call fcn.005df235
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], ebx
call fcn.005dcc0d
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x649714
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005df45c
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.005df1c7
cmp edi, 0xffffffff
mov ebx, 1
je 0x40f9dd
mov esi, dword [esp + 0x178]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x54]
push 0x6499fc
push eax
call ebp
test eax, eax
je 0x40f9c1
lea ecx, [esp + 0x54]
push 0x6499f8
push ecx
call ebp
test eax, eax
je 0x40f9c1
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.005df235
mov al, byte [esp + 0x28]
mov byte [esp + 0x170], bl
test al, 0x10
push 0x6433d8
je 0x40f954
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.005df45c
lea edx, [esp + 0x14]
mov byte [esp + 0x170], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005df3f6
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x178], 3
call fcn.0040f7e0
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.005df1c7
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x18]
jmp 0x40f9ab
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.005df45c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x17c], 4
call fcn.005df3f6
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 5
call fcn.005dd8c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 4
call fcn.005df1c7
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x20]
call fcn.005df1c7
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.005df1c7
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f8b1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.005df1c7
mov eax, ebx
jmp 0x40f9f7
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x40fa10
Capabilities:
Get graphical window text

Disassembly:
call fcn.004843f0
test eax, eax
je 0x40fa2f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x40fab0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40fab0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.005df898
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40fab0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x40fab0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.0042c990
add esp, 0x10
test eax, eax
je 0x40fab0
push esi
call fcn.0044cee0
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x40fb10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor ecx, ecx
xor edi, edi
xor eax, eax
mov esi, 0x200
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x40fb3a
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 1
jne 0x40fb46
mov esi, 0x400
jmp 0x40fbba
cmp eax, 2
jne 0x40fbba
xor eax, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], eax
push 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push 0x70000
push ebp
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [0x6844b0]
je 0x40fc24
test eax, eax
je 0x40fbae
push str.CDiskInfoHelper::ReadFileBySectorSize_2
push str.Asset
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x10
mov esi, dword [esp + 0x2c]
cmp esi, 0x200
jb 0x40fc1a
push esi
call fcn.005df898
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x40fc10
mov edx, dword [ebx]
push edx
call fcn.005df8c1
mov eax, dword [esp + 0x14]
add esp, 4
inc eax
mov dword [ebx], edi
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x40fb34
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test eax, eax
je 0x40fc1a
push str.CDiskInfoHelper::ReadFileBySectorSize_1
push str.Asset
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret