Function at 0x498a40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x5755c4]
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 0x498ad8
jmp 0x498a80
cmp edi, dword [ebp + 4]
jg 0x498c95
cmp esi, ebx
jge 0x498acc
lea ecx, [ecx]
cmp eax, 4
jge 0x498acf
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 0x498a90
cmp eax, 4
jne 0x498ad4
inc edi
xor eax, eax
cmp esi, ebx
jl 0x498a80
cmp edi, dword [ebp + 4]
jg 0x498c95
mov esi, 0x5bbe38
jmp 0x498af0
movzx ecx, byte [esp + ebx*4 + 0x19]
mov dl, byte [esp + 0x1c]
xor dl, byte [ecx + 0x5bbc38]
mov byte [esp + 0x1c], dl
movzx ecx, byte [esp + ebx*4 + 0x1a]
movzx ecx, byte [ecx + 0x5bbc38]
xor byte [esp + 0x1d], cl
movzx ecx, byte [esp + ebx*4 + 0x1b]
movzx ecx, byte [ecx + 0x5bbc38]
xor byte [esp + 0x1e], cl
movzx ecx, byte [esp + ebx*4 + 0x18]
movzx ecx, byte [ecx + 0x5bbc38]
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 0x498b80
cmp ebx, 1
jle 0x498c27
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 0x498b54
mov ebp, dword [esp + 0x10]
jmp 0x498c27
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 0x498b90
movzx ecx, byte [esp + 0x28]
lea ebx, [ebp + 3]
mov ebp, dword [esp + 0x10]
lea esi, [esp + 0x2d]
movzx ecx, byte [ecx + 0x5bbc38]
xor byte [esp + 0x2c], cl
movzx ecx, byte [esp + 0x29]
movzx ecx, byte [ecx + 0x5bbc38]
xor byte [esp + 0x2d], cl
movzx ecx, byte [esp + 0x2a]
movzx ecx, byte [ecx + 0x5bbc38]
xor byte [esp + 0x2e], cl
movzx ecx, byte [esp + 0x2b]
movzx ecx, byte [ecx + 0x5bbc38]
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 0x498c00
mov ebx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jle 0x498c88
lea ecx, [ecx]
cmp edi, dword [ebp + 4]
jg 0x498c8b
cmp esi, ebx
jge 0x498c7c
lea esp, [esp]
cmp eax, 4
jge 0x498c7f
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 0x498c40
cmp eax, 4
jne 0x498c84
inc edi
xor eax, eax
cmp esi, ebx
jl 0x498c30
cmp edi, dword [ebp + 4]
mov esi, dword [esp + 0x18]
jle 0x498af0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x30
ret 4