Function at 0x4aaa10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4f2720]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], 0xc
mov eax, dword [esp + 0x20]
push ebx
mov ebx, ecx
push edi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov edi, edx
jge 0x4aaa4a
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0045fa14
add esp, 0x1c
ret
mov eax, dword [0x4f7ee4]
add eax, 1
cmp eax, 1
mov dword [0x4f7ee4], eax
jne 0x4aaa71
push 0
call fcn.00461b43
xor eax, 0xbb40e64e
push eax
call fcn.00461b7f
add esp, 8
mov edx, esi
mov eax, ebx
call fcn.004aa9a0
mov dword [esp + 0xc], 0
push ebp
call fcn.00461b8c
mov edx, dword [esi]
mov ebx, edx
sar eax, 7
and eax, 0xff
mov ecx, dword [esi + 8]
xor ebx, eax
shr edx, 8
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov ebp, ecx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
shr ecx, 8
and edx, 0xff
and ebp, 0xfffd
mov dword [esi], ebx
xor ecx, dword [edi + edx*4]
or ebp, 2
mov dword [esi + 8], ecx
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
shr ecx, 8
xor cl, al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x10], eax
jl 0x4aaa83
mov eax, dword [esp + 0xc]
mov edx, esi
call fcn.004aa9a0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
xor eax, eax
sub ecx, edx
mov dword [esp + 0xc], ecx
mov edx, dword [esi]
movzx ebx, byte [esp + eax + 0x18]
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
mov ecx, dword [esi + 8]
movzx edx, bl
add edx, dword [esi + 4]
mov ebp, ecx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
mov dword [esi], ebx
shr ecx, 8
xor ecx, dword [edi + edx*4]
mov edx, dword [esp + 0xc]
mov dword [esi + 8], ecx
movzx ebx, byte [esp + eax + 0x19]
and ebp, 0xfffd
or ebp, 2
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
add edx, eax
shr ecx, 8
xor cl, byte [esp + eax + 0x18]
mov byte [esp + edx + 0x18], cl
mov edx, dword [esi]
xor ebx, edx
shr edx, 8
mov ecx, dword [esi + 8]
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov ebp, ecx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
mov dword [esi], ebx
shr ecx, 8
xor ecx, dword [edi + edx*4]
mov edx, dword [esp + 0x14]
movzx ebx, byte [esp + eax + 0x1a]
and ebp, 0xfffd
mov dword [esi + 8], ecx
or ebp, 2
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
shr ecx, 8
xor cl, byte [esp + eax + 0x19]
mov byte [edx + eax + 1], cl
mov edx, dword [esi]
xor ebx, edx
mov ecx, dword [esi + 8]
shr edx, 8
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov ebp, ecx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
and ebp, 0xfffd
xor edx, ecx
or ebp, 2
mov dword [esi], ebx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edi + edx*4]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ecx
movzx ebx, byte [esp + eax + 0x1b]
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
shr ecx, 8
xor cl, byte [esp + eax + 0x1a]
add eax, 5
mov byte [edx + eax - 3], cl
mov edx, dword [esi]
xor ebx, edx
shr edx, 8
mov ecx, dword [esi + 8]
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov ebp, ecx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
shr ecx, 8
and edx, 0xff
mov dword [esi], ebx
xor ecx, dword [edi + edx*4]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ecx
movzx ebx, byte [esp + eax + 0x17]
and ebp, 0xfffd
or ebp, 2
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
shr ecx, 8
xor cl, byte [esp + eax + 0x16]
mov byte [edx + eax - 2], cl
mov edx, dword [esi]
xor ebx, edx
mov ecx, dword [esi + 8]
shr edx, 8
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov ebp, ecx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
shr ecx, 8
and edx, 0xff
and ebp, 0xfffd
mov dword [esi], ebx
xor ecx, dword [edi + edx*4]
or ebp, 2
mov dword [esi + 8], ecx
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
mov ebp, dword [esp + 0x14]
shr ecx, 8
xor cl, byte [esp + eax + 0x17]
cmp eax, 0xa
mov byte [eax + ebp - 1], cl
jl 0x4aab16
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x34]
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov dword [esp + 0xc], edx
mov edx, dword [esi]
shr ebx, 0x10
mov dword [esp + 0x10], ebx
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edi + edx*4]
mov ebx, dword [esp + 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0xc]
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esp + 0x10]
shr ebx, 0x18
mov byte [eax + ebp], dl
mov ecx, dword [esi + 8]
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov dword [esp + 0x10], ebx
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edi + edx*4]
add eax, 1
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0xc]
mov edx, ecx
xor edx, 1
imul edx, ecx
mov ecx, dword [esp + 0x24]
shr edx, 8
xor dl, byte [esp + 0x10]
add eax, 1
mov byte [eax + ebp - 1], dl
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.0045fa14
add esp, 0x1c
ret