Function at 0x407560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x40d1e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
cmp edi, 0x40
jb 0x407647
mov edi, dword [ebp + 0x10]
lea esi, [ebx + 0x3c]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], edi
add edi, 0x3c
shr eax, 6
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.00407770
lea ecx, [ebp - 8]
add esp, 8
xor eax, eax
cmp ebx, ecx
ja 0x4075bd
lea ecx, [ebp - 0x44]
cmp esi, ecx
jae 0x407630
mov edx, dword [ebp - 0x48]
cmp ebx, edi
ja 0x4075c8
cmp esi, edx
jae 0x407633
movups xmm0, xmmword [ebp - 0x44]
movups xmm1, xmmword [edx]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebx], xmm1
movups xmm1, xmmword [edi - 0x2c]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [esi - 0x2c], xmm1
movups xmm1, xmmword [edi - 0x1c]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [esi - 0x1c], xmm1
movups xmm1, xmmword [edi - 0xc]
pxor xmm1, xmm0
movups xmmword [esi - 0xc], xmm1
sub dword [ebp + 0x18], 0x40
add edx, 0x40
mov ecx, dword [ebp - 0x50]
add edi, 0x40
add ebx, 0x40
mov dword [ebp - 0x48], edx
add esi, 0x40
sub dword [ebp - 0x4c], 1
jne 0x4075a0
mov edi, dword [ebp + 0x18]
mov esi, edx
mov dword [ebp - 0x4c], ebx
jmp 0x40764d
mov edx, dword [ebp - 0x48]
mov ecx, dword [edi + eax*4 - 0x3c]
xor ecx, dword [ebp + eax*4 - 0x44]
mov dword [esi + eax*4 - 0x3c], ecx
inc eax
cmp eax, 0x10
jl 0x407633
jmp 0x407606
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], esi
test edi, edi
je 0x407752
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.00407770
add esp, 8
xor edx, edx
cmp edi, 0x40
jb 0x407739
lea ecx, [ebx - 1]
lea eax, [ebp + edi - 0x45]
add ecx, edi
cmp ebx, eax
ja 0x407685
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x407739
lea eax, [esi - 1]
add eax, edi
cmp ebx, eax
ja 0x407696
cmp ecx, esi
jae 0x407739
lea ecx, [esi + 0x30]
mov eax, edi
mov edi, esi
and eax, 0xffffffc0
lea esi, [ebp - 0x44]
mov dword [ebp - 0x54], eax
sub esi, ebx
lea eax, [ebx + 0x10]
mov dword [ebp - 0x58], esi
sub edi, ebx
lea esi, [ebp - 0x34]
mov dword [ebp - 0x50], edi
sub esi, ebx
mov dword [ebp - 0x5c], esi
lea esi, [ebp - 0x24]
sub esi, ebx
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x60], esi
mov esi, edi
nop dword [eax + eax]
movups xmm0, xmmword [ecx - 0x30]
mov edi, dword [ebp - 0x5c]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ebp + edx - 0x44]
add edx, 0x40
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + eax - 0x40]
movups xmmword [eax - 0x50], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x50]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [ebp - 0x60]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [ebp + 0x18]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x54]
jb 0x4076d0
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x54], edx
cmp edx, edi
jae 0x407752
lea eax, [ebp - 0x44]
sub esi, eax
sub ebx, eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, edi
jb 0x407740
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret