Function at 0x4e5110
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.005650a0
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
je 0x4e5356
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
mov dword [esp + 0x14], eax
inc eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 1]
mov ebp, dword [esp + 0x30]
inc eax
movzx ebx, byte [eax + 1]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
shl ecx, 0x18
inc eax
or edx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or ebx, ecx
add ebp, 0xfffffff8
js 0x4e5252
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x3c], eax
neg eax
lea ecx, [ebp + eax*8]
mov dword [esp + 0x30], ecx
lea esp, [esp]
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
movzx ebp, byte [edi + 1]
inc edi
shl ebp, 8
or ecx, ebp
movzx ebp, byte [edi + 1]
inc edi
shl ebp, 0x10
or ecx, ebp
movzx ebp, byte [edi + 1]
inc edi
xor eax, edx
mov edx, dword [esp + 0x34]
shl ebp, 0x18
push 1
or ecx, ebp
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x24]
xor ecx, ebx
push eax
inc edi
mov dword [esp + 0x2c], ecx
call fcn.004e4920
mov eax, dword [esp + 0x28]
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x2c]
inc esi
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov ebx, eax
shr eax, 0x18
mov byte [esi], al
add esp, 0xc
inc esi
sub dword [esp + 0x3c], 1
jne 0x4e51a0
mov ebp, dword [esp + 0x30]
cmp ebp, 0xfffffff8
je 0x4e5314
lea edi, [edi + ebp + 8]
add ebp, 7
xor ecx, ecx
xor eax, eax
cmp ebp, 7
ja case.default.0x4e526b
jmp dword [ebp*4 + 0x4e55a4]
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x18
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 8
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 0x10
or eax, ebp
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 8
or eax, ebp
movzx edi, byte [edi - 1]
or eax, edi
xor ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
xor eax, edx
push 1
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
call fcn.004e4920
mov eax, dword [esp + 0x28]
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x2c]
inc esi
mov byte [esi], al
mov ecx, eax
shr ecx, 8
inc esi
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
add esp, 0xc
mov ebx, eax
shr eax, 0x18
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov byte [eax], dl
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
mov eax, edx
inc esi
shr eax, 0x10
mov byte [esi - 1], al
shr edx, 0x18
mov byte [esi], dl
mov byte [esi + 1], bl
inc esi
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
mov edx, ebx
inc esi
shr edx, 0x10
shr ebx, 0x18
pop edi
mov byte [esi], dl
mov byte [esi + 1], bl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x14], eax
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl edx, 0x10
or ebx, edx
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
shl ecx, 0x18
inc eax
movzx edx, byte [eax + 1]
or ebx, ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x30]
shl edx, 0x10
or ecx, edx
add eax, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
js 0x4e5491
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x18], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x30], ecx
jmp 0x4e53d0
movzx ebp, byte [esi]
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl edx, 8
inc esi
or ebp, edx
shl eax, 0x10
or ebp, eax
movzx eax, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl ecx, 0x18
or ebp, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 8
or eax, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebp
inc esi
call fcn.004e4920
mov ecx, dword [esp + 0x48]
xor ecx, dword [esp + 0x2c]
mov eax, ebx
xor eax, dword [esp + 0x28]
inc edi
mov byte [edi - 1], al
mov edx, eax
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x1c]
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
add esp, 0xc
inc edi
sub dword [esp + 0x18], 1
mov ebx, ebp
mov dword [esp + 0x3c], eax
jne 0x4e53d0
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp eax, 0xfffffff8
je 0x4e5561
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 8
shl edx, 0x10
or ebp, ecx
or ebp, edx
shl eax, 0x18
or ebp, eax
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 2]
shl ecx, 8
inc esi
or eax, ecx
movzx ecx, byte [esi]
shl edx, 8
or edx, ecx
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x34]
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebp
call fcn.004e4920
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
xor ebx, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x4e5518
jmp dword [ecx*4 + 0x4e55c4]
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov edx, ebx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x10]
mov ebx, ebp
mov dword [esp + 0x3c], edx
mov ecx, edx
mov eax, dword [esp + 0x38]
mov byte [eax], bl
mov eax, dword [esp + 0x14]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
pop edi
mov edx, ecx
inc eax
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
add esp, 0x14
ret