Function at 0x494ef4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x495196
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 0x12345678
mov dword [ebp - 0x20], 0x23456789
mov dword [ebp - 0x24], 0x34567890
mov dword [ebp - 0x28], 0x8088405
mov eax, ebx
test eax, eax
je 0x494f45
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
test ecx, ecx
jle 0x494fda
mov esi, 1
movzx eax, byte [ebx + esi - 1]
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
movzx eax, al
mov edx, dword [0x4ea6bc]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xff
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
shr eax, 0x18
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
movzx eax, al
mov edx, dword [0x4ea6bc]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x24]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0x24], eax
inc esi
dec ecx
jne 0x494f54
mov esi, 0xc
mov ecx, dword [ebp - 0x14]
lea ebx, [ebp - 0x38]
mov eax, dword [ebp - 0x24]
and eax, 0xffff
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor dl, byte [ecx]
mov byte [ebx], dl
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
movzx eax, byte [ebx]
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
movzx eax, al
mov edx, dword [0x4ea6bc]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xff
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
shr eax, 0x18
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
movzx eax, al
mov edx, dword [0x4ea6bc]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x24]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [ebp - 0x24], eax
inc ebx
inc ecx
dec esi
jne 0x494fe5
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
and ax, 8
cmp ax, 8
jne 0x4950a3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shl eax, 0x10
mov dword [ebp - 4], eax
jmp 0x4950ac
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
movzx eax, byte [ebp - 1]
cmp al, byte [ebp - 0x2d]
je 0x4950bf
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x495178
lea eax, [ebp - 8]
mov edx, 0xffff
call fcn.00405c0c
lea eax, [ebp - 0x3c]
call fcn.00476fe4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.00405540
push 0xffff
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x417e50]
call fcn.0041c9f8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x49516c
mov esi, dword [ebp - 8]
test esi, esi
je 0x495113
sub esi, 4
mov esi, dword [esi]
mov ebx, esi
cmp ebx, dword [ebp - 0x2c]
jbe 0x49511d
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.004059dc
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
call fcn.004059dc
lea ecx, [ebp - 0x1c]
mov edx, ebx
call fcn.00494e24
lea eax, [ebp - 8]
call fcn.004059dc
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x10]
sub dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x2c], 0
jne 0x495107
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.0041c564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49519d
lea eax, [ebp - 0x3c]
call fcn.004054ec
lea eax, [ebp - 8]
call fcn.004054ec
ret