Function at 0x45447c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__DynArrayAddRef_qqrpv
xor eax, eax
push ebp
push 0x4547d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArrayClear_qqrrpvpv
cmp dword [ebp - 4], 0
je 0x4547b5
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
mov dword [ebp - 0x18], eax
cmp dword [edi + 0xc], 2
jne 0x45463b
mov eax, dword [ebp - 0x18]
and eax, 0x8000000f
jns 0x4544ea
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
je 0x454504
mov ecx, 0x4547f0
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
push 0x10
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
lea eax, [ebp - 0x10]
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArrayClear_qqrrpvpv
cmp dword [edi + 4], 1
jne 0x454571
push 0x10
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov byte [eax + ebx], 0
inc ebx
cmp ebx, 0x10
jne 0x454564
xor esi, esi
cmp esi, dword [ebp - 0x18]
jge 0x4545f2
mov eax, dword [ebp - 8]
push eax
push 0
push 0x10
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00453de0
cmp dword [edi + 4], 1
jne 0x4545d2
test esi, esi
jle 0x4545bb
xor ebx, ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 0xc]
xor byte [edx + ebx], al
inc ebx
cmp ebx, 0x10
jne 0x4545a8
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x10
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
push esi
push 0x10
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
add esi, 0x10
cmp esi, dword [ebp - 0x18]
jl 0x454578
cmp dword [edi + 0x10], 1
je 0x4547b5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
movzx ebx, byte [edx + eax - 1]
cmp bl, 0x10
jbe 0x454617
mov bl, 1
movzx eax, bl
mov edx, dword [ebp - 0x18]
sub edx, eax
push edx
mov eax, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
jmp 0x4547b5
mov eax, dword [ebp - 0x18]
dec eax
and eax, 0x8000000f
jns 0x45464b
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
je 0x454665
mov ecx, 0x4547f0
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
movzx ebx, byte [eax + edx - 1]
cmp bl, 0x10
jbe 0x45468b
mov ecx, 0x4547f0
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
movzx eax, bl
mov edx, dword [ebp - 0x18]
sub edx, eax
push edx
mov eax, dword [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
push 0x10
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
lea eax, [ebp - 0x10]
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArrayClear_qqrrpvpv
cmp dword [edi + 4], 1
jne 0x4546fd
push 0x10
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov byte [eax + ebx], 0
inc ebx
cmp ebx, 0x10
jne 0x4546f0
xor esi, esi
jmp 0x4547a9
mov eax, dword [ebp - 8]
push eax
push 0
push 0x10
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00453de0
cmp dword [edi + 4], 1
jne 0x45475e
test esi, esi
jle 0x454747
xor ebx, ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 0xc]
xor byte [edx + ebx], al
inc ebx
cmp ebx, 0x10
jne 0x454734
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x10
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
mov eax, dword [ebp - 0x18]
dec eax
sub eax, 0x10
cmp esi, eax
jne 0x45478e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
push esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
sub eax, esi
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
jmp 0x4547a6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
push esi
push 0x10
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [sym.imp.dac170.bpl__Clrclasses_Buffer_]
call sub.dac170.bpl__Clrclasses_Buffer_BlockCopy_qqrx25System__DynamicArray_tuc_it1ii
add esi, 0x10
mov eax, dword [ebp - 0x18]
dec eax
cmp esi, eax
jl 0x454704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4547dd
lea eax, [ebp - 0x10]
mov edx, dword [0x418ccc]
mov ecx, 4
call sub.rtl170.bpl__System__FinalizeArray_qqrpvt1ui
ret