Function at 0x490ef7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
push ebx
push ebp
lea ebp, [eax + 7]
shr ebp, 3
push esi
and eax, 7
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], eax
mov ebx, ecx
jne 0x490f1e
mov dword [esp + 0x24], 8
xor edx, edx
cmp ebp, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
jbe 0x4910c5
xor esi, esi
lea eax, [ebp - 2]
cmp eax, edx
mov dword [esp + 0x28], esi
jbe 0x4910c5
cmp esi, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x49107b
lea edi, [esp + 0x30]
mov esi, ebx
call fcn.00490a77
mov eax, dword [0x5ca358]
test eax, eax
jne 0x4911ab
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov edx, 1
mov edi, dword [esp + edx*4 + 0x34]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x38], ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
mov ebp, eax
shl ebp, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, eax
shr edi, cl
or ebp, edi
xor dword [esp + 0x3c], ebp
mov edi, dword [esp + edx*4 + 0x38]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x3c], ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
mov ebp, eax
shl ebp, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, eax
shr edi, cl
or ebp, edi
xor dword [esp + 0x3c], ebp
mov edi, dword [esp + edx*4 + 0x3c]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x40], ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
mov ebp, eax
shl ebp, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, eax
shr edi, cl
or ebp, edi
xor dword [esp + 0x3c], ebp
mov edi, dword [esp + edx*4 + 0x40]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x44], ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
mov ebp, eax
shl ebp, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, eax
shr edi, cl
or ebp, edi
xor dword [esp + 0x3c], ebp
mov edi, dword [esp + edx*4 + 0x44]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x48], ecx
and edi, 0x1f
mov ecx, 0x20
sub ecx, edi
mov ebp, eax
shl ebp, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, eax
shr edi, cl
mov ecx, dword [esp + 0x3c]
or ebp, edi
xor ecx, ebp
add edx, 5
cmp edx, 0x1a
mov dword [esp + 0x3c], ecx
jb 0x490f88
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x49108a
lea edx, [esp + 0x38]
push edx
mov edi, ebx
call fcn.00472dd7
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x1c]
xor ecx, eax
mov eax, dword [ebx + 4]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x18]
xor eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
add ebx, 8
mov dword [esp + 0x18], eax
inc esi
mov dword [esp + 0x14], edx
lea eax, [ebp - 2]
xor edx, edx
cmp esi, eax
mov dword [esp + 0x28], esi
jb 0x490f4a
mov ecx, dword [esp + 0x24]
cmp ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
jbe 0x4910ea
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 8]
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, 1
jne 0x49110a
xor edi, edi
mov esi, ebx
call fcn.00490a77
mov eax, dword [0x5ca358]
test eax, eax
jne 0x4911ab
jmp 0x491195
cmp ebp, 2
jne 0x491127
xor edi, edi
mov esi, ebx
call fcn.00490a77
mov eax, dword [0x5ca358]
test eax, eax
jne 0x4911ab
jmp 0x49113b
lea eax, [esp + 0x38]
push eax
mov edi, ebx
call fcn.00472dd7
add esp, 4
cmp ebp, 1
jbe 0x491195
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x18]
mov edx, dword [ebx + 4]
xor edi, ecx
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
xor esi, edx
xor eax, eax
test edi, edi
mov dword [esp + 0x18], esi
jbe 0x49117d
mov ecx, ebx
lea edx, [esp + 0x14]
sub ecx, edx
nop
mov dl, byte [ebx + eax + 8]
lea esi, [esp + eax + 0x14]
mov byte [esi + ecx], dl
mov dl, byte [esi]
mov byte [ebx + eax + 8], dl
inc eax
cmp eax, edi
jb 0x491167
cmp ebp, 2
je 0x4910ef
lea eax, [esp + 0x38]
push eax
mov edi, ebx
call fcn.00472dd7
add esp, 4
mov edx, dword [ebx]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x20]
xor eax, edx
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret