Function at 0x54c3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
movzx edx, byte [ecx + 1]
movzx eax, byte [ecx]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ecx + 5]
shl eax, 8
cmp dword [ebp + 0x24], 0
push edi
mov dword [ebp + 0x24], edx
je 0x54c5e2
movzx edi, byte [ecx + 4]
movzx ecx, byte [ecx + 7]
or edi, eax
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or edi, ecx
mov dword [ebp + 0xc], edi
lea ecx, [eax - 8]
mov dword [ebp - 4], ecx
test ecx, ecx
js 0x54c516
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 4], ecx
jmp 0x54c466
mov edi, dword [ebp + 0xc]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
push dword [ebp + 0x1c]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
push dword [ebp + 0x18]
shl eax, 0x10
push dword [ebp + 0x14]
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
xor edx, dword [ebp + 0x24]
shl eax, 8
or ecx, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
or ecx, eax
lea eax, [ebp - 0xc]
xor ecx, edi
push eax
mov dword [ebp - 8], ecx
call fcn.0054e8a0
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp - 8]
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
sub dword [ebp + 0x10], 1
mov dword [ebp + 0x24], edx
mov dword [ebp + 0xc], ecx
jne 0x54c463
jmp 0x54c519
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp eax, 0xfffffff8
je 0x54c7ae
lea ecx, [eax + 8]
xor edi, edi
add ecx, esi
add eax, 7
xor esi, esi
cmp eax, 7
ja case.default.0x54c536
jmp dword [eax*4 + 0x54c80c]
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 [ebp + 0x1c]
xor esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
xor edi, edx
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
mov dword [ebp - 0xc], edi
push eax
call fcn.0054e8a0
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp - 8]
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 0x54c7ae
movzx esi, byte [ecx + 4]
movzx ecx, byte [ecx + 7]
or esi, eax
mov eax, dword [ebp + 0x20]
shl ecx, 8
movzx eax, byte [eax + 6]
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or esi, ecx
mov dword [ebp + 0xc], esi
lea edi, [eax - 8]
test edi, edi
js 0x54c6da
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp - 4], edi
nop dword [eax]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
movzx eax, byte [ecx + 1]
movzx edi, byte [ecx]
movzx esi, byte [ecx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0xc], edi
movzx eax, byte [ecx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add ecx, 8
or esi, eax
mov dword [ebp + 8], ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
call fcn.0054c2d0
mov ecx, dword [ebp - 0xc]
add esp, 0x10
xor ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 8]
mov eax, ecx
xor edx, dword [ebp + 0xc]
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 [ebp + 0x10], 1
mov dword [ebp + 0x24], edx
mov dword [ebp + 0xc], ecx
jne 0x54c620
mov edi, dword [ebp - 4]
jmp 0x54c6dd
mov ecx, dword [ebp + 0xc]
cmp edi, 0xfffffff8
je 0x54c7ae
mov edx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
movzx eax, byte [edx + 1]
movzx esi, byte [edx]
movzx ecx, byte [edx + 4]
shl eax, 8
or esi, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [edx + 3]
push dword [ebp + 0x14]
shl eax, 0x18
or esi, eax
movzx eax, byte [edx + 5]
shl eax, 8
or ecx, eax
mov dword [ebp - 0xc], esi
movzx eax, byte [edx + 6]
mov dword [ebp + 8], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 0x10
or eax, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0054c2d0
mov eax, dword [ebp - 0xc]
lea ecx, [edi + 8]
mov edx, dword [ebp - 8]
add edi, 7
xor eax, dword [ebp + 0x24]
add esp, 0x10
xor edx, dword [ebp + 0xc]
add ecx, ebx
mov dword [ebp + 0x10], eax
cmp edi, 7
ja case.default.0x54c766
jmp dword [edi*4 + 0x54c82c]
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 [ebp + 0x10]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov byte [ecx - 1], al
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ecx
mov ebx, ecx
shr eax, 0x10
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 8
mov dword [ebp + 0x24], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp + 0xc], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp + 8], eax
mov eax, edx
shr ebx, 0x18
shr eax, 8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x20]
pop edi
pop esi
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
mov byte [eax + 1], dl
mov edx, dword [ebp + 8]
mov byte [eax + 2], dl
mov edx, dword [ebp + 0xc]
mov byte [eax + 3], dl
mov byte [eax + 4], cl
mov ecx, dword [ebp + 0x24]
mov byte [eax + 5], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 6], cl
mov byte [eax + 7], bl
pop ebx
mov esp, ebp
pop ebp
ret