Function at 0x4a8e20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xcc
call fcn.005c5c30
mov eax, dword [0x65db30]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd0]
push esi
mov esi, dword [ecx + 0x60]
push edi
mov edi, dword [esi + 0xc8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xdc]
lea ecx, [edi + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x4a8e82
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.005c5718
add esp, 0xcc
ret
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0xf
push ebx
lea ecx, [esp + ecx + 0x34]
push ebp
lea ebp, [ecx + 0x30]
mov dword [esp + 0x20], ecx
lea ebx, [ecx + 0x40]
mov dword [esp + 0x2c], ebp
cmp edi, 0x40
ja 0x4a8fdd
lea eax, [esi + 0x20]
push eax
push esi
push 0x80
push 0x5fcfc8
push ecx
mov dword [eax], 0
mov dword [esp + 0x44], 0x80
call fcn.0050f890
mov edx, dword [esp + 0x34]
lea eax, [esi + 0xd0]
push edx
push eax
call fcn.00510380
mov ecx, dword [esi + 0x94]
xor eax, eax
mov dword [esi + 0x70], eax
mov dword [ebp], ecx
mov edx, dword [esi + 0x98]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 0x9c]
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0xa0]
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0xc], edx
add esp, 0x1c
mov dword [esi + 0xa8], 0xd
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], eax
cmp dword [ecx + 8], eax
je 0x4a8f6b
xor ebp, ebp
test edi, edi
je 0x4a8fb3
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
sub edx, ebx
mov eax, ebx
sub ebp, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [ecx]
movzx ecx, byte [edx + eax]
movzx edi, byte [eax]
xor ecx, edi
mov byte [eax], cl
mov byte [eax + ebp], cl
inc eax
dec dword [esp + 0x18]
jne 0x4a8f50
mov ebp, dword [esp + 0x1c]
jmp 0x4a8fb3
cmp edi, eax
jbe 0x4a8fb1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub ecx, eax
sub eax, ebx
mov ebp, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
jmp 0x4a8f94
mov eax, dword [esp + 0x28]
mov dl, byte [ebp]
lea edi, [eax + ebp]
mov al, byte [edi + ecx]
xor dl, al
mov byte [ebp], al
inc ebp
dec dword [esp + 0x18]
mov byte [edi], dl
jne 0x4a8f90
mov ebp, dword [esp + 0x1c]
jmp 0x4a8fb3
mov ebp, eax
add dword [esp + 0x10], ebp
add dword [esp + 0x14], ebp
mov edi, ebp
neg edi
and edi, 0xf
push edi
lea eax, [ebx + ebp]
push 0
push eax
call sub.MSVCR100.dll_memset
add edi, ebp
add esp, 0xc
add ebx, edi
lea eax, [edi + 0x10]
jmp 0x4a90d3
lea ebp, [esi + 0x20]
push ebp
push esi
push 0x40
push 0x5fcfc8
push ecx
mov dword [ebp], 0
mov dword [esp + 0x44], 0x40
call fcn.0050f890
mov edx, dword [esp + 0x34]
lea eax, [esi + 0xd0]
push edx
push eax
call fcn.00510380
push 0x10
lea eax, [esi + 0x94]
push eax
lea eax, [esi + 0xd0]
push eax
mov dword [ebp], 1
mov dword [esi + 0x70], 0
call fcn.00510440
mov ecx, dword [esp + 0x4c]
xor eax, eax
add esp, 0x28
mov dword [esi + 0xa8], 0xd
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
cmp dword [ecx + 8], eax
je 0x4a9086
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push edx
push ebp
call fcn.0050f890
push edi
lea eax, [esi + 0xd0]
push ebp
push eax
call fcn.00510440
jmp 0x4a90aa
mov eax, dword [esp + 0x10]
push edi
push eax
lea eax, [esi + 0xd0]
push eax
call fcn.00510440
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebp
push esi
push edi
push ecx
push edx
call fcn.0050f890
add dword [esp + 0x30], edi
add dword [esp + 0x34], edi
add esp, 0x20
neg edi
and edi, 0xf
push edi
lea eax, [esi + 0xd0]
push 0x5fcfc8
push eax
call fcn.00510440
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esi + 0xa8]
mov ebp, dword [esp + 0x2c]
mov dword [ebx], ecx
mov edx, dword [esi + 0xac]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0xb0]
add eax, 0x10
push eax
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xb4]
push ebp
lea edi, [esi + 0xd0]
push edi
mov dword [ebx + 0xc], edx
call fcn.00510440
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.004e60d0
mov ebx, dword [esp + 0x38]
add esp, 0x14
cmp dword [ebx + 8], 0
lea eax, [esi + 0x84]
jne 0x4a912f
mov eax, ebp
push eax
push edi
call fcn.005104f0
add esp, 8
mov dword [esi + 0xc8], 0xffffffff
cmp dword [ebx + 8], 0
je 0x4a918d
mov edx, dword [esi + 0x84]
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov ecx, dword [esi + 0x88]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x8c]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x90]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xd8]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.005c5718
add esp, 0xcc
ret
mov edx, dword [esp + 0x10]
push 0x10
push edx
push ebp
call fcn.004b9290
add esp, 0xc
test eax, eax
je 0x4a9170
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 0x10]
push eax
mov eax, dword [esp + 0x18]
sub eax, ecx
add eax, 0x10
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
or eax, 0xffffffff
jmp 0x4a9174