Function at 0x49af10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x44]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc4]
push 0x20
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004d0d60
push 8
push dword [ebp + 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.004d0d60
add esp, 0x18
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x49afb7
pop ebp
mov esi, dword [ebp - 8]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
cmp dword [ebp + 0x10], 0
jle 0x49b113
nop dword [eax]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x1010101
add eax, 0x1010104
mov dword [ebp - 0xc], eax
cmp eax, 0x1010104
jae 0x49b01d
inc eax
mov dword [ebp - 0xc], eax
pushal
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x49b032
pop ebp
mov esi, dword [ebp - 0x1c]
mov dword [esi], edx
mov dword [esi + 4], eax
popal
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp eax, esi
jge 0x49b08c
mov cl, byte [ebp + eax - 0x24]
inc eax
xor cl, byte [ebx]
inc ebx
mov byte [edx], cl
inc edx
cmp eax, 8
jl 0x49b078
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x10]
sub ebx, 8
mov dword [ebp + 0xc], edx
add eax, 8
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
je 0x49b10b
cmp dword [ebp + 0x20], 0
je 0x49b10b
test eax, 0x3ff
jne 0x49b10b
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0049b120
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
test ebx, ebx
jg 0x49b000
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret