Function at 0x55c7e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x20]
mov edi, ecx
mov dword [ebp - 0x1c], ebx
push 4
pop ecx
cmp edx, 2
je 0x55c819
cmp edx, 3
je 0x55c819
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 4
mov dword [ebp - 0x20], ecx
pop ecx
jmp 0x55c835
mov eax, dword [ebp + 0xc]
mov esi, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
mov dword [ebp - 4], edi
cmp edx, 2
mov dword [ebp - 0x20], ebx
cmove eax, ecx
mov edx, eax
mov dword [ebp + 0x20], esi
cmp edx, 1
je 0x55c9ad
cmp edx, ecx
je 0x55c9ad
test edx, edx
je 0x55c856
cmp edx, 5
jne 0x55cb00
mov eax, dword [ebp + 0x1c]
neg edx
mov ebx, 0xff
sbb edx, edx
and edx, ebx
test eax, eax
je 0x55cb00
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffffc
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
and dword [ebp - 0xc], 0
dec eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
jl 0x55c93a
lea eax, [esi + 1]
mov dword [ebp - 0x10], edi
sub dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
sub dword [ebp - 0x14], esi
mov esi, edi
sub esi, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov al, byte [ecx + eax]
xor ecx, ecx
cmp al, byte [edi]
mov eax, dword [ebp - 0x2c]
setne cl
dec ecx
xor ecx, edx
mov al, byte [eax + esi]
cmp al, byte [edi - 1]
setne al
dec al
and al, bl
mov ebx, esi
mov esi, dword [ebp - 0xc]
xor al, dl
mov byte [ebx], al
mov eax, edi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov byte [ebx + eax], cl
xor ecx, ecx
mov al, byte [edi + esi + 3]
mov ebx, dword [ebp - 8]
cmp al, byte [ebx + 2]
mov al, byte [edi + esi + 2]
mov edi, dword [ebp + 0xc]
setne cl
dec ecx
xor ecx, edx
cmp al, byte [ebx + 1]
mov ebx, 0xff
setne al
add dword [ebp + 0xc], 4
dec al
add esi, 4
and al, bl
mov dword [ebp - 0xc], esi
xor al, dl
mov byte [edi + 2], al
mov eax, edi
mov edi, dword [ebp - 4]
mov byte [eax + 3], cl
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x24]
jle 0x55c8a9
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x18]
cmp dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x18]
jge 0x55c98e
mov eax, dword [ebp - 0xc]
sub ecx, esi
add eax, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], eax
sub edi, esi
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x14], eax
mov al, byte [edi + ecx]
cmp al, byte [ecx]
mov edi, dword [ebp - 0x10]
setne al
dec al
and al, bl
xor al, dl
mov byte [edi + ecx], al
inc ecx
mov edi, dword [ebp + 0xc]
sub esi, 1
jne 0x55c965
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
add edi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
add ecx, dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp + 0x20], esi
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x55c87b
jmp 0x55cb00
mov eax, dword [ebp + 0x1c]
dec edx
neg edx
mov ebx, 0xff
sbb edx, edx
and edx, ebx
test eax, eax
je 0x55cb00
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffffc
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
and dword [ebp - 8], 0
dec eax
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
jl 0x55ca92
lea eax, [esi + 1]
mov dword [ebp - 0x18], edi
sub dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
sub dword [ebp - 0x14], esi
mov esi, edi
sub esi, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp + 0xc]
mov al, byte [ecx + eax]
xor ecx, ecx
cmp al, byte [edi]
mov eax, dword [ebp - 0x2c]
setle cl
dec ecx
xor ecx, edx
mov al, byte [eax + esi]
cmp al, byte [edi - 1]
setle al
dec al
and al, bl
mov ebx, esi
mov esi, dword [ebp - 8]
xor al, dl
mov byte [ebx], al
mov eax, edi
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
mov byte [ebx + eax], cl
xor ecx, ecx
mov al, byte [edi + esi + 3]
mov ebx, dword [ebp - 0xc]
cmp al, byte [ebx + 2]
mov al, byte [edi + esi + 2]
mov edi, dword [ebp + 0xc]
setle cl
dec ecx
xor ecx, edx
cmp al, byte [ebx + 1]
mov ebx, 0xff
setle al
add dword [ebp + 0xc], 4
dec al
add esi, 4
and al, bl
mov dword [ebp - 8], esi
xor al, dl
mov byte [edi + 2], al
mov eax, edi
mov edi, dword [ebp - 4]
mov byte [eax + 3], cl
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 0x28]
jle 0x55ca01
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x18]
cmp dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x10]
jge 0x55cae6
mov eax, dword [ebp - 8]
sub ecx, esi
add eax, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
sub edi, esi
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x18], eax
mov al, byte [edi + ecx]
cmp al, byte [ecx]
mov edi, dword [ebp - 0x14]
setle al
dec al
and al, bl
xor al, dl
mov byte [edi + ecx], al
inc ecx
mov edi, dword [ebp + 0xc]
sub esi, 1
jne 0x55cabd
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
add edi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
add ecx, dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp + 0x20], esi
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x55c9d3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret