Function at 0x4f7f20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x1c], 0xc
push edi
mov edi, eax
jge 0x4f7f34
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [0x56ff54]
add eax, 1
cmp eax, 1
mov dword [0x56ff54], eax
jne 0x4f7f5b
push 0
call fcn.00418662
xor eax, 0xbb40e64e
push eax
call fcn.0050216f
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, esi
call fcn.004f7eb0
push ebx
mov dword [esp + 0x24], 0
push ebp
call fcn.00502181
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 + 0x28]
mov byte [esp + eax + 0x10], cl
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x28], eax
jl 0x4f7f70
mov eax, dword [esp + 0x20]
mov edx, esi
call fcn.004f7eb0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
xor eax, eax
sub ecx, edx
mov dword [esp + 0x28], ecx
mov edx, dword [esi]
movzx ebx, byte [esp + eax + 0x10]
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 + 0x28]
mov dword [esi + 8], ecx
movzx ebx, byte [esp + eax + 0x11]
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 + 0x10]
mov byte [esp + edx + 0x10], 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 + 0x24]
movzx ebx, byte [esp + eax + 0x12]
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 + 0x11]
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 + 0x24]
mov dword [esi + 8], ecx
movzx ebx, byte [esp + eax + 0x13]
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
shr ecx, 8
xor cl, byte [esp + eax + 0x12]
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 + 0x24]
mov dword [esi + 8], ecx
movzx ebx, byte [esp + eax + 0xf]
and ebp, 0xfffd
or ebp, 2
mov ecx, ebp
xor ecx, 1
imul ecx, ebp
shr ecx, 8
xor cl, byte [esp + eax + 0xe]
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 + 0x24]
shr ecx, 8
xor cl, byte [esp + eax + 0xf]
cmp eax, 0xa
mov byte [eax + ebp - 1], cl
jl 0x4f8003
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x2c]
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov dword [esp + 0x28], edx
mov edx, dword [esi]
shr ebx, 0x10
mov dword [esp + 0xc], 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 + 0x2c]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x28]
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esp + 0xc]
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 + 0x28], edx
mov edx, dword [esi]
mov dword [esp + 0xc], 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 + 0x28]
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esp + 0xc]
add eax, 1
mov byte [eax + ebp - 1], dl
pop ebp
pop ebx
pop edi
add esp, 0x10
ret