Function at 0x405ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, edx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
cmp edi, 0x40
jb 0x405f84
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x3c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], edi
add edi, 0x3c
shr eax, 6
mov dword [ebp - 0x4c], eax
nop
lea edx, [ebp - 0x44]
call fcn.00404590
lea ecx, [ebp - 8]
xor eax, eax
cmp ebx, ecx
ja 0x405ef8
lea ecx, [ebp - 0x44]
cmp esi, ecx
jae 0x405f67
mov edx, dword [ebp - 0x48]
cmp ebx, edi
ja 0x405f03
cmp esi, edx
jae 0x405f70
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 + 0x10], 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 0x405ee0
mov edi, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0x4c], ebx
jmp 0x405f8a
mov edx, dword [ebp - 0x48]
nop word [eax + eax]
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 0x405f70
jmp 0x405f41
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], esi
test edi, edi
je 0x406082
lea edx, [ebp - 0x44]
call fcn.00404590
xor edx, edx
cmp edi, 0x40
jb 0x406069
lea ecx, [ebx - 1]
lea eax, [ebp + edi - 0x45]
add ecx, edi
cmp ebx, eax
ja 0x405fbd
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x406069
lea eax, [esi - 1]
add eax, edi
cmp ebx, eax
ja 0x405fce
cmp ecx, esi
jae 0x406069
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
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 + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x54]
jb 0x406000
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x54], edx
cmp edx, edi
jae 0x406082
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 0x406070
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407f82
mov esp, ebp
pop ebp
ret