Function at 0x491900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, ecx
mov dword [ebp - 0x90], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x98], esi
test eax, eax
jne 0x49193e
mov byte [ebp - 0x89], al
jmp 0x491947
mov al, byte [eax + 8]
mov byte [ebp - 0x89], al
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x85], 1
je 0x491b6a
push dword [ebp + 8]
mov ecx, ebx
call fcn.00473130
add esp, 4
test eax, eax
jne 0x491b6c
mov eax, dword [ebx]
test eax, eax
je 0x491b54
cmp dword [ebx + 8], 0
je 0x491b54
push dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
push esi
push dword [ebx + 4]
call eax
add esp, 0xc
test eax, eax
jne 0x491b6c
mov eax, dword [ebx]
test eax, eax
je 0x491b54
cmp dword [ebx + 8], 0
je 0x491b54
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x88]
push 4
push ecx
push dword [ebx + 4]
call eax
add esp, 0xc
test eax, eax
jne 0x491b6c
lea edx, [ebp - 0x44]
mov ecx, ebx
call fcn.00473380
test eax, eax
jne 0x491b6c
movzx edi, byte [ebp - 0x89]
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00524840
mov esi, 1
add esp, 0xc
cmp dword [ebp + 0x14], esi
jbe 0x491afa
nop dword [eax]
push dword [ebp + 8]
mov edx, dword [ebp - 0x94]
mov ecx, ebx
call fcn.00473130
add esp, 4
test eax, eax
jne 0x491b6c
mov eax, dword [ebx]
test eax, eax
je 0x491b54
cmp dword [ebx + 8], 0
je 0x491b54
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x84]
push edi
push ecx
push dword [ebx + 4]
call eax
add esp, 0xc
test eax, eax
jne 0x491b6c
lea edx, [ebp - 0x84]
mov ecx, ebx
call fcn.00473380
test eax, eax
jne 0x491b6c
test edi, edi
je 0x491ad6
cmp edi, 0x40
jb 0x491ad6
mov ecx, edi
and ecx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x44]
movups xmm1, xmmword [ebp + eax - 0x84]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x44], xmm1
movups xmm0, xmmword [ebp + eax - 0x34]
movups xmm1, xmmword [ebp + eax - 0x74]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x34], xmm1
movups xmm0, xmmword [ebp + eax - 0x24]
movups xmm1, xmmword [ebp + eax - 0x64]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x24], xmm1
movups xmm0, xmmword [ebp + eax - 0x14]
movups xmm1, xmmword [ebp + eax - 0x54]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x14], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x491a80
cmp eax, edi
jge 0x491af0
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x84]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x491ae0
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x491a10
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
cmp esi, edi
cmovae esi, edi
push esi
push eax
push dword [ebp - 0x90]
call fcn.00524840
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x85]
add dword [ebp - 0x90], esi
sub edi, esi
mov edx, 4
mov dword [ebp + 0x18], edi
mov eax, ecx
add esp, 0xc
sub edx, eax
add byte [ecx], 1
jne 0x491b3f
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x491b32
test edi, edi
je 0x491b6a
mov edx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x98]
jmp 0x491962
pop edi
pop esi
mov eax, 0xffffaf00
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret