Function at 0x497fa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x1164700]
cmp eax, 0x26f
jg 0x497fbf
lea edx, [eax + 1]
lea eax, [eax*4 + 0x1164720]
mov dword [0x1164700], edx
mov eax, dword [eax]
ret
push ebp
mov ebp, 0x1164720
push edi
push esi
mov esi, 0x11650c0
push ebx
sub esp, 0x2c
mov dword [esp + 8], 0x11650d0
lea esi, [esi]
nop
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
shld ebx, ecx, 8
shl ecx, 8
mov edi, dword [esp + 8]
mov dword [esp + 8], ebp
mov dword [esp], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 4], ebx
mov ebx, edx
shr eax, 0x18
xor edx, edx
shld ebx, ecx, 8
or eax, dword [esp]
or edx, dword [esp + 4]
shl ecx, 8
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
mov dword [esp + 0x14], ebx
mov ebx, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], edx
mov edx, dword [esi + 0xc]
shrd ecx, ebx, 8
shr ebx, 8
mov esi, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edx, eax
xor eax, eax
shl esi, 0x12
or eax, ecx
mov ecx, dword [ebp]
shl edx, 0x18
mov dword [esp + 0x20], eax
or edx, ebx
mov ebx, dword [esp + 0x10]
xor ecx, esi
mov esi, dword [ebp + 0x7a0]
mov dword [esp + 0x24], edx
xor eax, ecx
mov edx, dword [ebp + 0x7a4]
shr esi, 0xb
mov ecx, esi
shr edx, 0xb
mov esi, dword [esp + 0x14]
and ecx, 0xdfffffef
xor ecx, eax
mov eax, edx
mov edx, dword [esp + 0x24]
xor ecx, ebx
and eax, 0xddfecb7f
mov dword [ebp], ecx
mov ecx, dword [edi + 4]
shl ecx, 0x12
xor ecx, dword [ebp + 4]
xor eax, ecx
xor eax, edx
mov edx, esi
xor edx, eax
mov dword [ebp + 4], edx
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x1c]
mov eax, ebx
mov edx, dword [esp]
shrd eax, esi, 8
shl ecx, 0x12
xor ecx, dword [ebp + 8]
xor ecx, eax
mov eax, dword [ebp + 0x7a8]
shr eax, 0xb
add ebp, 0x10
and eax, 0xbffaffff
xor ecx, eax
xor ecx, edx
mov edx, esi
mov esi, edi
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
shr edx, 8
shl eax, 0x12
xor eax, dword [ebp - 4]
xor eax, edx
mov edx, dword [ebp + 0x79c]
shr edx, 0xb
and edx, 0xbffffff6
xor eax, edx
mov edx, dword [esp + 4]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, 0x1164940
cmp eax, ebp
jne 0x497fe0
mov dword [esp + 0x18], 0x1164930
mov esi, eax
lea esi, [esi]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov eax, dword [esi]
mov edx, dword [esi + 4]
shld ebx, ecx, 8
shl ecx, 8
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 8], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0xc], ebx
mov ebx, edx
shr eax, 0x18
xor edx, edx
shld ebx, ecx, 8
or eax, dword [esp + 8]
or edx, dword [esp + 0xc]
shl ecx, 8
mov dword [esp], ecx
mov ecx, dword [edi]
mov dword [esp + 4], ebx
mov ebx, dword [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp + 0xc], edx
mov edx, dword [edi + 0xc]
shrd ecx, ebx, 8
shr ebx, 8
mov edi, dword [ebp]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, eax
xor eax, eax
shl edi, 0x12
or eax, ecx
mov ecx, dword [esi]
shl edx, 0x18
mov dword [esp + 0x20], eax
or edx, ebx
mov ebx, dword [esp]
xor ecx, edi
mov edi, dword [esi - 0x220]
mov dword [esp + 0x24], edx
xor eax, ecx
mov edx, dword [esp + 0x24]
shr edi, 0xb
mov ecx, edi
and ecx, 0xdfffffef
xor ecx, eax
mov eax, dword [esi + 4]
xor ecx, ebx
mov dword [esi], ecx
mov ecx, dword [esi - 0x21c]
mov edi, dword [ebp + 4]
shr ecx, 0xb
shl edi, 0x12
and ecx, 0xddfecb7f
xor eax, edi
xor eax, ecx
xor eax, edx
mov edx, dword [esp + 4]
xor edx, eax
mov dword [esi + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esi - 0x218]
shl ecx, 0x12
xor ecx, dword [esi + 8]
shrd eax, edx, 8
mov edx, dword [esp + 0x14]
xor ecx, eax
shr ebx, 0xb
add esi, 0x10
mov eax, ebx
mov ebx, dword [esp + 8]
shr edx, 8
and eax, 0xbffaffff
xor ecx, eax
mov eax, dword [esi - 4]
xor ecx, ebx
mov dword [esi - 8], ecx
mov edi, dword [ebp + 0xc]
shl edi, 0x12
xor eax, edi
mov edi, ebp
xor eax, edx
mov edx, dword [esi - 0x224]
shr edx, 0xb
and edx, 0xbffffff6
xor eax, edx
mov edx, dword [esp + 0xc]
xor eax, edx
mov dword [esi - 4], eax
cmp esi, 0x11650e0
jne 0x498128
mov eax, 0x1164720
mov edx, 1
mov eax, dword [eax]
mov dword [0x1164700], edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret