Function at 0x40cf20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 1
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov esi, edx
push edi
mov dword [ebp - 0x30], esi
mov edi, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
jne 0x40d147
mov ecx, dword [ebp + 8]
cmp ecx, 0x10
jb 0x40cff3
shr ecx, 4
mov dword [ebp - 0x1c], ecx
nop word [eax + eax]
lea eax, [ebx + 0xf]
cmp esi, eax
ja 0x40cf7e
lea eax, [esi + 0xf]
cmp eax, ebx
jae 0x40cf8c
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x40cfb7
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x40cfb7
mov eax, esi
sub edi, ebx
sub eax, ebx
mov ecx, ebx
mov dword [ebp - 0x20], eax
mov edx, 0x10
mov esi, eax
nop
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [esi + ecx - 1], al
sub edx, 1
jne 0x40cfa0
mov esi, dword [ebp - 0x30]
jmp 0x40cfc4
movups xmm1, xmmword [ebx]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push dword [ebp - 0x2c]
mov edx, esi
mov ecx, esi
call fcn.0040c370
mov ecx, dword [ebp + 8]
mov edi, esi
sub ecx, 0x10
add esi, 0x10
add esp, 4
mov dword [ebp + 8], ecx
add ebx, 0x10
mov dword [ebp - 0x30], esi
sub dword [ebp - 0x1c], 1
jne 0x40cf70
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x40d13f
xor edx, edx
mov dword [ebp - 0x24], edx
test ecx, ecx
je 0x40d10d
cmp ecx, 0x40
jb 0x40d0d9
lea eax, [ebx - 1]
mov dword [ebp - 0x24], edx
add eax, ecx
cmp esi, eax
ja 0x40d02a
lea eax, [esi - 1]
add eax, ecx
cmp eax, ebx
jae 0x40d0d9
lea eax, [edi - 1]
add eax, ecx
cmp esi, eax
ja 0x40d040
lea eax, [esi - 1]
add eax, ecx
cmp eax, edi
jae 0x40d0d9
mov eax, ecx
mov ecx, edi
sub ecx, ebx
and eax, 0xffffffc0
mov dword [ebp - 0x38], ecx
mov ecx, esi
sub ecx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], ecx
mov eax, ebx
mov ebx, dword [ebp - 0x38]
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x40], ecx
lea ecx, [edi + 0x30]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
lea ecx, [esi + 0x10]
nop
movups xmm0, xmmword [eax]
mov edx, dword [ebp - 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + ebx - 0x40]
mov esi, dword [ebp - 0x34]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + edi - 0x40], xmm1
movups xmm1, xmmword [edx + ecx - 0x40]
mov edx, dword [ebp - 0x24]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [esi + edx - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [esi + edx]
mov esi, dword [ebp - 0x30]
add edx, 0x40
mov dword [ebp - 0x24], edx
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp edx, dword [ebp - 0x18]
jb 0x40d070
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
cmp edx, ecx
jae 0x40d10d
sub esi, ebx
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x34], esi
add edx, ebx
mov dword [ebp - 0x18], eax
mov ebx, ecx
mov esi, eax
sub ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov al, byte [edx + esi]
lea edx, [edx + 1]
xor al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub ebx, 1
jne 0x40d0f5
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
cmp ecx, 0x10
jae 0x40d12e
mov ebx, 0x10
lea edx, [esi + ecx]
sub edi, esi
sub ebx, ecx
nop
mov al, byte [edx + edi]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x40d120
push dword [ebp - 0x2c]
mov edx, esi
mov ecx, esi
call fcn.0040c370
add esp, 4
mov edi, esi
movups xmm0, xmmword [edi]
jmp 0x40d447
cmp ebx, esi
je 0x40d2c4
mov eax, dword [ebp + 8]
cmp eax, 0x10
jb 0x40d1be
shr eax, 4
mov dword [ebp - 0x20], eax
nop dword [eax]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0040c8b0
lea eax, [edi + 0xf]
add esp, 4
cmp esi, eax
ja 0x40d194
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x40d194
mov ecx, esi
sub edi, esi
mov edx, 0x10
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x40d184
jmp 0x40d1a1
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
mov eax, dword [ebp + 8]
mov edi, ebx
mov ecx, dword [ebp - 0x2c]
sub eax, 0x10
add ebx, 0x10
mov dword [ebp + 8], eax
add esi, 0x10
sub dword [ebp - 0x20], 1
jne 0x40d160
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x40d2bc
push ecx
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0040c8b0
mov edx, dword [ebp + 8]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x40d2ba
cmp edx, 0x40
jb 0x40d298
lea eax, [ebp + edx - 0x15]
mov dword [ebp - 0x24], ecx
cmp esi, eax
ja 0x40d20c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [edx - 1]
add eax, esi
cmp eax, dword [ebp - 0x18]
jae 0x40d298
lea eax, [edx - 1]
add eax, edi
cmp esi, eax
ja 0x40d21e
lea eax, [edx - 1]
add eax, esi
cmp eax, edi
jae 0x40d298
mov eax, edx
mov edx, edi
and eax, 0xffffffc0
sub edx, esi
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ebp + ecx - 0x14]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + ecx]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + ecx - 4]
movups xmmword [esi + ecx], xmm1
movups xmm1, xmmword [eax + ebx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + ecx + 0xc]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edi + ecx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + ecx + 0x1c]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + ecx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 0x34]
jb 0x40d240
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jae 0x40d2ba
lea eax, [ebp - 0x14]
sub edi, eax
sub esi, eax
lea ecx, [ebp + ecx - 0x14]
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + esi], al
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jb 0x40d2a3
mov edi, ebx
movups xmm0, xmmword [edi]
jmp 0x40d447
mov edi, dword [ebp + 8]
cmp edi, 0x10
jb 0x40d355
lea edx, [eax + 0xf]
sub eax, esi
mov dword [ebp - 0x1c], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
movups xmm2, xmmword [ebx]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0040c8b0
add esp, 4
cmp esi, dword [ebp - 0x18]
ja 0x40d326
lea eax, [esi + 0xf]
cmp eax, dword [ebp - 0x28]
jb 0x40d326
mov edi, dword [ebp - 0x1c]
mov ecx, esi
mov edx, 0x10
nop word [eax + eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x40d310
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
jmp 0x40d336
mov eax, dword [ebp - 0x28]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [eax]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
sub dword [ebp - 0x1c], 0x10
sub edi, 0x10
mov ecx, dword [ebp - 0x2c]
add ebx, 0x10
add esi, 0x10
mov dword [ebp + 8], edi
sub dword [ebp - 0x20], 1
movups xmmword [eax], xmm2
jne 0x40d2e3
mov dword [ebp - 0x30], esi
test edi, edi
je 0x40d44d
movups xmm0, xmmword [ebx]
push ecx
mov edx, esi
lea ecx, [ebp - 0x14]
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.0040c8b0
add esp, 4
xor edx, edx
test edi, edi
je 0x40d424
mov ebx, dword [ebp - 0x28]
cmp edi, 0x40
jb 0x40d400
lea eax, [ebx - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x40d39a
cmp ecx, ebx
jae 0x40d400
mov ecx, edi
mov eax, esi
mov edi, ebx
and ecx, 0xffffffc0
sub edi, esi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x40d3b0
mov esi, dword [ebp - 0x30]
cmp edx, edi
jae 0x40d424
sub ebx, esi
lea ecx, [esi + edx]
mov dword [ebp - 0x18], ebx
mov ebx, edi
mov edi, dword [ebp - 0x18]
sub ebx, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub ebx, 1
jne 0x40d413
mov edi, dword [ebp + 8]
cmp edi, 0x10
jae 0x40d443
mov eax, 0x10
lea ecx, [ebp - 0x14]
sub eax, edi
lea edx, [esi + edi]
push eax
add ecx, edi
push ecx
push edx
call fcn.00422b20
add esp, 0xc
movups xmm0, xmmword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421b57
mov esp, ebp
pop ebp
ret