Function at 0x10057f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ecx + 0x110]
mov edi, dword [ebp + 8]
cmp eax, 1
jle 0x10058128
mov esi, 3
mov dword [ebp - 0x20], edx
mov bl, byte [ecx + 0x10e]
sub esi, edx
mov dword [ebp - 0x34], esi
mov esi, 2
sub esi, edx
mov dl, byte [ecx + 0x10a]
mov dword [ebp - 0x3c], esi
lea esi, [eax + 1]
shl eax, 4
lea eax, [eax + ecx - 0x10]
mov dword [ebp - 0x30], esi
mov esi, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 0x100]
mov dword [ebp - 0x38], eax
mov al, byte [ecx + 0x100]
mov dword [ebp - 0x14], eax
mov al, byte [ecx + 0x102]
mov dword [ebp - 0x24], eax
mov al, byte [ecx + 0x104]
mov dword [ebp - 0x18], eax
mov al, byte [ecx + 0x108]
mov dword [ebp - 0x10], eax
mov al, byte [ecx + 0x106]
mov dword [ebp - 0x28], eax
mov al, byte [ecx + 0x10c]
mov dword [ebp - 0x1c], eax
movzx ecx, byte [ebp - 0x14]
movzx eax, dl
movzx edx, byte [ebp - 0x18]
mov dword [ebp - 0x14], ecx
movzx ecx, bl
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x14]
movzx edi, byte [esi + ecx*4 + 0x101]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + edi*4 + 0x400]
xor edi, dword [ecx + ebx*4]
xor edi, dword [ecx + eax*4 + 0x800]
mov eax, dword [ebp - 0x20]
movzx ebx, byte [esi + eax*4 + 0x107]
xor edi, dword [ecx + ebx*4 + 0xc00]
mov ebx, dword [ebp - 0x3c]
mov dword [esi + 0xf0], edi
movzx edi, byte [esi + eax*4 + 0x101]
mov edi, dword [ecx + edi*4 + 0x400]
xor edi, dword [ecx + edx*4]
mov edx, dword [ebp - 0x40]
xor edi, dword [ecx + edx*4 + 0x800]
movzx edx, byte [esi + ebx*4 + 0x103]
xor edi, dword [ecx + edx*4 + 0xc00]
mov dword [esi + 0xf4], edi
movzx edi, byte [ebp - 0x10]
movzx edx, byte [esi + eax*4 + 0x105]
mov eax, dword [ebp - 0x34]
mov edx, dword [ecx + edx*4 + 0x400]
xor edx, dword [ecx + edi*4]
movzx edi, byte [esi + eax*4 + 0x103]
movzx eax, byte [ebp - 0x24]
xor edx, dword [ecx + eax*4 + 0x800]
mov eax, dword [ebp - 0x20]
xor edx, dword [ecx + edi*4 + 0xc00]
movzx edi, byte [ebp - 0x1c]
mov dword [esi + 0xf8], edx
movzx edx, byte [esi + ebx*4 + 0x101]
movzx eax, byte [esi + eax*4 + 0x103]
mov edx, dword [ecx + edx*4 + 0x400]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0x28]
xor edx, dword [ecx + edi*4]
mov edi, dword [ebp - 0x30]
xor edx, dword [ecx + eax*4 + 0x800]
mov eax, dword [ebp - 0x10]
dec edi
mov dword [ebp - 0x30], edi
xor edx, dword [ecx + eax*4 + 0xc00]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0xfc], edx
movdqu xmm1, xmmword [ecx]
movdqu xmm0, xmmword [esi + 0xf0]
add ecx, 0xfffffff0
mov dword [ebp - 0x2c], ecx
pxor xmm1, xmm0
pshufd xmm2, xmm1, 0xe5
pshufd xmm0, xmm1, 0x4e
pshufd xmm3, xmm1, 0xe7
movdqu xmmword [esi + 0x100], xmm1
movd eax, xmm2
movd edx, xmm0
movd ebx, xmm3
mov dword [ebp - 0x18], eax
shr eax, 0x10
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edx
shr ebx, 0x10
shr edx, 0x10
mov dword [ebp - 0x28], eax
movd eax, xmm1
mov dword [ebp - 0x14], eax
shr eax, 0x10
cmp edi, 2
mov dword [ebp - 0x24], eax
jg 0x10057faf
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
jmp 0x10058152
mov al, byte [ecx + 0x100]
lea ebx, [ecx + 0x100]
mov esi, eax
mov al, byte [ecx + 0x104]
mov dword [ebp - 0x18], eax
mov al, byte [ecx + 0x108]
mov dword [ebp - 0x10], eax
mov eax, esi
mov esi, ecx
mov cl, byte [ecx + 0x10c]
movzx eax, al
mov al, byte [edi + eax]
mov byte [esi + 0xf0], al
movzx eax, byte [ebp - 0x18]
mov al, byte [edi + eax]
mov byte [esi + 0xf4], al
movzx eax, byte [ebp - 0x10]
mov al, byte [edi + eax]
mov byte [esi + 0xf8], al
movzx eax, cl
mov al, byte [edi + eax]
mov byte [esi + 0xfc], al
lea eax, [esi + 0xf0]
sub eax, edx
movzx ecx, byte [eax + 0x17]
mov cl, byte [edi + ecx]
mov byte [eax + 3], cl
movzx ecx, byte [eax + 0x1b]
mov cl, byte [edi + ecx]
mov byte [eax + 7], cl
movzx ecx, byte [eax + 0x1f]
mov cl, byte [edi + ecx]
mov byte [eax + 0xb], cl
movzx ecx, byte [eax + 0x13]
mov cl, byte [edi + ecx]
mov byte [eax + 0xf], cl
movzx eax, byte [ebx + 0xa]
mov al, byte [edi + eax]
mov byte [esi + 0xf2], al
movzx eax, byte [ebx + 2]
mov al, byte [edi + eax]
mov byte [esi + 0xfa], al
movzx eax, byte [ebx + 0xe]
mov al, byte [edi + eax]
mov byte [esi + 0xf6], al
movzx eax, byte [ebx + 6]
mov al, byte [edi + eax]
mov byte [esi + 0xfe], al
movzx eax, byte [esi + edx + 0x10d]
mov al, byte [edi + eax]
mov byte [esi + edx + 0xf1], al
movzx eax, byte [esi + edx + 0x109]
mov al, byte [edi + eax]
mov byte [esi + edx + 0xfd], al
movzx eax, byte [esi + edx + 0x105]
mov al, byte [edi + eax]
mov byte [esi + edx + 0xf9], al
movzx eax, byte [esi + edx + 0x101]
mov al, byte [edi + eax]
mov byte [esi + edx + 0xf5], al
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret