Function at 0x55eb60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
je 0x55ed98
test al, 7
jne 0x55ed98
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, 1
jne 0x55ec72
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
cmp eax, 8
mov dword [esp + 0x1c], ecx
jb 0x55ec68
mov ebp, dword [esp + 0x28]
shr eax, 3
lea esi, [ebp + 7]
mov dword [esp + 0x28], eax
xor eax, eax
xor ecx, ecx
mov al, byte [ebp]
mov cl, byte [esi - 6]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [esi - 5]
xor edx, edx
shl ecx, 8
or eax, ecx
mov dl, byte [esi - 2]
xor ecx, ecx
mov cl, byte [esi - 4]
or eax, ecx
xor ecx, ecx
mov cl, byte [esi - 3]
xor eax, ebx
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [esi - 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
or ecx, edx
xor edx, edx
mov dl, byte [esi]
or ecx, edx
xor ecx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
mov ecx, edi
call fcn.0055e470
mov ecx, dword [esp + 0x14]
add esi, 8
mov edx, ecx
mov eax, dword [esp + 0x10]
shr edx, 8
mov byte [esi - 8], cl
mov byte [esi - 9], dl
mov edx, ecx
mov dword [esp + 0x1c], ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [esi - 0xa], dl
mov byte [esi - 0xb], cl
mov ecx, eax
mov edx, eax
shr ecx, 8
mov ebx, eax
mov byte [esi - 0xc], al
shr edx, 0x10
mov byte [esi - 0xd], cl
mov byte [esi - 0xe], dl
shr eax, 0x18
mov byte [esi - 0xf], al
mov eax, dword [esp + 0x28]
add ebp, 8
dec eax
mov dword [esp + 0x28], eax
jne 0x55ebb5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
cmp ecx, 2
jne 0x55ed4e
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
cmp eax, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jb 0x55ec68
mov ebp, dword [esp + 0x28]
shr eax, 3
lea esi, [ebp + 7]
mov ebx, eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0055e470
xor eax, eax
xor ecx, ecx
mov al, byte [ebp]
mov cl, byte [esi - 6]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [esi - 5]
xor edx, edx
shl ecx, 8
or eax, ecx
mov dl, byte [esi - 2]
xor ecx, ecx
add ebp, 8
mov cl, byte [esi - 4]
add esi, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [esi - 0xb]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [esi - 9]
or ecx, edx
xor edx, edx
mov dl, byte [esi - 8]
or ecx, edx
mov edx, dword [esp + 0x18]
xor eax, edx
mov edx, dword [esp + 0x1c]
xor ecx, edx
mov dword [esp + 0x10], eax
mov edx, ecx
mov byte [esi - 8], cl
shr edx, 8
mov byte [esi - 9], dl
mov edx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [esi - 0xa], dl
mov byte [esi - 0xb], cl
mov ecx, eax
mov edx, eax
shr ecx, 8
mov dword [esp + 0x18], eax
mov byte [esi - 0xc], al
shr edx, 0x10
mov byte [esi - 0xd], cl
mov byte [esi - 0xe], dl
shr eax, 0x18
dec ebx
mov byte [esi - 0xf], al
jne 0x55ec9a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
cmp eax, 8
jb 0x55ec68
mov esi, dword [esp + 0x28]
shr eax, 3
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0055edc0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0055e470
add esi, 8
lea edx, [esp + 0x10]
push esi
push edx
call fcn.0055ee40
add esp, 8
dec ebx
jne 0x55ed60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x2c], 0x4a77e8
call fcn.00568fa2
lea ecx, [esp + 0x18]
push 0x4a2310
push ecx
call fcn.005422ba
nop
nop
nop