Function at 0x55d086
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov edx, dword [ebp + 0x20]
shr esi, 2
shr edi, 2
mov dword [ebp - 4], ecx
push 4
pop eax
cmp edx, 2
je 0x55d0b2
cmp edx, 3
je 0x55d0b2
mov ebx, dword [ebp + 8]
jmp 0x55d0d1
mov eax, esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov esi, edi
mov edi, eax
mov dword [ebp - 4], ecx
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 + 0x20], ebx
cmp edx, 1
je 0x55d25b
cmp edx, eax
je 0x55d25b
test edx, edx
je 0x55d0f2
cmp edx, 5
jne 0x55d390
mov ecx, dword [ebp + 0x1c]
neg edx
sbb edx, edx
and edx, 0xff
test ecx, ecx
je 0x55d390
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffc
mov dword [ebp - 0x10], eax
mov eax, esi
mov esi, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, edi
shl eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
add eax, 2
mov dword [ebp + 0xc], eax
dec ecx
mov dword [ebp - 0x20], ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jl 0x55d1f6
lea eax, [esi + 0xc]
mov dword [ebp - 0xc], esi
sub esi, ebx
mov dword [ebp - 8], eax
lea edi, [ebx + 4]
mov dword [ebp - 0xc], esi
movss xmm0, dword [eax - 0xc]
ucomiss xmm0, dword [edi - 4]
lahf
test ah, 0x44
jp 0x55d160
or ebx, 0xffffffff
jmp 0x55d162
xor ebx, ebx
movss xmm0, dword [esi + edi]
xor ebx, edx
ucomiss xmm0, dword [edi]
lahf
test ah, 0x44
jp 0x55d177
xor eax, eax
inc eax
jmp 0x55d179
xor eax, eax
mov esi, dword [ebp + 0xc]
neg al
xor al, dl
mov byte [esi + ecx - 2], bl
mov ebx, esi
mov esi, dword [ebp - 8]
mov byte [ebx + ecx - 1], al
movss xmm0, dword [esi - 4]
ucomiss xmm0, dword [edi + 4]
lahf
test ah, 0x44
jp 0x55d1a1
or eax, 0xffffffff
jmp 0x55d1a3
xor eax, eax
movss xmm0, dword [esi]
xor eax, edx
ucomiss xmm0, dword [edi + 8]
mov dword [ebp - 0x14], eax
lahf
test ah, 0x44
jp 0x55d1bb
xor eax, eax
inc eax
jmp 0x55d1bd
xor eax, eax
mov esi, dword [ebp + 0xc]
neg al
mov ebx, dword [ebp - 0x14]
xor al, dl
push 4
add edi, 0x10
mov byte [esi + ecx], bl
mov ebx, esi
mov esi, dword [ebp - 0xc]
mov byte [ebx + ecx + 1], al
pop eax
add ecx, eax
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp ecx, dword [ebp - 0x10]
jle 0x55d14c
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x18]
jge 0x55d239
sub esi, ebx
lea edi, [ebx + ecx*4]
mov dword [ebp - 0x14], esi
mov ebx, esi
mov esi, dword [ebp + 0xc]
movss xmm0, dword [ebx + edi]
ucomiss xmm0, dword [edi]
lahf
test ah, 0x44
jp 0x55d21b
xor eax, eax
inc eax
jmp 0x55d21d
xor eax, eax
neg al
xor al, dl
mov byte [esi + ecx - 2], al
inc ecx
push 4
pop eax
add edi, eax
cmp ecx, dword [ebp + 0x18]
jl 0x55d208
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add esi, dword [ebp - 0x18]
add ebx, dword [ebp - 0x1c]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], esi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0xc], eax
test ecx, ecx
jne 0x55d12c
jmp 0x55d390
dec edx
neg edx
sbb edx, edx
and edx, 0xff
cmp dword [ebp + 0x1c], 0
je 0x55d390
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffc
mov dword [ebp - 0x10], eax
mov eax, esi
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, edi
mov edi, dword [ebp + 0x1c]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
add eax, 2
mov dword [ebp + 0xc], eax
xor esi, esi
dec edi
cmp dword [ebp - 0x10], esi
jl 0x55d333
lea eax, [ecx + 8]
sub ecx, ebx
mov dword [ebp - 8], eax
lea eax, [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], ecx
movss xmm0, dword [ecx + eax]
xor ecx, ecx
comiss xmm0, dword [eax]
mov ebx, dword [ebp - 8]
push 4
movss xmm0, dword [ebx - 8]
mov ebx, dword [ebp + 0xc]
setbe cl
dec ecx
xor ecx, edx
comiss xmm0, dword [eax - 4]
mov byte [ebx + esi - 1], cl
setbe al
xor ecx, ecx
dec al
xor al, dl
mov byte [ebx + esi - 2], al
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
movss xmm0, dword [eax + 4]
mov eax, dword [ebp - 0xc]
comiss xmm0, dword [eax + 8]
movss xmm0, dword [ebx]
mov ebx, dword [ebp + 0xc]
setbe cl
dec ecx
xor ecx, edx
comiss xmm0, dword [eax + 4]
mov byte [ebx + esi + 1], cl
mov ecx, dword [ebp - 0x20]
setbe al
add dword [ebp - 8], 0x10
dec al
xor al, dl
mov byte [ebx + esi], al
pop eax
add esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 0x10]
jle 0x55d2b2
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x18]
jge 0x55d373
lea eax, [ebx + esi*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
sub eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
movss xmm0, dword [eax + ecx]
comiss xmm0, dword [ecx]
push 4
setbe al
dec al
xor al, dl
mov byte [ebx + esi - 2], al
inc esi
pop eax
add ecx, eax
mov eax, dword [ebp - 0x1c]
cmp esi, dword [ebp + 0x18]
jl 0x55d34c
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x14]
add eax, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0xc], eax
test edi, edi
jne 0x55d295
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret