joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421f18
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x422034
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x168]
mov eax, dword [esi + 0x18]
call sub.rtl70.bpl__Sysutils_ExtractFileExt_qqrx17System_AnsiString
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 4]
call sub.rtl70.bpl__Sysutils_LowerCase_qqrx17System_AnsiString
mov eax, dword [ebp - 4]
mov edx, 0x42204c
call sub.rtl70.bpl__System__LStrCmp_qqrv
jne 0x421f75
mov eax, dword [esi + 0x18]
call sym.P_Interface.bpl__Jclfileutils_FileExists_qqrx17System_AnsiString
test al, al
test ebx, ebx
jne 0x421fad
mov eax, dword [ebp - 4]
mov edx, 0x42205c
call sub.rtl70.bpl__System__LStrCmp_qqrv
je 0x421f97
mov eax, dword [ebp - 4]
mov edx, 0x42206c
call sub.rtl70.bpl__System__LStrCmp_qqrv
jne 0x421fad
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x18]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.shell32.dll_ExtractIconA
mov ebx, eax
test ebx, ebx
jne 0x421fd3
mov eax, dword [esi + 0x10]
call sym.P_Interface.bpl__Jclfileutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x421fd3
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x10]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.shell32.dll_ExtractIconA
mov ebx, eax
test ebx, ebx
jne 0x422013
cmp dword [esi + 0xc], 0
je 0x422013
lea eax, [ebp - 0x164]
mov edx, 0x160
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
push 0x108
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [esi + 0xc]
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x422013
mov ebx, dword [ebp - 0x164]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42203b
lea eax, [ebp - 0x168]
call sub.rtl70.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret

Function at 0x4223ce
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, edx
mov esi, eax
mov eax, esp
mov edx, 0x160
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
test ebx, ebx
jne 0x4223bd
mov ebx, 4
or ebx, 0x4000
push ebx
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x4223f0
call sub.shell32.dll_SHGetFileInfoA
mov ecx, esi
mov edx, eax
xor eax, eax
call fcn.00403ea4
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4223f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x3c]
mov edx, 0x3c
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x600
mov eax, ebx
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0x2c], eax
mov eax, esi
call sym.P_Interface.bpl__Jclsysutils_PCharOrNil_qqrx17System_AnsiString
mov dword [ebp - 0x28], eax
mov eax, edi
call sym.P_Interface.bpl__Jclsysutils_PCharOrNil_qqrx17System_AnsiString
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42245c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp + 0x10]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, edi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push ebx
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4224a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x48]
mov eax, edi
mov edx, 0x3c
call sym.P_Interface.bpl__Jclsysutils_ResetMemory_qqrpvi
mov dword [edi], 0x3c
mov dword [edi + 4], 0x740
mov eax, ebx
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Jclsysutils_PCharOrNil_qqrx17System_AnsiString
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 8]
call sym.P_Interface.bpl__Jclsysutils_PCharOrNil_qqrx17System_AnsiString
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 8]
call sym.P_Interface.bpl__Jclsysutils_PCharOrNil_qqrx17System_AnsiString
mov dword [edi + 0x18], eax
push edi
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x42256c
push 0xffffffffffffffff
mov eax, dword [edi + 0x38]
push eax
call sub.user32.dll_WaitForInputIdle
jmp 0x422551
xor eax, eax
mov dword [esi], eax
push 1
push 0
push 0
mov eax, dword [edi + 8]
push eax
push esi
call sub.user32.dll_PeekMessageA
mov ebx, eax
test ebx, ebx
je 0x42254d
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
test ebx, ebx
jne 0x422527
push 0xa
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x422527
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x422d0c
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 0x422e96
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 0x422e8f
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 0x422d95
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x422d95
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 0x422e55
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 0x422de5
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x422dea
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 0x422e55
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 0x422e51
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x10
cmp eax, 0x10
setne byte [ebp - 1]
jmp 0x422e55
inc ebx
dec esi
jne 0x422e1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422e96
cmp dword [ebp - 0x14], 0
je 0x422e70
mov eax, dword [ebp - 0x14]
call sub.rtl70.bpl__System__FreeMem_qqrpv
cmp byte [ebp - 0x15], 0
je 0x422e7f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 8], 0
je 0x422e8e
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 0x427b0c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x427b21
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 0x427b4f
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 0x427bb6
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 0x427bfd
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 0x427bfd
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x427bfd
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 0x427c2d
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 0x427c38
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x427c4d
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 0x427c7b
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 0x427cf8
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 0x427d3f
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 0x427d3f
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x427d3f
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 0x427d6f
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 0x428384
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x428399
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 0x4283c7
call sub.rtl70.bpl__Sysutils_RaiseLastOSError_qqrv
and si, 0xf
cmp si, 2
jne 0x4283dd
mov esi, 8
mov edi, 1
jmp 0x4283e7
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 0x428420
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 0x428454
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 0x428488
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 0x4284aa
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 0x42b118
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 0x42b1e6
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, 0x42b1fc
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, 0x42b1fc
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 0x42b1ed
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 0x42b200
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 0x42b2ce
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, 0x42b2e4
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, 0x42b2e4
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 0x42b2d5
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 0x42b2f4
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 0x42b4d4
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x42b345
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, 0x42b4ec
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 0x42b46a
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, 0x42b534
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 0x42b454
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x14]
push 0x42b544
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 0x42b3ff
test al, 0x10
je 0x42b3ff
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 0x42b43a
cmp dword [ebp - 8], 0
je 0x42b40f
mov edx, eax
mov eax, dword [ebp - 0x18]
call dword [ebp - 8]
mov ebx, eax
test bl, bl
je 0x42b43a
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 0x42b43a
mov eax, dword [ebp - 0x18]
call sub.rtl70.bpl__Sysutils_DeleteFile_qqrx17System_AnsiString
mov ebx, eax
test bl, bl
jne 0x42b448
mov byte [ebp - 9], 0
cmp byte [ebp - 1], 0
jne 0x42b454
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x42b3ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b471
lea eax, [ebp - 0x10]
call sub.rtl70.bpl__Sysutils_FreeAndNil_qqrpv
ret