Function at 0x497c00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x40]
mov ecx, 8
push edi
mov ebx, dword [ebp + 4]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
sub ebx, 6
mov dword [esp + 0x10], ebp
xor edi, edi
mov dword [esp + 0x14], ebx
xor esi, esi
test ebx, ebx
jle 0x497c98
jmp 0x497c40
cmp edi, dword [ebp + 4]
jg 0x497e55
cmp esi, ebx
jge 0x497c8c
lea ecx, [ecx]
cmp eax, 4
jge 0x497c8f
movzx ecx, byte [esp + esi*4 + 0x1c]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
lea ecx, [eax + edi*4]
lea edx, [ecx*4]
inc eax
movzx ecx, byte [esp + esi*4 + 0x1d]
mov byte [edx + ebp + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x1e]
mov byte [edx + ebp + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x1f]
inc esi
mov byte [edx + ebp + 0x1b], cl
cmp esi, ebx
jl 0x497c50
cmp eax, 4
jne 0x497c94
inc edi
xor eax, eax
cmp esi, ebx
jl 0x497c40
cmp edi, dword [ebp + 4]
jg 0x497e55
mov esi, 0x590958
jmp 0x497cb0
movzx ecx, byte [esp + ebx*4 + 0x19]
mov dl, byte [esp + 0x1c]
xor dl, byte [ecx + 0x590758]
mov byte [esp + 0x1c], dl
movzx ecx, byte [esp + ebx*4 + 0x1a]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x1d], cl
movzx ecx, byte [esp + ebx*4 + 0x1b]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x1e], cl
movzx ecx, byte [esp + ebx*4 + 0x18]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x1f], cl
movzx ecx, byte [esi]
inc esi
xor byte [esp + 0x1c], cl
mov dword [esp + 0x18], esi
cmp ebx, 8
je 0x497d40
cmp ebx, 1
jle 0x497de7
lea esi, [esp + 0x1d]
lea ebp, [ebx - 1]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
sub ebp, 1
jne 0x497d14
mov ebp, dword [esp + 0x10]
jmp 0x497de7
lea esi, [esp + 0x1d]
mov ebp, 3
lea esp, [esp]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
sub ebp, 1
jne 0x497d50
movzx ecx, byte [esp + 0x28]
lea ebx, [ebp + 3]
mov ebp, dword [esp + 0x10]
lea esi, [esp + 0x2d]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x2c], cl
movzx ecx, byte [esp + 0x29]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x2d], cl
movzx ecx, byte [esp + 0x2a]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x2e], cl
movzx ecx, byte [esp + 0x2b]
movzx ecx, byte [ecx + 0x590758]
xor byte [esp + 0x2f], cl
mov edi, edi
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esi - 1], cl
movzx ecx, byte [esi - 4]
xor byte [esi], cl
movzx ecx, byte [esi - 3]
xor byte [esi + 1], cl
movzx ecx, byte [esi - 2]
xor byte [esi + 2], cl
sub ebx, 1
jne 0x497dc0
mov ebx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jle 0x497e48
lea ecx, [ecx]
cmp edi, dword [ebp + 4]
jg 0x497e4b
cmp esi, ebx
jge 0x497e3c
lea esp, [esp]
cmp eax, 4
jge 0x497e3f
movzx ecx, byte [esp + esi*4 + 0x1c]
lea edx, [eax + edi*4]
mov byte [ebp + edx*4 + 0x18], cl
lea ecx, [eax + edi*4]
lea edx, [ecx*4]
inc eax
movzx ecx, byte [esp + esi*4 + 0x1d]
mov byte [edx + ebp + 0x19], cl
movzx ecx, byte [esp + esi*4 + 0x1e]
mov byte [edx + ebp + 0x1a], cl
movzx ecx, byte [esp + esi*4 + 0x1f]
inc esi
mov byte [edx + ebp + 0x1b], cl
cmp esi, ebx
jl 0x497e00
cmp eax, 4
jne 0x497e44
inc edi
xor eax, eax
cmp esi, ebx
jl 0x497df0
cmp edi, dword [ebp + 4]
mov esi, dword [esp + 0x18]
jle 0x497cb0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x30
ret 4