Function at 0x5529c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005cf470
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
movzx esi, byte [edi + 4]
movzx ecx, byte [edi + 7]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x20], edx
movzx eax, byte [edi + 6]
or ecx, eax
shl ecx, 0x10
or esi, ecx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1c], esi
je 0x552be7
mov edi, dword [esp + 0x24]
lea eax, [edi - 8]
mov dword [esp + 0x24], eax
test eax, eax
js 0x552b14
mov ecx, dword [esp + 0x24]
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x24], ecx
jmp 0x552a55
mov esi, dword [esp + 0x1c]
movzx eax, byte [ebp + 1]
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 4]
push dword [esp + 0x30]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x30]
shl eax, 0x10
push dword [esp + 0x30]
or edx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebp + 5]
xor edx, dword [esp + 0x2c]
shl eax, 8
or ecx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [ebp + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add ebp, 8
or ecx, eax
lea eax, [esp + 0x1c]
xor ecx, esi
push eax
mov dword [esp + 0x24], ecx
call fcn.00553410
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, edx
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], cl
mov byte [ebx + 7], al
add ebx, 8
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
sub edi, 1
jne 0x552a51
mov eax, dword [esp + 0x24]
jmp 0x552b18
mov ecx, dword [esp + 0x1c]
cmp eax, 0xfffffff8
je 0x552db1
lea ecx, [ebp + 8]
xor esi, esi
add ecx, eax
xor edi, edi
add eax, 7
cmp eax, 7
ja case.default.0x552b32
jmp dword [eax*4 + 0x552e1c]
movzx esi, byte [ecx - 1]
dec ecx
shl esi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or esi, eax
movzx eax, byte [ecx - 1]
dec ecx
or esi, eax
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
or edi, eax
push dword [esp + 0x30]
xor esi, dword [esp + 0x20]
lea eax, [esp + 0x14]
push dword [esp + 0x30]
xor edi, edx
mov dword [esp + 0x1c], esi
push dword [esp + 0x30]
mov dword [esp + 0x1c], edi
push eax
call fcn.00553410
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, edx
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], cl
mov byte [ebx + 7], al
jmp 0x552db1
mov eax, dword [esp + 0x24]
lea edi, [eax - 8]
test edi, edi
js 0x552cd3
shr eax, 3
mov dword [esp + 0x24], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x38], edi
nop word [eax + eax]
movzx eax, byte [ebp + 1]
movzx edi, byte [ebp]
movzx esi, byte [ebp + 4]
push dword [esp + 0x30]
shl eax, 8
or edi, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x30]
shl eax, 0x10
push dword [esp + 0x30]
or edi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [ebp + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add ebp, 8
or esi, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], esi
call fcn.005528b0
mov ecx, dword [esp + 0x20]
add esp, 0x10
xor ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, ecx
xor edx, dword [esp + 0x1c]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
mov byte [ebx + 4], dl
shr ecx, 0x18
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 3], cl
mov ecx, esi
mov byte [ebx + 7], dl
mov edx, edi
mov byte [ebx + 6], al
add ebx, 8
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jne 0x552c10
mov edi, dword [esp + 0x38]
jmp 0x552cd7
mov ecx, dword [esp + 0x1c]
cmp edi, 0xfffffff8
je 0x552db1
movzx eax, byte [ebp + 1]
movzx esi, byte [ebp]
movzx edx, byte [ebp + 4]
push dword [esp + 0x30]
movzx ecx, byte [ebp + 7]
push dword [esp + 0x30]
shl eax, 8
push dword [esp + 0x30]
or esi, eax
shl ecx, 8
movzx eax, byte [ebp + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or esi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or edx, eax
mov dword [esp + 0x1c], esi
movzx eax, byte [ebp + 6]
or ecx, eax
lea eax, [esp + 0x1c]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], edx
call fcn.005528b0
mov eax, dword [esp + 0x20]
lea ecx, [edi + 8]
mov edx, dword [esp + 0x24]
add edi, 7
xor eax, dword [esp + 0x30]
add esp, 0x10
xor edx, dword [esp + 0x1c]
add ecx, ebx
mov dword [esp + 0x24], eax
cmp edi, 7
ja case.default.0x552d64
jmp dword [edi*4 + 0x552e3c]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x24]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [esp + 0x24]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x24]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x24]
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x38]
mov edx, esi
mov eax, ecx
mov ebx, ecx
shr eax, 0x10
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 8
mov dword [esp + 0x38], eax
mov eax, edx
shr eax, 0x18
mov dword [esp + 0x20], eax
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, edx
shr ebx, 0x18
shr eax, 8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov byte [eax], dl
mov edx, dword [esp + 0x18]
mov byte [eax + 1], dl
mov edx, dword [esp + 0x10]
mov byte [eax + 2], dl
mov edx, dword [esp + 0x14]
mov byte [eax + 3], dl
mov byte [eax + 4], cl
mov ecx, dword [esp + 0x2c]
mov byte [eax + 5], cl
mov ecx, dword [esp + 4]
mov byte [eax + 6], cl
mov byte [eax + 7], bl
pop ebx
add esp, 8
ret