Function at 0x55cb07
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, edx
mov edx, dword [ebp + 0x20]
shr ebx, 1
shr ecx, 1
push 4
pop eax
cmp edx, 2
je 0x55cb33
cmp edx, 3
je 0x55cb33
mov esi, dword [ebp + 8]
jmp 0x55cb52
mov eax, ebx
mov esi, edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, eax
mov dword [ebp - 4], edi
xor eax, eax
inc eax
cmp edx, 2
push 4
pop edx
cmove eax, edx
push 4
mov edx, eax
pop eax
mov dword [ebp + 0xc], esi
cmp edx, 1
je 0x55cca2
cmp edx, eax
je 0x55cca2
test edx, edx
je 0x55cb73
cmp edx, 5
jne 0x55cdb8
neg edx
sbb edx, edx
and edx, 0xff
cmp dword [ebp + 0x1c], 0
je 0x55cdb8
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffc
mov dword [ebp - 0xc], eax
lea eax, [ebx + ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ecx + ecx]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
add eax, 2
mov dword [ebp - 8], eax
dec ecx
xor ebx, ebx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xc], ebx
jl 0x55cc44
lea eax, [edi + 4]
mov dword [ebp + 0x20], eax
lea eax, [esi + 2]
mov dword [ebp - 0x10], eax
mov eax, edi
mov edi, dword [ebp - 8]
sub eax, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ax, word [eax + esi]
xor ecx, ecx
cmp ax, word [esi]
lea esi, [esi + 8]
mov eax, dword [ebp + 0x20]
setne cl
dec ecx
xor ecx, edx
mov ax, word [eax - 4]
cmp ax, word [esi - 0xa]
mov byte [edi + ebx - 1], cl
setne al
xor ecx, ecx
dec al
xor al, dl
mov byte [edi + ebx - 2], al
mov eax, dword [ebp + 0x20]
push 4
mov ax, word [eax + 2]
cmp ax, word [esi - 4]
mov eax, dword [ebp + 0x20]
setne cl
dec ecx
xor ecx, edx
mov ax, word [eax]
cmp ax, word [esi - 6]
mov byte [edi + ebx + 1], cl
setne al
add dword [ebp + 0x20], 8
dec al
xor al, dl
mov byte [edi + ebx], al
pop eax
add ebx, eax
mov eax, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0xc]
jle 0x55cbd0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp ebx, dword [ebp + 0x18]
jge 0x55cc83
lea eax, [esi + ebx*2]
mov dword [ebp + 0x20], eax
mov eax, edi
mov edi, dword [ebp + 0x20]
sub eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ax, word [eax + edi]
cmp ax, word [edi]
lea edi, [edi + 2]
setne al
dec al
xor al, dl
mov byte [esi + ebx - 2], al
inc ebx
mov eax, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0x18]
jl 0x55cc5c
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add edi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
add eax, dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x55cba8
jmp 0x55cdb8
dec edx
neg edx
sbb edx, edx
and edx, 0xff
cmp dword [ebp + 0x1c], 0
je 0x55cdb8
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffc
mov dword [ebp - 0xc], eax
lea eax, [ebx + ebx]
mov dword [ebp - 0x14], eax
lea eax, [ecx + ecx]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, 2
mov dword [ebp - 8], eax
dec ecx
xor ebx, ebx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xc], ebx
jl 0x55cd62
lea eax, [edi + 4]
mov dword [ebp + 0x20], eax
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
mov eax, edi
mov edi, dword [ebp - 8]
sub eax, esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ax, word [eax + esi]
cmp word [esi], ax
lea esi, [esi + 8]
mov eax, dword [ebp + 0x20]
sbb ecx, ecx
xor ecx, edx
push 4
mov ax, word [eax - 4]
cmp word [esi - 0xa], ax
mov byte [edi + ebx - 1], cl
sbb al, al
xor al, dl
mov byte [edi + ebx - 2], al
mov eax, dword [ebp + 0x20]
mov ax, word [eax + 2]
cmp word [esi - 4], ax
mov eax, dword [ebp + 0x20]
sbb ecx, ecx
xor ecx, edx
mov ax, word [eax]
cmp word [esi - 6], ax
mov byte [edi + ebx + 1], cl
sbb al, al
add dword [ebp + 0x20], 8
xor al, dl
mov byte [edi + ebx], al
pop eax
add ebx, eax
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0xc]
jle 0x55ccfc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp ebx, dword [ebp + 0x18]
jge 0x55cd9e
lea eax, [esi + ebx*2]
mov dword [ebp + 0x20], eax
mov eax, edi
mov edi, dword [ebp + 0x20]
sub eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ax, word [edi + eax]
cmp word [edi], ax
lea edi, [edi + 2]
sbb al, al
xor al, dl
mov byte [esi + ebx - 2], al
inc ebx
mov eax, dword [ebp - 0x20]
cmp ebx, dword [ebp + 0x18]
jl 0x55cd7a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add edi, dword [ebp - 0x14]
add esi, dword [ebp - 0x10]
add eax, dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x55ccd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret