Function at 0x497e50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x5c]
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test eax, eax
je 0x498326
shr eax, 4
cmp byte [edi], 0
mov dword [esp + 0x60], eax
je 0x497e87
push dword [esp + 0x64]
push eax
push dword [esp + 0x64]
call fcn.00498330
pop edi
add esp, 0x54
ret 0xc
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
push ebx
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x20], ebx
push ebp
mov ebp, dword [edi + 8]
mov dword [esp + 0x30], ebp
test eax, eax
je 0x498318
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
push esi
lea ebx, [ecx + 8]
sub ecx, eax
lea edx, [eax + 8]
mov dword [esp + 0x38], ebx
add ecx, 0xfffffff8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], ecx
lea ecx, [ecx]
mov edx, dword [ecx + edx]
mov esi, dword [edi + 4]
mov eax, esi
add eax, eax
mov dword [esp + 0x40], edx
mov ecx, dword [edi + eax*8 + 0x18]
xor ecx, edx
mov edx, dword [ebx - 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + eax*8 + 0x1c]
xor ecx, edx
mov dword [esp + 0x44], edx
mov edx, dword [edi + eax*8 + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
xor edx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [edi + eax*8 + 0x24]
xor ebx, ecx
mov dword [esp + 0x4c], ecx
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x5bd258]
mov ecx, edx
shr ecx, 0x18
xor edi, dword [eax*4 + 0x5bd658]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor edi, dword [eax*4 + 0x5bda58]
mov eax, dword [esp + 0x14]
movzx eax, al
xor edi, dword [eax*4 + 0x5bce58]
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x54], edi
mov ebp, dword [eax*4 + 0x5bd658]
xor ebp, dword [ecx*4 + 0x5bda58]
mov ecx, ebx
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
shr ecx, 0x18
xor ebp, dword [eax*4 + 0x5bd258]
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx*4 + 0x5bda58]
movzx eax, al
xor ebp, dword [eax*4 + 0x5bce58]
mov eax, dword [esp + 0x10]
shr eax, 8
movzx eax, al
mov dword [esp + 0x58], ebp
xor ecx, dword [eax*4 + 0x5bd258]
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x5bd658]
movzx eax, dl
shr edx, 8
xor ecx, dword [eax*4 + 0x5bce58]
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x5c], ecx
movzx ecx, dl
movzx eax, al
mov edx, dword [ecx*4 + 0x5bd258]
lea ecx, [esi - 1]
xor edx, dword [eax*4 + 0x5bd658]
mov eax, dword [esp + 0x14]
shr eax, 0x18
xor edx, dword [eax*4 + 0x5bda58]
movzx eax, bl
xor edx, dword [eax*4 + 0x5bce58]
mov dword [esp + 0x30], edx
mov dword [esp + 0x60], edx
cmp ecx, 1
jle 0x498157
lea eax, [ecx + 2]
shl eax, 4
add eax, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
lea eax, [eax - 0x10]
xor ecx, edi
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xc]
xor ecx, ebp
xor ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [esp + 0x2c], ecx
shr ecx, 8
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edi, dword [edx*4 + 0x5bd258]
mov edx, ebx
shr edx, 0x18
xor edi, dword [ecx*4 + 0x5bd658]
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x5bda58]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x5bce58]
mov ecx, dword [esp + 0x2c]
shr ecx, 0x10
movzx ecx, cl
mov ebp, dword [ecx*4 + 0x5bd658]
xor ebp, dword [edx*4 + 0x5bda58]
mov ecx, dword [esp + 0x10]
shr ecx, 8
mov edx, dword [esp + 0x2c]
movzx ecx, cl
shr edx, 0x18
xor ebp, dword [ecx*4 + 0x5bd258]
mov ecx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x5bda58]
movzx ecx, cl
xor ebp, dword [ecx*4 + 0x5bce58]
mov ecx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5bd258]
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5bd658]
movzx ecx, bl
shr ebx, 8
xor edx, dword [ecx*4 + 0x5bce58]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x5c], edx
shr ecx, 0x10
movzx ecx, cl
movzx edx, bl
mov edx, dword [edx*4 + 0x5bd258]
xor edx, dword [ecx*4 + 0x5bd658]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5bda58]
mov ecx, dword [esp + 0x2c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5bce58]
sub dword [esp + 0x30], 1
mov dword [esp + 0x60], edx
jne 0x498027
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x28]
xor eax, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
movzx eax, al
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x34]
xor ecx, dword [esp + 0x30]
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x54], al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edi + 0x30]
xor edx, dword [esp + 0x1c]
mov ebx, dword [edi + 0x2c]
movzx eax, byte [eax + 0x5bbd38]
xor ebx, ebp
mov byte [esp + 0x55], al
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x56], al
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x57], al
movzx eax, bl
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x58], al
mov eax, esi
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x59], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x5a], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x5b], al
movzx eax, dl
shr edx, 8
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x5c], al
mov eax, ebx
shr eax, 8
movzx eax, al
shr ebx, 0x10
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x5d], al
mov eax, esi
shr eax, 0x10
movzx eax, al
shr esi, 0x18
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x5e], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x5f], al
movzx eax, cl
mov ecx, dword [esp + 0x58]
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x60], al
movzx eax, dl
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x61], al
movzx eax, bl
movzx eax, byte [eax + 0x5bbd38]
mov byte [esp + 0x62], al
movzx eax, byte [esi + 0x5bbd38]
mov byte [esp + 0x63], al
mov eax, dword [esp + 0x54]
xor eax, dword [edi + 0x18]
xor ecx, dword [edi + 0x1c]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
xor esi, dword [edi + 0x20]
xor ebx, dword [edi + 0x24]
cmp byte [edi + 1], 0
je 0x4982bb
xor eax, dword [esp + 0x34]
xor ecx, dword [esp + 0x20]
xor esi, dword [esp + 0x24]
xor ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebp
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x38]
mov dword [edx - 4], ecx
add ebx, 0x10
mov ecx, dword [esp + 0x50]
mov dword [edx - 8], eax
mov dword [edx], esi
add edx, 0x10
sub dword [esp + 0x6c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
jne 0x497ed0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
pop esi
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
pop ebp
mov dword [edi + 0x14], ebx
pop ebx
pop edi
add esp, 0x54
ret 0xc