Function at 0x49cb10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [eax]
test esi, esi
setne cl
test edi, edi
setne al
and al, cl
cmp dword [esp + 0x44], 0
je 0x49cbc7
test al, al
je 0x49cb6e
nop dword [eax + eax]
movzx eax, byte [edx + esi]
xor al, byte [ebp]
inc ebp
mov byte [edx + esi], al
inc esi
mov byte [ebx], al
inc ebx
and esi, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x49cb6e
test esi, esi
jne 0x49cb50
cmp edi, 0x10
jb 0x49cc62
mov dword [esp + 8], edi
jmp 0x49cb94
add edi, 0xfffffff0
add ebx, 0x10
add ebp, 0x10
xor esi, esi
cmp edi, 0xf
jbe 0x49cc59
push dword [esp + 0x38]
push edx
push edx
call fcn.0049aa10
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp esi, 0xf
ja 0x49cb80
nop dword [eax + eax]
mov eax, dword [ebp + esi]
xor eax, dword [edx + esi]
mov dword [edx + esi], eax
mov dword [ebx + esi], eax
add esi, 4
cmp esi, 0x10
jb 0x49cbb0
jmp 0x49cb80
test al, al
je 0x49cbf1
nop dword [eax + eax]
movzx eax, byte [ebp]
movzx ecx, byte [edx + esi]
inc ebp
xor cl, al
mov byte [ebx], cl
mov byte [edx + esi], al
inc esi
inc ebx
and esi, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x49cbf1
test esi, esi
jne 0x49cbd0
cmp edi, 0x10
jb 0x49cdab
mov eax, edi
jmp 0x49cc18
mov eax, dword [esp + 4]
add ebx, 0x10
add ebp, 0x10
xor esi, esi
add eax, 0xfffffff0
cmp eax, 0xf
jbe 0x49cda6
mov dword [esp + 4], eax
push dword [esp + 0x38]
push edx
push edx
call fcn.0049aa10
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp esi, 0xf
ja 0x49cc00
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [ebp + esi]
mov ecx, dword [edx + esi]
xor ecx, eax
mov dword [ebx + esi], ecx
mov dword [edx + esi], eax
add esi, 4
cmp esi, 0x10
jb 0x49cc40
jmp 0x49cc00
mov edi, dword [esp + 8]
xor esi, esi
and edi, 0xf
test edi, edi
je 0x49cdcd
push dword [esp + 0x38]
push edx
push edx
call fcn.0049aa10
add esp, 0xc
cmp edi, 0x20
jae 0x49cca9
mov eax, edi
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
nop word [eax + eax]
movzx ecx, byte [edx + esi]
xor cl, byte [ebp + esi]
dec eax
mov byte [edx + esi], cl
mov byte [ebx + esi], cl
lea esi, [esi + 1]
jne 0x49cc90
jmp 0x49cf1f
mov eax, dword [esp + 0x3c]
lea ecx, [edi + esi]
mov dword [esp + 8], edi
lea edi, [ebx + esi]
lea edx, [eax + esi]
add eax, ecx
mov dword [esp + 0x14], eax
lea eax, [ebx + ecx]
add ecx, ebp
cmp edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
setb byte [esp + 4]
cmp edi, eax
setb byte [esp + 0xc]
cmp edx, ecx
lea edx, [ebp + esi]
setb byte [esp + 3]
cmp edx, eax
setb al
cmp edi, ecx
setb cl
cmp edx, dword [esp + 0x10]
mov dl, byte [esp + 0xc]
setb ah
test byte [esp + 4], dl
jne 0x49cecb
and byte [esp + 3], al
mov edi, dword [esp + 0x40]
jne 0x49cedc
and cl, ah
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 8]
jne 0x49cc90
mov ecx, eax
lea edi, [edx + esi + 0x10]
xor edx, edx
and ecx, 0xffffffe0
mov dword [esp + 4], ecx
sub eax, ecx
lea ecx, [ebp + esi + 0x10]
mov dword [esp + 0x10], ecx
lea ecx, [ebx + esi + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 4]
add esi, ecx
nop word [eax + eax]
mov ecx, dword [esp + 0x10]
movups xmm2, xmmword [edi + edx - 0x10]
movups xmm3, xmmword [edi + edx]
movups xmm0, xmmword [ecx + edx - 0x10]
movups xmm1, xmmword [ecx + edx]
mov ecx, dword [esp + 0xc]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edi + edx - 0x10], xmm2
movups xmmword [edi + edx], xmm3
movups xmmword [ecx + edx - 0x10], xmm2
movups xmmword [ecx + edx], xmm3
add edx, 0x20
cmp dword [esp + 4], edx
jne 0x49cd50
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 8], ecx
jne 0x49cc90
jmp 0x49cf1f
and edi, 0xf
xor esi, esi
test edi, edi
je 0x49cdcd
push dword [esp + 0x38]
push edx
push edx
call fcn.0049aa10
add esp, 0xc
cmp edi, 0x20
jae 0x49cdd6
mov eax, edi
mov edi, dword [esp + 0x40]
jmp 0x49cf00
mov edi, dword [esp + 0x40]
jmp 0x49cf1f
lea ecx, [edi + esi]
lea eax, [ebx + esi]
mov dword [esp + 8], edi
lea edx, [ebx + ecx]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
lea edi, [edx + esi]
add edx, ecx
add ecx, ebp
cmp eax, edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
setb byte [esp + 4]
cmp edi, edx
setb byte [esp + 0xc]
cmp eax, ecx
lea eax, [ebp + esi]
setb byte [esp + 3]
cmp eax, edx
setb dl
cmp edi, ecx
setb cl
cmp eax, dword [esp + 0x10]
mov al, byte [esp + 0xc]
setb ah
test byte [esp + 4], al
jne 0x49cee9
and byte [esp + 3], dl
mov edi, dword [esp + 0x40]
jne 0x49cef3
and cl, ah
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 8]
jne 0x49cf00
mov edi, eax
lea edx, [ecx + esi + 0x10]
lea ecx, [ebp + esi + 0x10]
and edi, 0xffffffe0
mov dword [esp + 0x10], ecx
lea ecx, [ebx + esi + 0x10]
sub eax, edi
mov dword [esp + 4], edi
add esi, edi
xor edi, edi
mov dword [esp + 0xc], ecx
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [esp + 0x10]
movups xmm0, xmmword [edx + edi - 0x10]
movups xmm1, xmmword [edx + edi]
movups xmm2, xmmword [ecx + edi - 0x10]
movups xmm3, xmmword [ecx + edi]
mov ecx, dword [esp + 0xc]
xorps xmm0, xmm2
xorps xmm1, xmm3
movups xmmword [ecx + edi - 0x10], xmm0
movups xmmword [ecx + edi], xmm1
movups xmmword [edx + edi - 0x10], xmm2
movups xmmword [edx + edi], xmm3
add edi, 0x20
cmp dword [esp + 4], edi
jne 0x49ce80
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x40]
cmp dword [esp + 8], ecx
jne 0x49cf00
jmp 0x49cf1f
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
jmp 0x49cc90
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x3c]
jmp 0x49cc90
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x40]
jmp 0x49cf00
mov eax, dword [esp + 8]
nop word [eax + eax]
mov edx, dword [esp + 0x3c]
movzx ecx, byte [ebp + esi]
movzx edx, byte [edx + esi]
xor dl, cl
dec eax
mov byte [ebx + esi], dl
mov edx, dword [esp + 0x3c]
mov byte [edx + esi], cl
lea esi, [esi + 1]
jne 0x49cf00
mov dword [edi], esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret