Function at 0x579480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x44]
mov ecx, 0x10
cdq
idiv ecx
push ebx
push esi
mov ecx, edx
mov esi, eax
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [esp + 0x4c]
test ecx, ecx
je 0x5794ae
test esi, esi
jne 0x5794ad
pop edi
pop esi
pop ebx
add esp, 0x34
ret
dec esi
push ebp
mov ebp, dword [esp + 0x58]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x50], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x48]
add ebx, 0xf8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
test esi, esi
je 0x57956f
mov ebp, eax
nop dword [eax + eax]
mov eax, dword [esp + 0x48]
push edi
push ebx
push dword [eax + 4]
push dword [esp + 0x24]
call fcn.00578290
xor dword [edi], ebp
add esp, 0x10
mov eax, dword [esp + 0x14]
xor dword [edi + 4], eax
mov eax, dword [esp + 0x50]
xor dword [edi + 8], eax
mov eax, dword [esp + 0x10]
xor dword [edi + 0xc], eax
add edi, 0x10
movups xmm0, xmmword [ebx]
add ebx, 0x10
movups xmmword [esp + 0x34], xmm0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
sub esi, 1
je 0x57954d
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jmp 0x5794f0
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jmp 0x579573
mov esi, dword [esp + 0x50]
test ecx, ecx
je 0x5796b8
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx]
mov dword [ebp], esi
mov dword [ebp + 4], edx
mov dword [esp + 0x40], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], esi
push eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
push dword [eax + 4]
push dword [esp + 0x24]
call fcn.00578290
mov ebp, dword [esp + 0x30]
add esp, 0x10
xor edx, edx
test ebp, ebp
je 0x579678
cmp ebp, 0x10
jb 0x579658
lea eax, [ebp + 0xf]
add eax, ebx
lea ecx, [edi + 0x10]
cmp ecx, eax
lea esi, [ebx + 0x10]
lea eax, [ebp + 0xf]
lea eax, [eax + edi]
ja 0x5795ef
cmp eax, esi
jae 0x579658
lea esi, [esp + ebp + 0x23]
cmp ecx, esi
ja 0x579603
lea esi, [esp + 0x24]
cmp eax, esi
lea esi, [esp + ebp + 0x23]
jae 0x579658
lea eax, [esp + 0x24]
mov dword [esp + 0x4c], eax
lea eax, [ebp + 0xf]
add eax, ebx
cmp dword [esp + 0x4c], eax
ja 0x57961d
lea eax, [ebx + 0x10]
cmp esi, eax
jae 0x579658
mov eax, ebp
mov esi, ebp
and eax, 0xf
sub esi, eax
mov eax, ebx
sub eax, edi
nop word [eax + eax]
movups xmm1, xmmword [eax + ecx]
lea ecx, [ecx + 0x10]
movups xmm0, xmmword [esp + edx + 0x24]
movups xmmword [esp + edx + 0x24], xmm1
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [ecx - 0x10], xmm0
cmp edx, esi
jb 0x579630
mov dword [esp + 0x4c], edx
cmp edx, ebp
jae 0x579678
lea esi, [edx + 0x10]
add esi, edi
sub ebx, edi
nop
mov cl, byte [esi + ebx]
lea esi, [esi + 1]
mov al, byte [esp + edx + 0x24]
xor al, cl
mov byte [esp + edx + 0x24], cl
inc edx
mov byte [esi - 1], al
cmp edx, ebp
jb 0x579660
push edi
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push dword [esp + 0x24]
call fcn.00578290
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor dword [edi], eax
mov eax, dword [esp + 0x14]
xor dword [edi + 4], eax
mov eax, dword [esp + 0x50]
xor dword [edi + 8], eax
mov eax, dword [esp + 0x10]
xor dword [edi + 0xc], eax
mov eax, dword [esp + 0x54]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34
ret
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], edx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x54]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34
ret