joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4229e8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [sym.P_Interface.bpl__Jclsysinfo_IsWinNT]
mov al, byte [eax]
xor al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x422b72
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x422b6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x422a71
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x422a71
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x422b31
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
mov eax, dword [sym.P_Interface.bpl__Jclwin32_SECURITY_NT_AUTHORITY]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x422ac1
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x422ac6
call sub.rtl70.bpl__Sysutils_RaiseLastOSError_qqrv
mov eax, dword [ebp - 0x10]
call sub.rtl70.bpl__Sysutils_AllocMem_qqrui
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x422b31
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x422b2d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x10
cmp eax, 0x10
setne byte [ebp - 1]
jmp 0x422b31
inc ebx
dec esi
jne 0x422afa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422b72
cmp dword [ebp - 0x14], 0
je 0x422b4c
mov eax, dword [ebp - 0x14]
call sub.rtl70.bpl__System__FreeMem_qqrpv
cmp byte [ebp - 0x15], 0
je 0x422b5b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 8], 0
je 0x422b6a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4277e8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x4277fd
add esp, 0xfffffff0
call sub.rtl70.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x10]
xor edx, edx
mov eax, ebx
call sub.rtl70.bpl__System_TObject__bctr_qqrv
test edi, edi
jne 0x42782b
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsViewNeedsMapping]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
mov eax, edi
mov dword [ebx + 0x10], eax
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 8]
call sym.P_Interface.bpl__Jclsysinfo_RoundToAllocGranularity64_qqrrjo
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call sym.P_Interface.bpl__Jclbase_I64ToCardinals_qqrjruit2
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
push esi
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x427892
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsCreateFileMappingView]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
test esi, esi
jne 0x4278d9
mov eax, edi
mov edx, dword [sym.P_Interface.bpl__Jclfileutils_TJclFileMapping_]
call sub.rtl70.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x4278d9
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x4278d9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsFailedToObtainSize]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call sub.rtl70.bpl__Classes_TCustomMemoryStream_SetPointer_qqrpvi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
mov edx, ebx
call sub.rtl70.bpl__Classes_TList_Add_qqrpv
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x427909
call sub.rtl70.bpl__System__AfterConstruction_qqrp14System_TObject
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x427914
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x427929
add esp, 0xfffffff0
call sub.rtl70.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x14]
xor edx, edx
mov eax, ebx
call sub.rtl70.bpl__System_TObject__bctr_qqrv
test edi, edi
jne 0x427957
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsViewNeedsMapping]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
mov eax, edi
mov dword [ebx + 0x10], eax
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 0xc]
call sym.P_Interface.bpl__Jclsysinfo_RoundToAllocGranularity64_qqrrjo
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 8]
call sym.P_Interface.bpl__Jclsysinfo_RoundToAllocGranularityPtr_qqrrpvo
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call sym.P_Interface.bpl__Jclbase_I64ToCardinals_qqrjruit2
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp + 8]
push edx
push esi
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_MapViewOfFileEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4279d4
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsCreateFileMappingView]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
test esi, esi
jne 0x427a1b
mov eax, edi
mov edx, dword [sym.P_Interface.bpl__Jclfileutils_TJclFileMapping_]
call sub.rtl70.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x427a1b
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x427a1b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsFailedToObtainSize]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call sub.rtl70.bpl__Classes_TCustomMemoryStream_SetPointer_qqrpvi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
mov edx, ebx
call sub.rtl70.bpl__Classes_TList_Add_qqrpv
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x427a4b
call sub.rtl70.bpl__System__AfterConstruction_qqrp14System_TObject
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x428060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x428075
add esp, 0xfffffff0
call sub.rtl70.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call sub.rtl70.bpl__System_TObject__bctr_qqrv
movzx edx, si
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__Sysutils_FileOpen_qqrx17System_AnsiStringui
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x4280a3
call sub.rtl70.bpl__Sysutils_RaiseLastOSError_qqrv
and si, 0xf
cmp si, 2
jne 0x4280b9
mov esi, 8
mov edi, 1
jmp 0x4280c3
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4280fc
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_TJclFileMappingStream_Close_qqrv
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsCreateFileMapping]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x428130
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_TJclFileMappingStream_Close_qqrv
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsCreateFileMappingView]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
jne 0x428164
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_TJclFileMappingStream_Close_qqrv
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsFailedToObtainSize]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileMappingViewError_]
call sym.P_Interface.bpl__Jclwin32_EJclWin32Error__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
mov ecx, eax
mov edx, esi
mov eax, ebx
call sub.rtl70.bpl__Classes_TCustomMemoryStream_SetPointer_qqrpvi
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x428186
call sub.rtl70.bpl__System__AfterConstruction_qqrp14System_TObject
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x42adf4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x42aec2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
mov edx, 0x1e
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 2
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Jclfileutils_PathRemoveSeparator_qqrx17System_AnsiString
lea eax, [ebp - 0x2c]
mov edx, 0x42aed8
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x2c]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0x1e], eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call sym.P_Interface.bpl__Jclfileutils_PathRemoveSeparator_qqrx17System_AnsiString
lea eax, [ebp - 0x30]
mov edx, 0x42aed8
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x30]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x254
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aec9
lea eax, [ebp - 0x30]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x42aedc
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x42afaa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
mov edx, 0x1e
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 1
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Jclfileutils_PathRemoveSeparator_qqrx17System_AnsiString
lea eax, [ebp - 0x2c]
mov edx, 0x42afc0
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x2c]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0x1e], eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call sym.P_Interface.bpl__Jclfileutils_PathRemoveSeparator_qqrx17System_AnsiString
lea eax, [ebp - 0x30]
mov edx, 0x42afc0
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x30]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x254
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42afb1
lea eax, [ebp - 0x30]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x42afd0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x42b1b0
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x42b021
lea edx, [ebp - 0x24]
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsDelTreePathIsEmpty]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
mov eax, dword [ebp - 0x24]
mov ecx, 0xcf6
mov edx, 0x42b1c8
call sub.rtl70.bpl__System__Assert_qqrx17System_AnsiStringt1i
mov byte [ebp - 9], 1
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TStringList_]
call sub.rtl70.bpl__System_TObject__bctr_qqrv
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42b146
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x14]
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_PathRemoveSeparator_qqrx17System_AnsiString
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x42b210
mov edx, dword [ebp - 0x14]
call sub.rtl70.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, 0x3f
call sym.P_Interface.bpl__Jclfileutils_BuildFileList_qqrx17System_AnsiStringxipx16Classes_TStringso
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x42b130
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x14]
push 0x42b220
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 3
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov bl, 1
mov eax, dword [ebp - 0x18]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42b0db
test al, 0x10
je 0x42b0db
mov ecx, dword [ebp - 8]
mov dl, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
call sym.P_Interface.bpl__Jclfileutils_DelTreeEx_qqrx17System_AnsiStringopqqrx17System_AnsiStringui_o
mov ebx, eax
jmp 0x42b116
cmp dword [ebp - 8], 0
je 0x42b0eb
mov edx, eax
mov eax, dword [ebp - 0x18]
call dword [ebp - 8]
mov ebx, eax
test bl, bl
je 0x42b116
push 0x80
mov eax, dword [ebp - 0x18]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x42b116
mov eax, dword [ebp - 0x18]
call sub.rtl70.bpl__Sysutils_DeleteFile_qqrx17System_AnsiString
mov ebx, eax
test bl, bl
jne 0x42b124
mov byte [ebp - 9], 0
cmp byte [ebp - 1], 0
jne 0x42b130
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x42b08a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b14d
lea eax, [ebp - 0x10]
call sub.rtl70.bpl__Sysutils_FreeAndNil_qqrpv
ret
Function at 0x42b224
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42b23d
test al, 0x10
jne 0x42b241
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42b54c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x42b56a
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42b562
test al, 0x10
je 0x42b566
xor eax, eax
jmp 0x42b56c
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x42bd30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42bdbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sym.P_Interface.bpl__Jclfileutils_PathGetTempPath_qqrv
cmp dword [ebp - 4], 0
je 0x42bda4
lea eax, [ebp - 8]
mov edx, 0x104
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x42bda4
lea eax, [ebp - 8]
call sym.P_Interface.bpl__Jclstrings_StrResetLength_qqrr17System_AnsiString
mov eax, ebx
mov edx, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bdc6
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x42bdcc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x164], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x42bee9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x160]
mov edx, 0x160
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
push 0x410
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
mov eax, edi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
je 0x42be49
mov eax, ebx
lea edx, [ebp - 0x50]
mov ecx, 0x50
call sub.rtl70.bpl__System__LStrFromArray_qqrr17System_AnsiStringpci
test esi, esi
je 0x42be63
lea edx, [ebp - 0x164]
mov eax, dword [ebx]
call sub.rtl70.bpl__Sysutils_Trim_qqrx17System_AnsiString
cmp dword [ebp - 0x164], 0
jne 0x42becb
mov edx, ebx
mov eax, edi
call sub.rtl70.bpl__Sysutils_ExtractFileExt_qqrx17System_AnsiString
mov eax, ebx
mov ecx, 1
mov edx, 1
call sub.rtl70.bpl__System__LStrDelete_qqrv
lea edx, [ebp - 0x16c]
mov eax, dword [ebx]
call sub.rtl70.bpl__Sysutils_UpperCase_qqrx17System_AnsiString
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x170]
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsDefaultFileTypeName]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
mov edx, dword [ebp - 0x170]
pop eax
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call sub.rtl70.bpl__Sysutils_TrimLeft_qqrx17System_AnsiString
mov edx, dword [ebp - 0x168]
mov eax, ebx
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bef0
lea eax, [ebp - 0x170]
mov edx, 4
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x42c3a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42c4b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_CharIsDriveLetter_qqrxc
test al, al
jne 0x42c3f1
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], 2
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsPathInvalidDrive]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclPathError_]
call sub.rtl70.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sub.rtl70.bpl__System__RaiseExcept_qqrv
lea eax, [ebp - 0x10]
mov edx, ebx
call sub.rtl70.bpl__System__LStrFromChar_qqrr17System_AnsiStringc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x42c4c8
call sub.rtl70.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x42c41e.0
jmp dword [eax*4 + 0x42c425]
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsRemovableDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c493
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsHardDisk]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c493
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsRemoteDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c493
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsCDRomDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c493
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsRamDisk]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c493
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsUnknownDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c4b8
lea eax, [ebp - 0x10]
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret

Function at 0x42cfc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42cfdd
test al, 0x10
jne 0x42cfe1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret