Function at 0x56da20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x1c
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
je 0x56dc58
movzx ebx, byte [eax]
lea edx, [eax + 1]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 8
or ebx, eax
mov esi, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
mov edi, dword [ebp + 8]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], edx
mov dword [ebp - 4], ecx
js 0x56db4e
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 4], ecx
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
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
xor edx, ebx
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
push 1
push dword [ebp + 0x14]
or ecx, eax
lea eax, [ebp - 0x1c]
xor ecx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x18], ecx
call fcn.0056b8c0
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
sub dword [ebp + 0x10], 1
mov dword [ebp + 0x1c], edx
jne 0x56daa4
mov ecx, dword [ebp - 4]
cmp ecx, 0xfffffff8
je 0x56dc1d
mov edx, dword [ebp - 4]
add edi, 8
add ecx, edi
add edx, 7
xor eax, eax
mov dword [ebp - 0xc], edx
xor edi, edi
mov dword [ebp + 0x10], eax
cmp edx, 7
ja case.default.0x56db71
jmp dword [edx*4 + 0x56dea4]
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]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor edi, dword [ebp + 0x1c]
xor eax, ebx
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], edi
call fcn.0056b8c0
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
mov esi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 8
pop edi
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [esi + 3], bl
mov byte [esi + 4], dl
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
shr edx, 0x18
mov byte [esi + 7], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax]
lea edi, [eax + 1]
mov edx, edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], edi
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp + 0x1c]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x1c], edx
mov dword [ebp - 8], ecx
js 0x56dda0
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp - 0xc], eax
neg eax
lea ecx, [ecx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp + 0x10], eax
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x10], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 7]
add ebx, 8
shl eax, 0x18
push 0
push dword [ebp + 0x14]
or esi, eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], esi
call fcn.0056b8c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov byte [eax], cl
inc eax
xor edx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], eax
mov eax, ecx
mov edi, dword [ebp + 0x10]
inc dword [ebp + 0x10]
shr eax, 8
mov byte [edi], al
mov eax, ecx
mov edi, dword [ebp + 0x10]
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov eax, edi
inc eax
mov dword [ebp + 0x10], eax
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
sub dword [ebp - 0xc], 1
mov edx, esi
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x1c], edx
jne 0x56dcd1
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
jmp 0x56dda6
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 8], 0xfffffff8
je 0x56de69
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [ebp - 0x1c]
push 0
push dword [ebp + 0x14]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
call fcn.0056b8c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xor edx, dword [ebp - 4]
xor ebx, dword [ebp + 0x1c]
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x56de26
jmp dword [eax*4 + 0x56dec4]
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], bl
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 byte [ecx - 1], dl
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ecx, 0x18
mov byte [edi + 2], cl
mov byte [edi + 3], dl
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
shr edx, 0x18
mov byte [edi + 6], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret