Function at 0x4d5ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xac
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4d5d1c
dec eax
shr eax, 3
inc eax
mov dword [esp + 0x1c], eax
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx]
movzx edx, byte [ebx + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx + 3]
shl edx, 0x10
or eax, edx
movzx edx, byte [ebx + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [ebx + 6]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 4]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 7]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 0x14]
shl edx, 0x18
or eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
and al, 0xdf
or al, 0x40
mov byte [edi + 0xc], al
and cl, 0xbf
or cl, 0x20
mov byte [edi + 0x14], cl
movzx ecx, byte [edi + 0xd]
movzx edx, al
movzx eax, byte [edx + 0x681ea0]
mov byte [edi + 0xc], al
movzx edx, byte [ecx + 0x681ea0]
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xd], dl
movzx ecx, byte [eax + 0x681ea0]
movzx edx, byte [edi + 0xf]
mov byte [edi + 0xe], cl
movzx eax, byte [edx + 0x681ea0]
movzx ecx, byte [edi + 0x10]
mov byte [edi + 0xf], al
movzx edx, byte [ecx + 0x681ea0]
movzx eax, byte [edi + 0x11]
mov byte [edi + 0x10], dl
movzx ecx, byte [eax + 0x681ea0]
movzx edx, byte [edi + 0x12]
mov byte [edi + 0x11], cl
movzx eax, byte [edx + 0x681ea0]
movzx ecx, byte [edi + 0x13]
mov byte [edi + 0x12], al
movzx edx, byte [ecx + 0x681ea0]
mov byte [edi + 0x13], dl
lea ecx, [esp + 0x30]
lea edx, [edi + 0xc]
add ebx, 8
call fcn.00445a60
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00588b40
movzx edx, byte [edi + 0x14]
movzx eax, byte [edx + 0x681ea0]
movzx ecx, byte [edi + 0x15]
mov byte [edi + 0x14], al
movzx edx, byte [ecx + 0x681ea0]
movzx eax, byte [edi + 0x16]
mov byte [edi + 0x15], dl
movzx ecx, byte [eax + 0x681ea0]
movzx edx, byte [edi + 0x17]
mov byte [edi + 0x16], cl
movzx eax, byte [edx + 0x681ea0]
movzx ecx, byte [edi + 0x18]
mov byte [edi + 0x17], al
movzx edx, byte [ecx + 0x681ea0]
movzx eax, byte [edi + 0x19]
mov byte [edi + 0x18], dl
movzx ecx, byte [eax + 0x681ea0]
movzx edx, byte [edi + 0x1a]
mov byte [edi + 0x19], cl
movzx eax, byte [edx + 0x681ea0]
movzx ecx, byte [edi + 0x1b]
mov byte [edi + 0x1a], al
movzx edx, byte [ecx + 0x681ea0]
mov byte [edi + 0x1b], dl
lea ecx, [esp + 0x3c]
lea edx, [edi + 0x14]
call fcn.00445a60
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00588b40
mov edx, dword [esp + 0x2c]
xor edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
xor ecx, dword [esp + 0x2c]
mov byte [edi + 0xc], dl
mov eax, dword [esp + 0x44]
xor eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
shr edx, 8
mov byte [edi + 0xd], dl
mov edx, dword [esp + 0x2c]
shr edx, 0x10
mov byte [edi + 0xe], dl
mov edx, dword [esp + 0x2c]
shr edx, 0x18
mov byte [edi + 0xf], dl
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
mov byte [edi + 0x10], dl
shr edx, 8
mov byte [edi + 0x11], dl
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
xor dword [esp + 0x30], eax
shr edx, 0x10
mov byte [edi + 0x12], dl
mov edx, dword [esp + 0x28]
shr edx, 0x18
mov byte [edi + 0x13], dl
mov byte [edi + 0x14], cl
mov edx, ecx
shr edx, 8
mov byte [edi + 0x15], dl
mov edx, ecx
shr edx, 0x10
mov byte [edi + 0x16], dl
shr ecx, 0x18
mov byte [edi + 0x17], cl
mov ecx, dword [esp + 0x30]
mov edx, ecx
shr edx, 8
mov byte [edi + 0x18], cl
mov byte [edi + 0x19], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
add esp, 0x18
dec dword [esp + 0x1c]
mov byte [edi + 0x1a], dl
mov byte [edi + 0x1b], cl
jne 0x4d5aea
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret