Function at 0x4547f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
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 0x454b77
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 0x454b56
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
mov dword [ebp - 0x18], eax
cmp dword [edi + 8], 2
je 0x45485f
cmp dword [edi + 0x10], 1
jne 0x454881
cmp dword [ebp - 0x18], 0x20
jl 0x454881
mov eax, dword [ebp - 0x18]
and eax, 0x8000000f
jns 0x45486e
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x454878
mov byte [ebp - 0x19], 0x10
jmp 0x4548a1
mov dl, 0x10
sub dl, al
mov byte [ebp - 0x19], dl
jmp 0x4548a1
mov eax, dword [ebp - 0x18]
and eax, 0x8000000f
jns 0x454890
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x45489a
mov byte [ebp - 0x19], 0
jmp 0x4548a1
mov dl, 0x10
sub dl, al
mov byte [ebp - 0x19], dl
cmp dword [edi + 0xc], 2
jne 0x4548c7
movzx eax, byte [ebp - 0x19]
add 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
jmp 0x4548e6
movzx eax, byte [ebp - 0x19]
add eax, dword [ebp - 0x18]
inc eax
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 0x45492a
push 0x10
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x418ccc]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
cmp dword [edi + 0xc], 2
jne 0x454a7c
xor esi, esi
jmp 0x4549ed
xor ebx, ebx
mov eax, dword [ebp - 8]
movzx edx, byte [ebp - 0x19]
mov byte [eax + ebx], dl
inc ebx
cmp ebx, 0x10
jne 0x45493d
lea eax, [esi + 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x45496e
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
jmp 0x454989
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x18]
sub eax, esi
push eax
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
cmp dword [edi + 4], 1
jne 0x4549a8
test esi, esi
jle 0x4549a8
xor ebx, ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 8]
xor byte [edx + ebx], al
inc ebx
cmp ebx, 0x10
jne 0x454995
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004536ec
cmp dword [edi + 4], 1
jne 0x4549d2
mov eax, dword [ebp - 0x10]
push eax
push 0
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
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 - 0x14]
mov eax, dword [eax]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
cmp esi, eax
jl 0x45493b
cmp esi, 0x10
jne 0x454b56
xor ebx, ebx
mov eax, dword [ebp - 8]
movzx edx, byte [ebp - 0x19]
mov byte [eax + ebx], dl
inc ebx
cmp ebx, 0x10
jne 0x454a0a
cmp dword [edi + 4], 1
jne 0x454a35
xor ebx, ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 8]
xor byte [edx + ebx], al
inc ebx
cmp ebx, 0x10
jne 0x454a22
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004536ec
cmp dword [edi + 4], 1
jne 0x454a5f
mov eax, dword [ebp - 0x10]
push eax
push 0
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
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
jmp 0x454b56
xor esi, esi
cmp esi, dword [ebp - 0x18]
jge 0x454b3f
xor ebx, ebx
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0
inc ebx
cmp ebx, 0x10
jne 0x454a89
lea eax, [esi + 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x454ab7
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
jmp 0x454ad2
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x18]
sub eax, esi
push eax
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
cmp dword [edi + 4], 1
jne 0x454af1
test esi, esi
jle 0x454af1
xor ebx, ebx
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 8]
xor byte [edx + ebx], al
inc ebx
cmp ebx, 0x10
jne 0x454ade
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004536ec
cmp dword [edi + 4], 1
jne 0x454b1b
mov eax, dword [ebp - 0x10]
push eax
push 0
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
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 0x454a87
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 ecx, byte [ebp - 0x19]
inc ecx
mov byte [edx + eax], cl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454b7e
lea eax, [ebp - 0x10]
mov edx, dword [0x418ccc]
mov ecx, 4
call sub.rtl170.bpl__System__FinalizeArray_qqrpvt1ui
ret