Function at 0x4d8eb3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 2]
push ebx
push ebp
push esi
movzx esi, byte [edx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx]
push edi
mov edi, ecx
shl esi, 8
movzx ecx, byte [edx + 7]
or esi, eax
movzx eax, byte [edx + 6]
shl ecx, 8
mov ebp, dword [edi + 4]
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x34], esi
mov ebx, dword [ebp]
movzx eax, byte [edx + 4]
xor ebx, esi
shl ecx, 8
or ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
push 4
pop esi
add ebp, esi
mov dword [esp + 0x14], ebx
mov eax, dword [ebp]
add ebp, esi
xor eax, ecx
movzx ecx, byte [edx + 0xb]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [ebp]
add ebp, esi
xor eax, ecx
movzx ecx, byte [edx + 0xf]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [ebp]
add ebp, esi
xor eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi]
sar eax, 1
dec eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4d91ec
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x8948c0]
mov edi, dword [esp + 0x24]
push 4
xor ecx, dword [eax*4 + 0x8954c0]
mov eax, edi
shr eax, 0x18
pop esi
xor ecx, dword [eax*4 + 0x8944c0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x8958c0]
mov eax, edi
xor ecx, dword [ebp]
add ebp, 4
shr eax, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x8948c0]
xor ecx, dword [eax*4 + 0x8954c0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x8958c0]
mov eax, edi
xor ecx, dword [ebp]
add ebp, esi
shr eax, 8
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ebx, dword [ecx*4 + 0x8954c0]
xor ebx, dword [eax*4 + 0x8948c0]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebx, dword [eax*4 + 0x8944c0]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx*4 + 0x8948c0]
movzx eax, al
xor ebx, dword [eax*4 + 0x8958c0]
mov eax, dword [esp + 0x14]
xor ebx, dword [ebp]
add ebp, esi
shr eax, 8
movzx eax, al
mov dword [esp + 0x4c], ebx
xor edx, dword [eax*4 + 0x8954c0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor edx, dword [eax*4 + 0x8944c0]
mov eax, edi
movzx eax, al
xor edx, dword [eax*4 + 0x8958c0]
mov eax, ebx
xor edx, dword [ebp]
add ebp, esi
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x8948c0]
mov dword [esp + 0x50], edx
xor ecx, dword [eax*4 + 0x8954c0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
mov eax, dword [esp + 0x1c]
movzx eax, al
xor ecx, dword [eax*4 + 0x8958c0]
mov eax, ebx
xor ecx, dword [ebp]
add ebp, esi
shr eax, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ecx
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x8954c0]
xor ecx, dword [eax*4 + 0x8948c0]
mov eax, dword [esp + 0x1c]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
mov eax, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x8958c0]
mov eax, edx
xor ecx, dword [ebp]
add ebp, esi
shr eax, 8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ecx
movzx ecx, al
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x8954c0]
xor ecx, dword [eax*4 + 0x8948c0]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
movzx eax, bl
shr ebx, 0x18
xor ecx, dword [eax*4 + 0x8958c0]
xor ecx, dword [ebp]
add ebp, esi
mov eax, dword [esp + 0x1c]
shr eax, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], ecx
movzx ecx, al
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x8954c0]
xor ecx, dword [eax*4 + 0x8948c0]
xor ecx, dword [ebx*4 + 0x8944c0]
mov ebx, dword [esp + 0x14]
movzx eax, dl
xor ecx, dword [eax*4 + 0x8958c0]
xor ecx, dword [ebp]
add ebp, esi
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], eax
test eax, eax
jg 0x4d8fad
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx ecx, al
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x8948c0]
xor ecx, dword [eax*4 + 0x8954c0]
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x8958c0]
xor ecx, dword [ebp]
add ebp, esi
mov eax, dword [esp + 0x24]
shr eax, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ecx
movzx ecx, al
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x8948c0]
xor ecx, dword [eax*4 + 0x8954c0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x8958c0]
xor ecx, dword [ebp]
add ebp, esi
mov eax, dword [esp + 0x24]
shr eax, 8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ebx, dword [ecx*4 + 0x8954c0]
xor ebx, dword [eax*4 + 0x8948c0]
mov eax, edx
shr eax, 0x18
shr edx, 0x10
movzx ecx, dl
xor ebx, dword [eax*4 + 0x8944c0]
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx*4 + 0x8948c0]
movzx eax, al
xor ebx, dword [eax*4 + 0x8958c0]
mov eax, dword [esp + 0x14]
xor ebx, dword [ebp]
add ebp, esi
shr eax, 8
movzx eax, al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], ebx
xor ecx, dword [eax*4 + 0x8954c0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x8944c0]
mov eax, dword [esp + 0x24]
movzx eax, al
xor ecx, dword [eax*4 + 0x8958c0]
xor ecx, dword [ebp]
add ebp, esi
mov eax, ecx
mov dword [esp + 0x2c], ecx
shr eax, 0x18
mov dword [esp + 0x50], ecx
movzx edx, byte [eax + 0x893e90]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x893e90]
xor edx, eax
mov eax, dword [esp + 0x28]
shl edx, 8
shr eax, 8
movzx eax, al
mov ebx, dword [esp + 0x1c]
movzx eax, byte [eax + 0x893e90]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx eax, byte [eax + 0x893e90]
xor edx, eax
mov eax, ebx
shr eax, 0x18
xor edx, dword [ebp]
add ebp, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], edx
movzx ebx, byte [eax + 0x893e90]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [esp + 0x28]
shl ebx, 8
movzx eax, byte [eax + 0x893e90]
xor ebx, eax
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x893e90]
xor ebx, eax
movzx eax, dl
shl ebx, 8
movzx eax, byte [eax + 0x893e90]
xor ebx, eax
mov eax, edx
shr eax, 0x18
xor ebx, dword [ebp]
mov dword [esp + 0x38], ebx
movzx edx, byte [eax + 0x893e90]
mov eax, dword [esp + 0x1c]
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x893e90]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x893e90]
xor edx, eax
mov eax, dword [esp + 0x20]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x893e90]
xor edx, eax
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
xor edx, dword [ebp + esi]
mov dword [esp + 0x3c], edx
movzx ecx, byte [eax + 0x893e90]
mov eax, dword [esp + 0x20]
shr eax, 0x18
movzx eax, byte [eax + 0x893e90]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x1c]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x893e90]
xor ecx, eax
mov eax, dword [esp + 0x2c]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x893e90]
xor ecx, eax
mov eax, dword [esp + 0x14]
xor ecx, dword [ebp + esi + 4]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov byte [esi], al
shr eax, 8
mov byte [esi + 1], al
mov eax, dword [esp + 0x14]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, dword [esp + 0x14]
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xe], al
lea eax, [esp + 0x34]
push 0x20
mov byte [esi + 4], bl
mov byte [esi + 8], dl
mov byte [esi + 0xc], cl
push 0
shr edx, 0x18
shr ecx, 0x18
push eax
mov eax, dword [fcn.0051c010]
shr ebx, 0x18
mov byte [esi + 7], bl
mov byte [esi + 0xb], dl
mov byte [esi + 0xf], cl
call eax
mov ecx, dword [esp + 0x60]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x48
ret