Function at 0x57f6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 3
mov dword [ebp - 8], eax
test eax, eax
je 0x57f8ce
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
nop dword [eax]
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
movzx eax, al
mov edi, dword [ebp - 4]
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi]
mov byte [ebx], al
lea eax, [edx + 1]
movzx edx, al
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi + 1]
mov byte [ebx + 1], al
lea eax, [edx + 1]
movzx edx, al
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi + 2]
mov byte [ebx + 2], al
lea eax, [edx + 1]
mov edi, dword [ebp + 8]
movzx edx, al
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi + 3]
mov edi, dword [ebp + 8]
mov byte [ebx + 3], al
lea eax, [edx + 1]
movzx edx, al
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
mov edi, dword [ebp - 4]
xor al, byte [edi + 4]
mov byte [ebx + 4], al
lea eax, [edx + 1]
movzx edx, al
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi + 5]
mov byte [ebx + 5], al
lea eax, [edx + 1]
mov edi, dword [ebp + 8]
movzx edx, al
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi + 6]
mov edi, dword [ebp + 8]
mov byte [ebx + 6], al
lea eax, [edx + 1]
movzx edx, al
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 8]
xor al, byte [edi + 7]
add edi, 8
mov byte [ebx + 7], al
add ebx, 8
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x57f700
mov edi, dword [ebp + 0xc]
jmp 0x57f8d4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
and edi, 7
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], edi
je 0x57fb00
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov ecx, dword [ecx + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
mov ecx, edi
mov edi, dword [ebp + 0xc]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx]
mov byte [ebx], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx + 1]
mov byte [ebx + 1], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx + 2]
mov byte [ebx + 2], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx + 3]
mov byte [ebx + 3], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx + 4]
mov byte [ebx + 4], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx + 5]
mov byte [ebx + 5], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx + 6]
mov byte [ebx + 6], al
sub edi, 1
je 0x57fb00
mov ebx, dword [ebp + 8]
lea eax, [edx + 1]
movzx edx, al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
lea eax, [ecx + esi]
movzx esi, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebx + edx*4 + 8], eax
add eax, ecx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
movzx eax, al
mov al, byte [ecx + eax*4 + 8]
mov ecx, dword [ebp - 4]
xor al, byte [ecx]
mov byte [ebx], al
sub edi, 1
jne 0x57f923
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret