Function at 0x4a4e6d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x48]
movzx edx, byte [ebp + 1]
push esi
mov esi, ecx
movzx ecx, byte [ebp + 2]
movzx ebx, byte [ebp + 0xa]
push edi
mov edi, eax
movzx eax, byte [ebp + 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp]
shl eax, 8
or eax, edx
movzx edx, byte [ebp + 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp + 7]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp + 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp + 4]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp + 0xb]
shl edx, 8
or edx, ebx
movzx ebx, byte [ebp + 9]
shl edx, 8
or edx, ebx
movzx ebx, byte [ebp + 8]
shl edx, 8
or edx, ebx
movzx ebx, byte [ebp + 0xf]
mov dword [esp + 0x10], ebx
movzx ebx, byte [ebp + 0xe]
shl dword [esp + 0x10], 8
mov ebp, dword [esp + 0x10]
or ebp, ebx
mov ebx, dword [esp + 0x50]
movzx ebx, byte [ebx + 0xd]
shl ebp, 8
or ebp, ebx
mov ebx, dword [esp + 0x50]
movzx ebx, byte [ebx + 0xc]
shl ebp, 8
or ebp, ebx
cmp dword [esp + 0x54], 0
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
je 0x4a511d
test ebx, ebx
jbe 0x4a53aa
dec ebx
shr ebx, 4
inc ebx
mov dword [esp + 0x54], ebx
lea ecx, [ecx]
movzx ebx, byte [esi + 3]
shl ebx, 8
movzx ebp, byte [esi + 2]
or ebx, ebp
movzx ebp, byte [esi + 1]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi]
shl ebx, 8
or ebx, ebp
xor eax, ebx
movzx ebx, byte [esi + 7]
movzx ebp, byte [esi + 6]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 5]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 4]
shl ebx, 8
or ebx, ebp
xor ecx, ebx
movzx ebx, byte [esi + 0xb]
movzx ebp, byte [esi + 0xa]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 9]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 8]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 0xe]
xor edx, ebx
movzx ebx, byte [esi + 0xf]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 0xd]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 0xc]
shl ebx, 8
or ebx, ebp
mov ebp, dword [esp + 0x20]
xor ebp, ebx
mov ebx, eax
ror ebx, 8
and ebx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ebx, eax
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov edx, ebp
ror edx, 8
and edx, 0xff00ff00
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
rol ebp, 8
mov dword [esp + 0x1c], ecx
push eax
mov ecx, eax
mov eax, dword [esp + 0x50]
and ebp, 0xff00ff
or edx, ebp
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edx
call fcn.004a5420
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, eax
ror edx, 8
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or eax, edx
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or ecx, edx
mov edx, dword [esp + 0x1c]
mov ebx, edx
ror ebx, 8
and ebx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edx, ebx
mov ebx, dword [esp + 0x20]
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, eax
shr ebx, 8
mov byte [edi + 1], bl
mov ebx, eax
shr ebx, 0x10
mov byte [edi + 2], bl
mov ebx, eax
shr ebx, 0x18
mov byte [edi + 3], bl
mov ebx, ecx
shr ebx, 8
mov byte [edi + 5], bl
mov ebx, ecx
shr ebx, 0x10
mov byte [edi + 6], bl
mov ebx, ecx
shr ebx, 0x18
mov byte [edi + 7], bl
mov ebx, edx
shr ebx, 8
mov byte [edi + 9], bl
mov ebx, edx
shr ebx, 0x10
mov byte [edi + 0xa], bl
mov ebx, edx
shr ebx, 0x18
mov byte [edi + 0xb], bl
mov ebx, ebp
mov byte [edi + 0xc], bl
shr ebx, 8
mov byte [edi + 0xd], bl
mov ebx, ebp
shr ebx, 0x10
mov byte [edi + 0xe], bl
mov ebx, ebp
shr ebx, 0x18
mov byte [edi], al
mov byte [edi + 4], cl
mov byte [edi + 8], dl
mov byte [edi + 0xf], bl
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x54], 1
mov dword [esp + 0x20], ebp
jne 0x4a4f30
jmp 0x4a53aa
test ebx, ebx
jbe 0x4a53aa
lea eax, [ebx - 1]
shr eax, 4
inc eax
mov dword [esp + 0x54], eax
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 7]
movzx ebx, byte [esi + 0xa]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 4]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 0xb]
movzx ebp, byte [esi + 0xe]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi + 9]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi + 8]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi + 0xf]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 0xd]
shl ebx, 8
or ebx, ebp
movzx ebp, byte [esi + 0xc]
shl ebx, 8
or ebx, ebp
mov ebp, eax
ror ebp, 8
and ebp, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ebp, eax
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [esp + 0x38], eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [esp + 0x3c], eax
mov eax, ebx
ror eax, 8
and eax, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or eax, ebx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], ebp
call fcn.004a6370
mov ecx, dword [esp + 0x2c]
mov eax, ecx
add esp, 8
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
or eax, ecx
xor eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov edx, ebx
xor ecx, dword [esp + 0x18]
ror edx, 8
and edx, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or edx, ebx
mov ebx, dword [esp + 0x30]
xor edx, dword [esp + 0x1c]
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
xor ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], ebp
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x1c], ebp
mov ebp, ebx
ror ebp, 8
and ebp, 0xff00ff00
rol ebx, 8
and ebx, 0xff00ff
or ebp, ebx
mov ebx, eax
shr ebx, 8
mov dword [esp + 0x24], eax
mov byte [edi], al
mov byte [edi + 1], bl
mov ebx, eax
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 5], al
mov eax, ecx
shr ebx, 0x10
shr eax, 0x10
mov dword [esp + 0x28], ecx
mov byte [edi + 4], cl
shr ecx, 0x18
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebp
mov byte [edi + 2], bl
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov byte [edi + 8], dl
mov eax, edx
mov ecx, edx
shr eax, 0x10
shr ecx, 8
shr edx, 0x18
mov byte [edi + 0xa], al
mov eax, dword [esp + 0x30]
mov byte [edi + 9], cl
mov byte [edi + 0xb], dl
mov ecx, eax
mov edx, eax
mov byte [edi + 0xc], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
mov byte [edi + 0xd], cl
mov byte [edi + 0xe], dl
mov byte [edi + 0xf], al
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x54], 1
jne 0x4a5130
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x50]
mov ebx, eax
mov byte [esi], al
shr ebx, 8
mov byte [esi + 1], bl
mov ebx, eax
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 4], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], cl
mov eax, edx
mov ecx, edx
mov byte [esi + 8], dl
shr eax, 0x10
shr ecx, 8
shr edx, 0x18
mov byte [esi + 0xa], al
mov eax, dword [esp + 0x20]
mov byte [esi + 9], cl
mov byte [esi + 0xb], dl
mov ecx, eax
mov edx, eax
shr ebx, 0x10
mov byte [esi + 0xc], al
shr ecx, 8
shr edx, 0x10
pop edi
shr eax, 0x18
mov byte [esi + 2], bl
mov byte [esi + 0xd], cl
mov byte [esi + 0xe], dl
mov byte [esi + 0xf], al
pop esi
pop ebp
pop ebx
add esp, 0x34
ret