Function at 0x4571be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
je 0x4572a8
cmp esi, ecx
je 0x4571fe
cmp dword [ebp + 0xc], ecx
je 0x4571fe
mov eax, dword [ebp + 8]
mov al, byte [eax]
xor byte [esi + edi], al
mov al, byte [esi + edi]
mov byte [ebx], al
inc ebx
inc dword [ebp + 8]
dec dword [ebp + 0xc]
inc esi
and esi, 0xf
jne 0x4571df
cmp dword [ebp + 0xc], 0x10
jb 0x45726b
mov eax, ebx
sub eax, edi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 8], eax
shl eax, 4
add ebx, eax
add dword [ebp + 8], eax
push dword [ebp + 0x10]
push edi
push edi
call fcn.00456462
add esp, 0xc
cmp esi, 0x10
jae 0x457258
push 0xf
pop ecx
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax]
xor dword [eax], edx
mov edx, dword [eax]
mov esi, dword [ebp + 0x18]
mov dword [esi + eax], edx
add eax, 4
dec ecx
jne 0x457242
sub dword [ebp + 0xc], 0x10
add dword [ebp + 0x18], 0x10
add dword [ebp - 4], 0x10
xor esi, esi
dec dword [ebp - 8]
jne 0x457224
cmp dword [ebp + 0xc], 0
je 0x457383
push dword [ebp + 0x10]
push edi
push edi
call fcn.00456462
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [esi + edi]
sub edx, edi
sub ebx, edi
add esi, dword [ebp + 0xc]
mov cl, byte [eax + edx]
xor byte [eax], cl
mov cl, byte [eax]
dec dword [ebp + 0xc]
mov byte [eax + ebx], cl
inc eax
cmp dword [ebp + 0xc], 0
jne 0x45728f
jmp 0x457383
cmp esi, ecx
je 0x4572cd
cmp dword [ebp + 0xc], ecx
je 0x4572cd
mov dl, byte [esi + edi]
mov eax, dword [ebp + 8]
mov al, byte [eax]
xor dl, al
mov byte [ebx], dl
inc ebx
inc dword [ebp + 8]
dec dword [ebp + 0xc]
mov byte [esi + edi], al
inc esi
and esi, 0xf
jne 0x4572ac
cmp dword [ebp + 0xc], 0x10
jb 0x457344
mov eax, ebx
sub eax, edi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
push edi
push edi
call fcn.00456462
add esp, 0xc
cmp esi, 0x10
jae 0x45732f
mov edx, dword [ebp + 8]
push 0xf
pop ecx
sub ecx, esi
sub edx, ebx
shr ecx, 2
lea eax, [esi + edi]
mov dword [ebp - 4], edx
inc ecx
jmp 0x45730e
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
add esi, eax
mov edx, dword [esi + edx]
mov esi, dword [eax]
xor esi, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x18]
add edx, eax
mov dword [edx], esi
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x45730b
push 0x10
pop eax
sub dword [ebp + 0xc], eax
add dword [ebp + 0x18], eax
add dword [ebp + 8], eax
add ebx, eax
xor esi, esi
dec dword [ebp - 8]
jne 0x4572e3
cmp dword [ebp + 0xc], 0
je 0x457383
push dword [ebp + 0x10]
push edi
push edi
call fcn.00456462
mov edx, dword [ebp + 8]
mov dword [ebp + 0x18], ebx
sub dword [ebp + 0x18], edi
add esp, 0xc
lea eax, [esi + edi]
sub edx, ebx
add esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov bl, byte [eax]
dec dword [ebp + 0xc]
lea edi, [eax + ecx]
mov cl, byte [edi + edx]
xor bl, cl
mov byte [edi], bl
mov byte [eax], cl
inc eax
cmp dword [ebp + 0xc], 0
jne 0x457368
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret