Function at 0x498760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a0c99
mov eax, dword fs:[0]
push eax
mov eax, 0x4414
call fcn.00790c80
push ebx
push esi
push edi
mov eax, dword [0x831184]
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 0x498804
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.004989a0
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x4987ef
nop
lea ecx, [edx + edi]
lea eax, [edx - 0x57]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x4987e0
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4987f8
jmp 0x49897f
cmp edx, 1
jne 0x498854
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.004b64a0
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x49883f
nop dword [eax]
lea ecx, [edx + edi]
lea eax, [edx - 0x57]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x498830
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498848
jmp 0x49897f
cmp edx, 2
jne 0x4988a4
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.004d3fa0
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x49888f
nop dword [eax]
lea ecx, [edx + edi]
lea eax, [edx - 0x57]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x498880
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498898
jmp 0x49897f
test edx, edx
jne 0x4988ec
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], dl
push eax
lea ecx, [ebp - 0xd]
call fcn.004f1aa0
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x4988d6
lea ecx, [edx + edi]
lea eax, [edx - 0x57]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x4988c7
mov byte [ecx + edi], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4988e0
jmp 0x49897f
cmp edx, 3
jne 0x498939
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.0050f5a0
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x498920
lea ecx, [edx + edi]
lea eax, [edx - 0x57]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x498911
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 0x498930
jmp 0x49897f
cmp edx, 5
jne 0x49898a
lea eax, [ebp - 0x4420]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0xd]
call fcn.0052d0a0
mov ebx, eax
xor edx, edx
mov ecx, dword [ebx]
lea edi, [ebx + 4]
test ecx, ecx
je 0x49896f
nop
lea ecx, [edx + edi]
lea eax, [edx - 0x57]
inc edx
xor byte [ecx], al
mov ecx, dword [ebx]
cmp edx, ecx
jb 0x498960
mov byte [edi + ecx], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498978
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