Function at 0x553dfb
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], ecx
push edi
test esi, esi
je 0x554085
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 8]
add eax, 0xfffffffc
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
dec esi
mov dword [ebx + 0x1c], esi
xor esi, esi
cmp byte [0x7a41d1], 0
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
je 0x553f49
lea ecx, [eax - 0x20]
test ecx, ecx
mov ecx, dword [ebp - 0xc]
js 0x553eec
lea esi, [edi + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
mov esi, ecx
sub esi, edi
sub ecx, edx
mov dword [ebp - 0x10], esi
mov esi, edx
sub esi, edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, eax
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
shr esi, 5
mov dword [ebp - 0x18], esi
shl esi, 5
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x28]
sub dword [ebp - 0x18], 1
movups xmm1, xmmword [eax - 0x10]
movups xmm3, xmmword [edx + esi]
movups xmm2, xmmword [eax]
movups xmm4, xmmword [ecx + eax]
movaps xmm0, xmm1
pcmpgtb xmm1, xmm3
pxor xmm0, xmm3
pand xmm0, xmm1
pxor xmm0, xmm3
movups xmmword [esi], xmm0
lea esi, [esi + 0x20]
movaps xmm0, xmm2
pcmpgtb xmm2, xmm4
pxor xmm0, xmm4
pand xmm0, xmm2
pxor xmm0, xmm4
movups xmmword [edi + eax], xmm0
lea eax, [eax + 0x20]
jne 0x553e95
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
cmp esi, eax
jg 0x553f49
sub ecx, edi
lea edx, [esi + edi]
mov dword [ebp - 0x28], ecx
sub eax, esi
mov ecx, dword [ebx + 0x10]
sub ecx, edi
shr eax, 3
mov edi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x24], ecx
mov ecx, edx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x24]
lea esi, [esi + eax*8]
movq xmm0, qword [ecx]
movq xmm2, qword [ecx + edi]
movaps xmm1, xmm0
pxor xmm1, xmm2
pcmpgtb xmm0, xmm2
pand xmm1, xmm0
pxor xmm1, xmm2
movq qword [ecx + edx], xmm1
lea ecx, [ecx + 8]
sub eax, 1
jne 0x553f17
mov edi, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0x10]
cmp esi, dword [ebp - 0x1c]
jg 0x554017
lea eax, [edx + 1]
mov dword [ebp - 0x18], edx
sub dword [ebp - 0x18], ecx
add eax, esi
mov dword [ebp - 0x10], eax
lea eax, [esi + ecx]
mov dword [ebp - 8], eax
mov eax, edi
sub eax, ecx
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
mov dh, byte [eax + edx]
mov eax, dword [ebp - 8]
mov dl, byte [eax]
mov eax, dword [ebp - 0x10]
cmp dl, dh
mov al, byte [eax + ecx]
mov byte [ebp - 2], al
mov eax, dword [ebp - 8]
movzx ecx, dl
mov al, byte [eax + 1]
mov byte [ebp - 1], al
movzx eax, dh
mov edx, dword [ebp - 8]
cmovl ecx, eax
mov eax, dword [ebp - 0x18]
mov byte [eax + edx], cl
mov dl, byte [ebp - 1]
cmp dl, byte [ebp - 2]
movzx eax, byte [ebp - 2]
movzx ecx, dl
cmovl ecx, eax
mov eax, dword [ebp - 0x10]
mov byte [eax], cl
mov ecx, dword [ebp - 8]
mov al, byte [edi + esi + 3]
mov byte [ebp - 1], al
mov dl, byte [ecx + 2]
mov al, byte [ecx + 3]
cmp dl, byte [edi + esi + 2]
mov byte [ebp - 2], al
movzx eax, byte [edi + esi + 2]
movzx ecx, dl
mov dl, byte [ebp - 2]
cmovl ecx, eax
mov eax, dword [ebp - 0x10]
cmp dl, byte [ebp - 1]
mov byte [eax + 1], cl
movzx eax, byte [ebp - 1]
movzx ecx, dl
cmovl ecx, eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 4
add esi, 4
mov byte [eax + 2], cl
add eax, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x1c]
jle 0x553f74
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp esi, eax
jge 0x554065
lea edx, [esi + ecx]
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebx + 0x10]
sub edx, ecx
sub edi, ecx
mov dword [ebp - 0x24], edx
sub eax, esi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 0x14], eax
mov dl, byte [edx + edi]
movzx eax, byte [edi]
cmp byte [edi], dl
mov dword [ebp - 0x2c], eax
mov ecx, eax
movzx eax, dl
mov edx, dword [ebp - 0x24]
cmovl ecx, eax
mov eax, dword [ebp - 0x28]
mov byte [eax + edi], cl
inc edi
sub esi, 1
jne 0x55403d
mov edi, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0x10]
add ecx, dword [ebp - 0x30]
add edi, dword [ebx + 0xc]
add edx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 0xc], ecx
mov dword [ebx + 8], edi
mov dword [ebx + 0x10], edx
test esi, esi
jne 0x553e35
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret