Function at 0x49b8a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [eax]
test edx, edx
je 0x49b8eb
nop word cs:[eax + eax]
nop dword [eax + eax]
test esi, esi
je 0x49b8eb
movzx eax, byte [ecx + esi]
inc esi
and esi, 0xf
xor al, byte [ebp]
inc ebp
mov byte [ebx], al
inc ebx
cmp edx, 1
lea edx, [edx - 1]
jne 0x49b8d0
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, 0x10
jb 0x49ba1b
mov esi, edx
mov dword [esp], edx
nop word cs:[eax + eax]
nop
push dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
push eax
push edi
call dword [esp + 0x4c]
add esp, 0xc
movzx eax, byte [edi + 0xf]
mov edx, dword [esp + 0x38]
add esi, 0xfffffff0
inc eax
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov byte [edi + 1], al
add byte [edi], ah
mov eax, dword [edx]
xor eax, dword [ebp]
mov dword [ebx], eax
mov eax, dword [edx + 4]
xor eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov eax, dword [edx + 8]
xor eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
xor eax, dword [ebp + 0xc]
add ebp, 0x10
mov dword [ebx + 0xc], eax
add ebx, 0x10
cmp esi, 0xf
ja 0x49b910
mov edx, dword [esp]
mov eax, dword [esp + 0x30]
xor esi, esi
and edx, 0xf
test edx, edx
je 0x49bafd
push eax
mov eax, dword [esp + 0x3c]
push eax
push edi
mov dword [esp + 0xc], edx
call ecx
mov edx, dword [esp + 0xc]
add esp, 0xc
movzx eax, byte [edi + 0xf]
inc eax
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov byte [edi + 1], al
add byte [edi], ah
cmp edx, 0x20
jae 0x49bb06
mov eax, edx
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jmp 0x49bbd0
mov edx, dword [esp + 0x3c]
jmp 0x49bbe1
lea ecx, [edx + esi]
lea eax, [ebx + esi]
lea edi, [ebp + ecx]
lea edx, [ebx + ecx]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x38]
add ecx, edi
cmp eax, dword [esp + 4]
lea edi, [ebp + esi]
setb byte [esp + 4]
cmp edi, edx
mov edi, dword [esp + 0x38]
setb byte [esp + 8]
cmp eax, ecx
mov ah, byte [esp + 8]
setb al
lea ecx, [edi + esi]
cmp ecx, edx
setb cl
test byte [esp + 4], ah
jne 0x49bbc5
and al, cl
jne 0x49bbc5
mov eax, dword [esp]
lea ecx, [ebp + esi + 0x10]
mov dword [esp + 8], ecx
lea ecx, [edi + esi + 0x10]
mov dword [esp + 0xc], ecx
lea ecx, [ebx + esi + 0x10]
mov edx, eax
and edx, 0xffffffe0
sub eax, edx
mov dword [esp + 4], edx
add esi, edx
xor edx, edx
nop word cs:[eax + eax]
mov edi, dword [esp + 8]
movups xmm0, xmmword [edi + edx - 0x10]
movups xmm1, xmmword [edi + edx]
mov edi, dword [esp + 0xc]
movups xmm2, xmmword [edi + edx - 0x10]
movups xmm3, xmmword [edi + edx]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ecx + edx - 0x10], xmm2
movups xmmword [ecx + edx], xmm3
add edx, 0x20
cmp dword [esp + 4], edx
jne 0x49bb80
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
cmp dword [esp], ecx
jne 0x49bbd0
jmp 0x49bbe1
mov eax, dword [esp]
mov edx, dword [esp + 0x3c]
nop dword [eax]
movzx ecx, byte [edi + esi]
xor cl, byte [ebp + esi]
dec eax
mov byte [ebx + esi], cl
lea esi, [esi + 1]
jne 0x49bbd0
mov dword [edx], esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret