joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b548
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 0x42b561
test al, 0x10
jne 0x42b565
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x42b88e
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42b886
test al, 0x10
je 0x42b88a
xor eax, eax
jmp 0x42b890
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x42c054
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 0x42c0e3
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 0x42c0c8
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 0x42c0c8
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 0x42c0ea
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x42c0f0
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 0x42c20d
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 0x42c16d
mov eax, ebx
lea edx, [ebp - 0x50]
mov ecx, 0x50
call sub.rtl70.bpl__System__LStrFromArray_qqrr17System_AnsiStringpci
test esi, esi
je 0x42c187
lea edx, [ebp - 0x164]
mov eax, dword [ebx]
call sub.rtl70.bpl__Sysutils_Trim_qqrx17System_AnsiString
cmp dword [ebp - 0x164], 0
jne 0x42c1ef
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 0x42c214
lea eax, [ebp - 0x170]
mov edx, 4
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x42c6c4
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 0x42c7d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_CharIsDriveLetter_qqrxc
test al, al
jne 0x42c715
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, 0x42c7ec
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.0x42c742.0
jmp dword [eax*4 + 0x42c749]
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsRemovableDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c7b7
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsHardDisk]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c7b7
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsRemoteDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c7b7
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsCDRomDrive]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c7b7
mov edx, esi
mov eax, dword [sym.P_Interface.bpl__Jclresources__RsRamDisk]
call sub.rtl70.bpl__System_LoadResString_qqrp20System_TResStringRec
jmp 0x42c7b7
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 0x42c7dc
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 0x42d2e8
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 0x42d301
test al, 0x10
jne 0x42d305
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42d458
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov ebx, edx
mov esi, eax
mov byte [ebp - 1], 0
push 0
push 0
push 3
push 0
push 1
push 0x40000000
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42d545
xor eax, eax
push ebp
push 0x42d53e
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
call sub.rtl70.bpl__Sysutils_DateTimeToSystemTime_qqrx16System_TDateTimer11_SYSTEMTIME
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
test eax, eax
je 0x42d527
sub bl, 1
jb 0x42d4d5
je 0x42d4f1
dec bl
je 0x42d50d
jmp 0x42d527
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x42d527
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x42d527
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d545
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42d5e8
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov byte [ebp - 2], 0
mov eax, esi
call sym.P_Interface.bpl__Jclfileutils_IsDirectory_qqrx17System_AnsiString
test al, al
je 0x42d6f9
test bl, bl
je 0x42d61b
call fcn.0042d58c
test al, al
je 0x42d6f9
push 0
push 0x2000000
push 3
push 0
push 1
push 0x40000000
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42d6f9
xor eax, eax
push ebp
push 0x42d6f2
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
call sub.rtl70.bpl__Sysutils_DateTimeToSystemTime_qqrx16System_TDateTimer11_SYSTEMTIME
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov al, byte [ebp - 1]
sub al, 1
jb 0x42d689
je 0x42d6a5
dec al
je 0x42d6c1
jmp 0x42d6db
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x42d6db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x42d6db
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d6f9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov al, byte [ebp - 2]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42ded4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42df51
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x42df3b
lea eax, [ebp - 8]
mov edx, edi
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42df58
lea eax, [ebp - 8]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x42e5f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42e6aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x42e694
lea eax, [ebp - 0x10]
mov edx, edi
call sub.rtl70.bpl__System__LStrSetLength_qqrv
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x42e694
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42e6bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x42e694
cmp dword [ebp - 8], 0x34
jne 0x42e694
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e6b1
lea eax, [ebp - 0x10]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x42e768
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x42e77d
add esp, 0xfffffff0
call sub.rtl70.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, edi
call sym.P_Interface.bpl__Jclfileutils_FileExists_qqrx17System_AnsiString
test al, al
jne 0x42e7b3
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0xb
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsFileUtilsFileDoesNotExist]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileVersionInfoError_]
call sub.rtl70.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRecpx14System_TVarRecxi
call sub.rtl70.bpl__System__RaiseExcept_qqrv
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x42e7e6
mov ecx, dword [sym.P_Interface.bpl__Jclresources__RsFileUtilsNoVersionInfo]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Jclfileutils_EJclFileVersionInfoError_]
call sub.rtl70.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sub.rtl70.bpl__System__RaiseExcept_qqrv
lea eax, [ebx + 4]
mov edx, esi
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebx + 4]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
mov eax, ebx
call sym.P_Interface.bpl__Jclfileutils_TJclFileVersionInfo_ExtractData_qqrv
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x42e82e
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

Function at 0x431e78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0x50]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x431eb6
inc edi
xor ebp, ebp
mov edx, ebp
mov eax, dword [esi + 0x50]
call sub.rtl70.bpl__Classes_TList_Get_qqri
mov edx, ebx
xor dl, 1
mov byte [eax + 0x1fb], dl
mov edx, ebp
mov eax, dword [esi + 0x50]
call sub.rtl70.bpl__Classes_TList_Get_qqri
call sub.rtl70.bpl__Classes_TThread_Terminate_qqrv
inc ebp
dec edi
jne 0x431e8e
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433a48
Capabilities:
Parse pe header

Disassembly:
xor ecx, ecx
mov eax, edx
cmp word [eax], 0x5a4d
jne 0x433a68
add edx, dword [eax + 0x3c]
mov eax, edx
cmp dword [eax], 0x4550
jne 0x433a68
cmp word [eax + 0x5c], 3
sete cl
mov eax, ecx
ret
Function at 0x433fc4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 6], cx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4340d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
test eax, eax
jle 0x4340b4
cmp word [ebp - 6], 0xffff
je 0x434006
cmp word [ebp + 0xc], 0xffff
jne 0x434016
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call sym.P_Interface.bpl__Jclconsole_TJclScreenCursor_GetPosition_qqrv
mov dword [ebp - 0x10], eax
jmp 0x434026
mov ax, word [ebp - 6]
mov word [ebp - 0x10], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0xe], ax
cmp dword [ebp + 8], 0
je 0x43408a
mov eax, esi
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x433fa0]
call sub.rtl70.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov eax, esi
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x43406e
inc ebx
xor edi, edi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, dword [ebp - 0x14]
mov word [edx + edi*2], ax
inc edi
dec ebx
jne 0x43405b
mov ax, word [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov cx, word [ebp - 6]
mov edx, esi
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Jclconsole_TJclScreenBuffer_Write_qqrx17System_AnsiStringxsxspus
mov dword [ebp - 0xc], eax
jmp 0x4340b9
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov eax, esi
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
jmp 0x4340b9
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4340dc
lea eax, [ebp - 0x14]
mov edx, dword [0x433fa0]
call sub.rtl70.bpl__System__DynArrayClear_qqrrpvpv
ret
Function at 0x4340e8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
cmp cx, 0xffff
je 0x434103
cmp ax, 0xffff
jne 0x434110
mov eax, dword [ebx + 0xc]
call sym.P_Interface.bpl__Jclconsole_TJclScreenCursor_GetPosition_qqrv
mov dword [ebp - 8], eax
jmp 0x434118
mov word [ebp - 8], cx
mov word [ebp - 6], ax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x434144
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov eax, esi
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_WriteConsoleOutputAttribute
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov eax, esi
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
mov eax, esi
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_WriteConsoleOutputCharacterA
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4342e4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov word [ebp - 6], dx
mov ax, word [ebp - 2]
mov word [ebp - 4], ax
mov eax, esi
mov edx, ebx
call sub.rtl70.bpl__System__LStrSetLength_qqrv
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 6]
push ebx
mov eax, dword [esi]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_ReadConsoleOutputCharacterA
call sub.rtl70.bpl__Sysutils_Win32Check_qqri
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esi]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
call sub.rtl70.bpl__Sysutils_StrLen_qqrpxc
xor edx, edx
push edx
push eax
call sub.rtl70.bpl__Math_Min_qqrxjxj
mov edx, eax
mov eax, esi
call sub.rtl70.bpl__System__LStrSetLength_qqrv
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43629c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 8], 0
jbe 0x43635a
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x43635a
xor eax, eax
push ebp
push 0x436353
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [ebp - 8]
call sub.rtl70.bpl__System_Move_qqrpxvpvi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x10
je 0x436318
sub eax, 0x10
je 0x436318
sub eax, 0x20
je 0x436318
sub eax, 0x40
jne 0x43632b
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43635a
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x438644
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x438756
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x43867a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x438686
push 0x57
call sub.kernel32.dll_SetLastError
jmp 0x438740
test ebx, ebx
jne 0x43868f
mov ebx, 0x1000
push 0x9c41f4
call sub.kernel32.dll_InterlockedIncrement
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, dword [0x9c41f4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x24]
mov ecx, 2
mov eax, 0x438774
call sub.rtl70.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
push edi
push 0x1d4c0
push ebx
push ebx
push 1
push 0
push 0x40000001
mov eax, dword [ebp - 0xc]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x438740
push 0
push 0x80
push 3
push edi
push 0
push 0x40000000
mov eax, dword [ebp - 0xc]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x438732
call sub.kernel32.dll_GetLastError
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_SetLastError
jmp 0x438740
mov dword [esi], ebx
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43875d
lea eax, [ebp - 0xc]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret