Function at 0x57e860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
je 0x57eaa6
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x1c], esi
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 3]
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 8], edx
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 7]
or ecx, eax
add ebx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
js 0x57e98e
lea esi, [ebx + 8]
shr esi, 3
mov eax, esi
neg eax
lea ebx, [ebx + eax*8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 4]
shl eax, 0x10
push dword [ebp + 0x14]
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 3]
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [ebp - 8]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or ecx, eax
add ebx, 8
xor ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ecx
call fcn.0057ed40
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, edx
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
add edi, 8
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
sub esi, 1
jne 0x57e8e1
mov esi, dword [ebp + 0x1c]
jmp 0x57e991
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, 0xfffffff8
je 0x57ea6a
mov edx, dword [ebp - 4]
lea ecx, [eax + 8]
add edx, 7
add ecx, ebx
xor eax, eax
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [ebp + 0x10], eax
cmp edx, 7
mov edx, dword [ebp - 8]
ja case.default.0x57e9bd
mov esi, dword [ebp - 4]
jmp dword [esi*4 + 0x57ecf8]
movzx ebx, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
xor ebx, dword [ebp - 0xc]
xor eax, edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
call fcn.0057ed40
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, edx
shr eax, 0x18
mov byte [edi], al
mov eax, edx
mov esi, dword [ebp + 0x1c]
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov eax, edx
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
mov byte [esi + 6], al
pop edi
mov byte [esi + 7], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 4]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
shl edx, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 3]
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
or edx, eax
mov dword [ebp - 0xc], ecx
movzx eax, byte [ebx + 6]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 7]
or edx, eax
add edi, 0xfffffff8
mov dword [ebp + 0x1c], edx
js 0x57ebeb
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
shr eax, 3
mov dword [ebp - 8], eax
neg eax
lea edi, [edi + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp + 0x10], eax
movzx edi, byte [ebx]
movzx eax, byte [ebx + 1]
movzx esi, byte [ebx + 4]
shl eax, 0x10
push dword [ebp + 0x14]
shl edi, 0x18
or edi, eax
shl esi, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 3]
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
or esi, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 6]
shl eax, 8
or esi, eax
movzx eax, byte [ebx + 7]
or esi, eax
add ebx, 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x18], esi
call fcn.0057ed40
mov ebx, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0xc]
inc dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
mov ebx, dword [ebp + 0x10]
inc dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp + 0x1c]
shr eax, 0x10
mov byte [ebx], al
mov eax, ecx
mov ebx, dword [ebp + 0x10]
shr eax, 8
mov dword [ebp + 0x1c], esi
mov byte [ebx], al
mov eax, ebx
inc eax
mov ebx, dword [ebp - 4]
mov dword [ebp + 0x10], eax
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 0x18
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr eax, 8
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
add ecx, 5
sub dword [ebp - 8], 1
mov dword [ebp + 0x10], ecx
mov ecx, edi
mov dword [ebp - 0xc], ecx
jne 0x57eb15
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
jmp 0x57ebf1
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edi, 0xfffffff8
je 0x57ecb7
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 3]
or ecx, eax
movzx eax, byte [edx + 5]
push dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 4]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x10]
or eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0057ed40
mov edx, dword [ebp - 0x1c]
lea ecx, [edi + 8]
mov eax, dword [ebp - 0x18]
add edi, 7
xor eax, dword [ebp + 0x1c]
add esp, 8
xor edx, dword [ebp - 0xc]
add ecx, esi
mov dword [ebp + 0x1c], eax
cmp edi, 7
ja case.default.0x57ec74
jmp dword [edi*4 + 0x57ed18]
dec ecx
mov byte [ecx], al
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x1c]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 0x1c]
dec ecx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
shr edx, 0x18
mov byte [ecx - 1], dl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
jmp 0x57ecba
mov edx, dword [ebp + 0x1c]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
pop edi
shr eax, 8
mov byte [ebx + 6], al
pop esi
mov byte [ebx + 7], dl
pop ebx
mov esp, ebp
pop ebp
ret