Function at 0x49ed10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0055eea0
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp + 2]
push esi
shl eax, 0x10
shl ecx, 8
cmp dword [esp + 0x34], 0
push edi
je 0x49ef46
movzx edx, byte [ebp]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
shl edx, 0x18
or edx, eax
movzx eax, byte [ebp + 3]
or edx, ecx
movzx ecx, byte [ebp + 5]
or edx, eax
movzx eax, byte [ebp + 4]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebp + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebp + 7]
or eax, ecx
add ebx, 0xfffffff8
mov dword [esp + 0x38], eax
js 0x49ee52
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x10], eax
jmp 0x49eda0
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
movzx ebx, byte [edi + 5]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [edi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 3]
or eax, ecx
movzx ecx, byte [edi + 4]
shl ecx, 0x18
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [edi + 6]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edi + 7]
xor eax, edx
mov edx, dword [esp + 0x30]
or ecx, ebx
xor ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
push eax
add edi, 8
mov dword [esp + 0x24], ecx
call fcn.0049e500
mov edx, dword [esp + 0x20]
mov ecx, edx
shr ecx, 0x18
mov byte [esi], cl
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, dword [esp + 0x24]
mov ecx, edx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 5], cl
mov ecx, eax
shr ecx, 8
mov byte [esi + 6], cl
mov byte [esi + 7], al
add esp, 8
add esi, 8
dec dword [esp + 0x2c]
mov dword [esp + 0x38], eax
jne 0x49eda0
mov ebx, dword [esp + 0x10]
cmp ebx, 0xfffffff8
je 0x49ef26
lea edi, [edi + ebx + 8]
add ebx, 7
xor ecx, ecx
mov dword [esp + 0x2c], 0
cmp ebx, 7
ja case.default.0x49ee71
jmp dword [ebx*4 + 0x49f184]
movzx ecx, byte [edi - 1]
dec edi
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 8
or dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x10
or dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x18
or dword [esp + 0x2c], ecx
movzx ecx, byte [edi - 1]
dec edi
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 0x10
or ecx, ebx
movzx edi, byte [edi - 1]
shl edi, 0x18
or ecx, edi
xor ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
xor ecx, eax
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call fcn.0049e500
mov edx, dword [esp + 0x20]
mov ecx, edx
shr ecx, 0x18
mov byte [esi], cl
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, dword [esp + 0x24]
mov ecx, edx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 5], cl
mov ecx, eax
add esp, 8
shr ecx, 8
mov byte [esi + 6], cl
mov byte [esi + 7], al
mov ecx, edx
shr ecx, 0x18
mov byte [ebp], cl
mov ecx, edx
shr ecx, 0x10
mov byte [ebp + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [ebp + 2], cl
mov byte [ebp + 3], dl
jmp 0x49f160
movzx ebx, byte [ebp]
movzx edx, byte [ebp + 3]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
shl ebx, 0x18
or ebx, eax
movzx eax, byte [ebp + 4]
or ebx, ecx
movzx ecx, byte [ebp + 5]
or ebx, edx
movzx edx, byte [ebp + 6]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [ebp + 7]
shl edx, 8
or eax, edx
or eax, ecx
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], ecx
js 0x49f074
lea eax, [ecx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea edx, [ecx + eax*8]
mov dword [esp + 0x10], edx
mov edi, edi
movzx ebp, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
movzx ebx, byte [esi + 4]
shl eax, 0x10
shl ebp, 0x18
or ebp, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ebp, ecx
movzx ecx, byte [esi + 6]
shl ebx, 0x18
shl eax, 0x10
or ebp, edx
movzx edx, byte [esi + 7]
or ebx, eax
mov eax, dword [esp + 0x30]
shl ecx, 8
or ebx, ecx
push eax
lea ecx, [esp + 0x1c]
or ebx, edx
push ecx
mov dword [esp + 0x20], ebp
add esi, 8
mov dword [esp + 0x24], ebx
call fcn.0049e500
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
xor ecx, dword [esp + 0x24]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
mov edx, eax
shr edx, 8
mov byte [edi + 2], dl
mov byte [edi + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
mov byte [edi + 5], dl
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
add esp, 8
add edi, 8
dec dword [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], ebx
jne 0x49efb0
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
cmp ecx, 0xfffffff8
je 0x49f145
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 6]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 4]
shl eax, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 8
or ecx, edx
or eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0049e500
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
xor ebx, dword [esp + 0x20]
xor eax, dword [esp + 0x24]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 8
cmp ecx, 7
ja case.default.0x49f0f8
jmp dword [ecx*4 + 0x49f1a4]
dec edi
mov byte [edi], al
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
dec edi
shr eax, 0x18
mov byte [edi], al
dec edi
mov byte [edi], bl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
shr ebx, 0x18
mov byte [edi - 1], bl
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], edx
mov ebx, ecx
mov eax, edx
mov ecx, ebx
shr ecx, 0x18
mov byte [ebp], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
mov byte [ebp + 1], dl
shr ecx, 8
mov byte [ebp + 2], cl
mov byte [ebp + 3], bl
mov edx, eax
shr edx, 0x18
mov byte [ebp + 4], dl
mov ecx, eax
shr ecx, 0x10
mov edx, eax
pop edi
mov byte [ebp + 5], cl
shr edx, 8
mov byte [ebp + 6], dl
pop esi
mov byte [ebp + 7], al
pop ebp
pop ebx
add esp, 0x10
ret