Function at 0x497640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79f4c9
mov eax, dword fs:[0]
push eax
mov eax, 0x4414
call fcn.0078f690
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmp edx, 6
jne 0x4976e4
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.00497880
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x4976cf
nop
lea ecx, [edx + edi]
lea eax, [edx - 0x48]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x4976c0
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4976d8
jmp 0x49785f
cmp edx, 1
jne 0x497734
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.004b5380
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x49771f
nop dword [eax]
lea ecx, [edx + edi]
lea eax, [edx - 0x48]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x497710
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497728
jmp 0x49785f
cmp edx, 2
jne 0x497784
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.004d2e80
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x49776f
nop dword [eax]
lea ecx, [edx + edi]
lea eax, [edx - 0x48]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x497760
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497778
jmp 0x49785f
test edx, edx
jne 0x4977cc
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], dl
push eax
lea ecx, [ebp - 0xd]
call fcn.004f0980
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x4977b6
lea ecx, [edx + edi]
lea eax, [edx - 0x48]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x4977a7
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4977c0
jmp 0x49785f
cmp edx, 3
jne 0x497819
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.0050e480
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x497800
lea ecx, [edx + edi]
lea eax, [edx - 0x48]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x4977f1
mov byte [edi + ecx], 0
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497810
jmp 0x49785f
cmp edx, 5
jne 0x49786a
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.0052bf80
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x49784f
nop
lea ecx, [edx + edi]
lea eax, [edx - 0x48]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x497840
mov byte [edi + ecx], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497858
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00407ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret