Function at 0x553f00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x24
call fcn.0052df00
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov ebp, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x48]
mov esi, 1
mov ecx, edi
shl esi, cl
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 8]
cmp ebp, eax
mov dword [esp + 0x30], esi
jg 0x553f3a
mov eax, ebx
jmp 0x553f44
push ebp
push ebx
call fcn.00546da0
add esp, 8
test eax, eax
jne 0x553f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp edi, 3
jg 0x553fbf
xor eax, eax
test ebp, ebp
mov dword [esp + 0x40], eax
jle 0x554152
xor edi, edi
xor ecx, ecx
test esi, esi
jle 0x553fa1
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov eax, ecx
xor eax, ebx
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
neg ebx
and ebx, 1
neg ebx
mov eax, dword [edx]
and ebx, eax
or edi, ebx
inc ecx
add edx, 4
cmp ecx, esi
jl 0x553f6f
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x48]
mov dword [ecx + eax*4], edi
inc eax
lea ecx, [edx + esi*4]
cmp eax, ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
jl 0x553f63
jmp 0x554152
mov esi, dword [esp + 0x44]
lea ecx, [edi - 2]
mov edx, 1
mov eax, esi
shl edx, cl
sar eax, cl
lea ecx, [edx - 1]
and esi, ecx
mov ecx, eax
mov dword [esp + 0x44], esi
lea esi, [eax - 1]
not ecx
shr esi, 0x1f
shr ecx, 0x1f
and esi, ecx
mov ecx, eax
xor ecx, 1
neg esi
lea edi, [ecx - 1]
and esi, 1
not ecx
shr edi, 0x1f
shr ecx, 0x1f
and edi, ecx
mov ecx, eax
xor ecx, 2
xor eax, 3
neg edi
lea ebx, [ecx - 1]
and edi, 1
not ecx
shr ebx, 0x1f
shr ecx, 0x1f
and ebx, ecx
neg ebx
and ebx, 1
neg ebx
mov dword [esp + 0x2c], ebx
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
xor eax, eax
neg ebx
and ebx, 1
mov dword [esp + 0x40], eax
neg esi
neg edi
neg ebx
test ebp, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
jle 0x55414e
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x20], ecx
jle 0x554120
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
lea ebp, [eax + edx*4]
mov dword [esp + 0x18], ebp
lea ebp, [eax + edx*8]
mov dword [esp + 0x14], ebp
lea ebp, [edx + edx*2]
lea eax, [eax + ebp*4]
mov dword [esp + 0x10], eax
jmp 0x55408b
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
mov eax, ecx
xor eax, ebp
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp]
and ebp, ebx
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx]
and ebx, edi
mov edi, dword [esp + 0x1c]
or ebp, ebx
mov edi, dword [edi]
and edi, esi
or ebp, edi
mov edi, dword [esp + 0x14]
mov edi, dword [edi]
mov ebx, dword [esp + 0x2c]
and edi, ebx
mov ebx, dword [esp + 0x18]
or ebp, edi
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
mov eax, dword [esp + 0x20]
neg edi
and edi, 1
neg edi
and ebp, edi
mov edi, dword [esp + 0x10]
or eax, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, 4
add edi, eax
inc ecx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
add ebp, eax
add ebx, eax
add edi, eax
cmp ecx, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jl 0x554083
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
inc eax
mov ecx, dword [ecx]
mov dword [esp + 0x40], eax
mov dword [ecx + eax*4 - 4], ebp
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x48], ecx
jl 0x554053
mov ebx, dword [esp + 0x38]
test ebp, ebp
mov dword [ebx + 4], ebp
mov eax, ebp
jle 0x554173
mov edx, dword [ebx]
lea ebp, [edx + ebp*4 - 4]
mov ecx, dword [ebp]
sub ebp, 4
test ecx, ecx
jne 0x554170
dec eax
test eax, eax
jg 0x554161
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x554181
mov dword [ebx + 0xc], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret