Function at 0x4e5c7c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff58
mov dword [esp + 4], edx
mov dword [esp], eax
lea edx, [esp + 0x18]
mov eax, dword [esp]
add eax, 0x28
mov ecx, 0x10
call fcn.00402d04
mov dword [esp + 0x10], 1
lea esi, [esp + 0x18]
mov edx, 8
mov eax, dword [esi + 0xc]
call fcn.004d7970
mov ebx, eax
xor ebx, dword [esi]
mov ecx, dword [esp + 0x10]
dec ecx
mov eax, 1
shl eax, cl
xor ebx, eax
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 4]
xor eax, ebx
mov dword [esi + 0x14], eax
mov edx, dword [esi + 8]
xor edx, eax
mov dword [esi + 0x18], edx
mov eax, dword [esi + 0xc]
xor eax, edx
mov dword [esi + 0x1c], eax
mov edi, 4
mov ebx, esi
mov ebp, dword [ebx]
mov eax, ebp
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x500b54]
mov edx, 8
call fcn.004d7960
and ebp, 0xff
xor eax, dword [ebp*4 + 0x500b54]
push eax
mov eax, dword [ebx]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x500b54]
mov edx, 0x10
call fcn.004d7960
pop edx
xor edx, eax
push edx
mov eax, dword [ebx]
shr eax, 0x18
mov eax, dword [eax*4 + 0x500b54]
mov edx, 0x18
call fcn.004d7960
pop edx
xor edx, eax
mov dword [ebx], edx
add ebx, 4
dec edi
jne 0x4e5cee
inc dword [esp + 0x10]
add esi, 0x10
cmp dword [esp + 0x10], 9
jne 0x4e5cad
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
xor eax, dword [edx]
add dword [esp + 0x14], 4
mov edx, dword [esp + 4]
mov edx, dword [edx + 4]
mov ecx, dword [esp + 0x14]
xor edx, dword [ecx]
add dword [esp + 0x14], 4
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 8]
mov ebx, dword [esp + 0x14]
xor ecx, dword [ebx]
add dword [esp + 0x14], 4
mov ebx, dword [esp + 4]
mov ebx, dword [ebx + 0xc]
mov esi, dword [esp + 0x14]
xor ebx, dword [esi]
add dword [esp + 0x14], 4
mov dword [esp + 0x10], 7
mov esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x500f54]
mov edi, edx
and edi, 0xff
xor esi, dword [edi*4 + 0x501354]
mov edi, ecx
and edi, 0xff
xor esi, dword [edi*4 + 0x501754]
mov edi, ebx
and edi, 0xff
xor esi, dword [edi*4 + 0x501b54]
mov edi, dword [esp + 0x14]
xor esi, dword [edi]
add dword [esp + 0x14], 4
mov edi, eax
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x500f54]
mov ebp, edx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x501354]
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x501754]
mov ebp, ebx
shr ebp, 8
and ebp, 0xff
xor edi, dword [ebp*4 + 0x501b54]
mov ebp, dword [esp + 0x14]
xor edi, dword [ebp]
mov dword [esp + 8], edi
add dword [esp + 0x14], 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x500f54]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x501354]
mov ebp, ecx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x501754]
mov ebp, ebx
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x501b54]
mov ebp, dword [esp + 0x14]
xor edi, dword [ebp]
mov dword [esp + 0xc], edi
add dword [esp + 0x14], 4
shr eax, 0x18
mov eax, dword [eax*4 + 0x500f54]
shr edx, 0x18
xor eax, dword [edx*4 + 0x501354]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x501754]
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x501b54]
mov edx, dword [esp + 0x14]
xor eax, dword [edx]
mov ebx, eax
add dword [esp + 0x14], 4
mov eax, esi
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
dec dword [esp + 0x10]
jne 0x4e5dc2
mov esi, dword [esp]
movzx esi, byte [esi + 0x18]
mov edi, eax
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
xor esi, edi
mov edi, edx
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 8
xor esi, edi
mov edi, ecx
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 0x10
xor esi, edi
mov edi, ebx
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0x14]
xor esi, dword [edi]
mov edi, dword [esp]
mov dword [edi + 0x28], esi
add dword [esp + 0x14], 4
mov esi, dword [esp]
movzx esi, byte [esi + 0x19]
mov edi, eax
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
xor esi, edi
mov edi, edx
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0x14]
xor esi, dword [edi]
mov edi, dword [esp]
mov dword [edi + 0x2c], esi
add dword [esp + 0x14], 4
mov esi, dword [esp]
movzx esi, byte [esi + 0x1a]
mov edi, eax
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x500a54]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0x14]
xor esi, dword [edi]
mov edi, dword [esp]
mov dword [edi + 0x30], esi
add dword [esp + 0x14], 4
mov esi, dword [esp]
movzx esi, byte [esi + 0x1b]
shr eax, 0x18
movzx eax, byte [eax + 0x500a54]
xor esi, eax
shr edx, 0x18
xor eax, eax
mov al, byte [edx + 0x500a54]
shl eax, 8
xor esi, eax
shr ecx, 0x18
xor eax, eax
mov al, byte [ecx + 0x500a54]
shl eax, 0x10
xor esi, eax
shr ebx, 0x18
xor eax, eax
mov al, byte [ebx + 0x500a54]
shl eax, 0x18
xor esi, eax
mov eax, dword [esp + 0x14]
xor esi, dword [eax]
mov eax, dword [esp]
mov dword [eax + 0x34], esi
add esp, 0xa8
pop ebp
pop edi
pop esi
pop ebx
ret