Function at 0x4590e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], edx
mov esi, ecx
mov dword [ebp - 4], ecx
and edi, 3
and esi, 3
cmp esi, edi
jne 0x4591f2
mov esi, eax
and esi, 3
cmp edi, esi
jne 0x4591f2
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x45912b
test esi, esi
je 0x45912b
mov bl, byte [eax]
dec esi
xor bl, byte [edx]
inc eax
mov byte [ecx], bl
inc edx
inc ecx
test dl, 3
jne 0x459118
mov ebx, esi
xor edi, edi
shr ebx, 2
test ebx, ebx
je 0x4591e4
cmp ebx, 0x10
jb 0x4591c7
lea edi, [ebx - 1]
lea edi, [edx + edi*4]
cmp ecx, edi
ja 0x459157
lea edi, [ebx - 1]
lea edi, [ecx + edi*4]
cmp edi, edx
jae 0x4591c5
lea edi, [ebx - 1]
lea edi, [eax + edi*4]
cmp ecx, edi
ja 0x45916b
lea edi, [ebx - 1]
lea edi, [ecx + edi*4]
cmp edi, eax
jae 0x4591c5
mov edi, ebx
and edi, 0xfffffff0
mov dword [ebp + 0xc], edi
xor edi, edi
movups xmm0, xmmword [edx]
add edi, 0x10
movups xmm1, xmmword [eax]
xorps xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [edx + 0x10]
movups xmm1, xmmword [eax + 0x10]
xorps xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [edx + 0x20]
movups xmm1, xmmword [eax + 0x20]
xorps xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm1, xmmword [eax + 0x30]
add eax, 0x40
movups xmm0, xmmword [edx + 0x30]
add edx, 0x40
xorps xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edi, dword [ebp + 0xc]
jb 0x459175
cmp edi, ebx
jae 0x4591e4
jmp 0x4591c7
xor edi, edi
sub ebx, edi
nop dword [eax]
mov edi, dword [eax]
add eax, 4
xor edi, dword [edx]
add edx, 4
mov dword [ecx], edi
add ecx, 4
sub ebx, 1
jne 0x4591d0
mov dword [ebp - 4], ecx
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp + 8], eax
jmp 0x4591f5
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp + 0xc], esi
test esi, esi
je 0x459333
cmp esi, 8
jb 0x459318
lea edi, [edx - 1]
add edi, esi
cmp ecx, edi
ja 0x459221
lea edi, [ecx - 1]
add edi, esi
cmp edi, edx
jae 0x459318
lea edi, [eax - 1]
add edi, esi
cmp ecx, edi
ja 0x459237
lea edi, [ecx - 1]
add edi, esi
cmp edi, eax
jae 0x459318
cmp esi, 0x40
jb 0x4592d3
mov edi, esi
and edi, 0x3f
mov dword [ebp - 8], edi
mov edi, esi
sub edi, dword [ebp - 8]
mov esi, eax
sub esi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], esi
lea edi, [edx + 0x10]
mov esi, ecx
sub esi, edx
mov edx, eax
sub edx, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
lea esi, [ecx + 0x20]
mov edx, dword [ebp - 0x10]
nop
movups xmm0, xmmword [edi - 0x10]
mov ecx, dword [ebp - 0x14]
lea edi, [edi + 0x40]
movups xmm1, xmmword [ebx + eax]
lea esi, [esi + 0x40]
xorps xmm1, xmm0
movups xmmword [esi - 0x60], xmm1
movups xmm0, xmmword [edi - 0x40]
movups xmm1, xmmword [edx + edi - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx + edi - 0x40], xmm1
mov ecx, dword [ebp - 0x18]
movups xmm0, xmmword [edi - 0x30]
movups xmm1, xmmword [ecx + esi - 0x40]
mov ecx, dword [ebp - 4]
xorps xmm1, xmm0
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [eax + ebx + 0x30]
add ebx, 0x40
movups xmm0, xmmword [edi - 0x20]
xorps xmm1, xmm0
movups xmmword [esi - 0x30], xmm1
cmp ebx, dword [ebp - 0x1c]
jb 0x459270
cmp dword [ebp - 8], 8
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
jb 0x459314
and esi, 0xfffffff8
lea edi, [ebx + edx]
mov dword [ebp - 0x14], esi
mov esi, eax
sub esi, edx
sub ecx, edx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
nop
movq xmm1, qword [eax + edi]
lea edi, [edi + 8]
movq xmm0, qword [edi - 8]
add ebx, 8
xorps xmm1, xmm0
movq qword [ecx + edi - 8], xmm1
cmp ebx, dword [ebp - 0x14]
jb 0x4592f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ebx, esi
jae 0x459333
sub eax, edx
lea edi, [ebx + edx]
sub ecx, edx
sub esi, ebx
mov dl, byte [eax + edi]
lea edi, [edi + 1]
xor dl, byte [edi - 1]
mov byte [ecx + edi - 1], dl
sub esi, 1
jne 0x459321
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret