Function at 0x46e0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5c6150]
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 0x46e2c7
mov ecx, dword [ebp + 8]
cmp ecx, 0x10
jb 0x46e173
shr ecx, 4
mov dword [ebp - 0x1c], ecx
nop word [eax + eax]
lea eax, [ebx + 0xf]
cmp esi, eax
ja 0x46e0fe
lea eax, [esi + 0xf]
cmp eax, ebx
jae 0x46e10c
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x46e137
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x46e137
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 0x46e120
mov esi, dword [ebp - 0x30]
jmp 0x46e144
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.0046c9d0
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 0x46e0f0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x46e2bf
xor edx, edx
mov dword [ebp - 0x24], edx
test ecx, ecx
je 0x46e28d
cmp ecx, 0x40
jb 0x46e259
lea eax, [ebx - 1]
mov dword [ebp - 0x24], edx
add eax, ecx
cmp esi, eax
ja 0x46e1aa
lea eax, [esi - 1]
add eax, ecx
cmp eax, ebx
jae 0x46e259
lea eax, [edi - 1]
add eax, ecx
cmp esi, eax
ja 0x46e1c0
lea eax, [esi - 1]
add eax, ecx
cmp eax, edi
jae 0x46e259
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 0x46e1f0
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
cmp edx, ecx
jae 0x46e28d
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 0x46e275
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
cmp ecx, 0x10
jae 0x46e2ae
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 0x46e2a0
push dword [ebp - 0x2c]
mov edx, esi
mov ecx, esi
call fcn.0046c9d0
add esp, 4
mov edi, esi
movups xmm0, xmmword [edi]
jmp 0x46e5c7
cmp ebx, esi
je 0x46e444
mov eax, dword [ebp + 8]
cmp eax, 0x10
jb 0x46e33e
shr eax, 4
mov dword [ebp - 0x20], eax
nop dword [eax]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0046cf10
lea eax, [edi + 0xf]
add esp, 4
cmp esi, eax
ja 0x46e314
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x46e314
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 0x46e304
jmp 0x46e321
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 0x46e2e0
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x46e43c
push ecx
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0046cf10
mov edx, dword [ebp + 8]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x46e43a
cmp edx, 0x40
jb 0x46e418
lea eax, [ebp + edx - 0x15]
mov dword [ebp - 0x24], ecx
cmp esi, eax
ja 0x46e38c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [edx - 1]
add eax, esi
cmp eax, dword [ebp - 0x18]
jae 0x46e418
lea eax, [edx - 1]
add eax, edi
cmp esi, eax
ja 0x46e39e
lea eax, [edx - 1]
add eax, esi
cmp eax, edi
jae 0x46e418
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 0x46e3c0
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jae 0x46e43a
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 0x46e423
mov edi, ebx
movups xmm0, xmmword [edi]
jmp 0x46e5c7
mov edi, dword [ebp + 8]
cmp edi, 0x10
jb 0x46e4d5
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.0046cf10
add esp, 4
cmp esi, dword [ebp - 0x18]
ja 0x46e4a6
lea eax, [esi + 0xf]
cmp eax, dword [ebp - 0x28]
jb 0x46e4a6
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 0x46e490
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
jmp 0x46e4b6
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 0x46e463
mov dword [ebp - 0x30], esi
test edi, edi
je 0x46e5cd
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.0046cf10
add esp, 4
xor edx, edx
test edi, edi
je 0x46e5a4
mov ebx, dword [ebp - 0x28]
cmp edi, 0x40
jb 0x46e580
lea eax, [ebx - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x46e51a
cmp ecx, ebx
jae 0x46e580
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 0x46e530
mov esi, dword [ebp - 0x30]
cmp edx, edi
jae 0x46e5a4
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 0x46e593
mov edi, dword [ebp + 8]
cmp edi, 0x10
jae 0x46e5c3
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.004d9a60
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.004d6cfd
mov esp, ebp
pop ebp
ret