Function at 0x5c6770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
test bl, 0xf
je 0x5c6789
mov eax, 0xffffffda
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5c6ad2
cmp dword [ebp + 0xc], 0
push esi
push edi
jne 0x5c6a2e
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
lea eax, [edx + 0xf]
sub edx, ecx
mov dword [ebp - 0x20], eax
lea eax, [ecx + 2]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
sub ecx, eax
mov dword [ebp - 4], edx
lea edx, [eax + 2]
lea eax, [ecx - 2]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x1c], eax
lea eax, [ebx - 1]
shr eax, 4
inc eax
mov dword [ebp - 0x10], eax
movzx eax, byte [edx - 2]
movzx ecx, byte [edx - 1]
shl eax, 8
or ecx, eax
movzx ebx, byte [edx + 6]
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov edi, dword [esi]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
shl ebx, 8
xor ecx, dword [esi + 4]
movzx eax, byte [edx + 3]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
xor ecx, dword [esi + 8]
or ebx, eax
movzx eax, byte [edx + 8]
movups xmm2, xmmword [edx - 2]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0x14], ecx
movzx eax, byte [edx + 9]
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 0xb]
xor ebx, dword [esi + 0xc]
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x28], ebx
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
xor ecx, dword [esi + 0x10]
add esi, 0x14
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ecx
test edi, edi
je 0x5c693c
nop
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.005c75e0
lea eax, [ebp - 0x30]
add esi, 8
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005c75e0
lea eax, [ebp - 0x28]
add esi, 8
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.005c75e0
lea eax, [ebp - 0x30]
add esi, 8
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005c75e0
lea eax, [ebp - 0x28]
add esi, 8
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.005c75e0
lea eax, [ebp - 0x30]
add esi, 8
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.005c75e0
add esp, 0x48
add esi, 8
sub edi, 1
je 0x5c692b
mov eax, dword [esi]
mov edx, dword [ebp - 0x30]
and eax, edx
mov ecx, dword [ebp - 0x2c]
rol eax, 1
xor ecx, eax
mov eax, dword [esi + 4]
or eax, ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
xor edx, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x24]
or eax, edx
xor ecx, eax
mov dword [ebp - 0x28], ecx
and ecx, dword [esi + 8]
rol ecx, 1
xor edx, ecx
add esi, 0x10
mov dword [ebp - 0x24], edx
jmp 0x5c6880
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
jmp 0x5c6942
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
xor edx, eax
mov eax, dword [esi + 0xc]
xor ecx, ebx
mov ebx, dword [esi + 8]
xor eax, edi
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
add esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 0x18
xor ebx, dword [ebp - 8]
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [edi - 1], al
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 3], al
mov eax, edx
shr eax, 8
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 6], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 7], al
mov eax, ebx
shr eax, 8
mov byte [edi + 8], al
mov byte [edi + 1], cl
mov ecx, dword [ebp - 0x18]
mov eax, ecx
shr eax, 0x18
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xb], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xc], al
lea eax, [edi + 0xd]
mov byte [edi + 9], bl
mov ebx, dword [ebp + 0x14]
mov byte [edi + 5], dl
mov byte [eax], cl
cmp esi, dword [ebp - 0x20]
ja 0x5c69f5
cmp eax, ebx
jb 0x5c69f5
mov edx, dword [ebp - 4]
mov ecx, 0x10
mov al, byte [edx + esi]
lea esi, [esi + 1]
xor byte [esi - 1], al
sub ecx, 1
jne 0x5c69e5
jmp 0x5c6a02
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
mov edx, dword [ebp + 0x10]
add edi, 0x10
sub dword [ebp - 4], 0x10
add edx, 0x10
sub dword [ebp - 0x10], 1
mov esi, dword [ebp + 8]
movups xmmword [ebx], xmm2
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], edi
jne 0x5c67d2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
lea edx, [ebx - 1]
mov edi, dword [ebp + 0x18]
mov eax, ecx
mov esi, dword [ebp + 0x1c]
sub eax, edi
shr edx, 4
inc edx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], esi
nop dword [eax + eax]
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x5c6a5e
lea eax, [esi + 0xf]
cmp eax, edi
jae 0x5c6a6c
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x5c6a97
lea eax, [esi + 0xf]
cmp eax, ecx
jb 0x5c6a97
mov ebx, esi
mov ecx, edi
mov esi, dword [ebp + 0x10]
sub ebx, edi
mov edx, 0x10
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edx, 1
jne 0x5c6a80
mov esi, dword [ebp - 0x10]
jmp 0x5c6aa4
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005c6560
movups xmm0, xmmword [esi]
mov ecx, dword [ebp + 0x14]
add esi, 0x10
sub dword [ebp + 0x10], 0x10
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x10], esi
sub dword [ebp - 0xc], 1
movups xmmword [ecx], xmm0
jne 0x5c6a50
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret