Function at 0x490c77
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
lea edi, [eax + 7]
shr edi, 3
and eax, 7
mov edx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edx
mov ebx, ecx
jne 0x490ca4
mov dword [esp + 0x1c], 8
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
xor ebp, ebp
lea esi, [edi - 1]
test esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
jbe 0x490e53
lea ebx, [ebx]
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
xor esi, eax
xor edx, ecx
test ebp, ebp
mov dword [ebx], esi
mov dword [ebx + 4], edx
jne 0x490e24
cmp edi, 2
mov esi, ebx
jbe 0x490e0a
lea edi, [esp + 0x28]
call fcn.00490a77
mov eax, dword [0x5ca358]
test eax, eax
jne 0x490ee4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov edx, 1
jmp 0x490d17
mov edi, dword [esp + edx*4 + 0x2c]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x30], 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 + 0x34], ebp
mov edi, dword [esp + edx*4 + 0x30]
lea ecx, [edi + esi]
mov dword [esp + edx*4 + 0x34], 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 + 0x34], ebp
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 + 0x34], 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 + 0x34], 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
mov ecx, dword [esp + 0x34]
or ebp, edi
xor ecx, ebp
add edx, 5
cmp edx, 0x1a
mov dword [esp + 0x34], ecx
jb 0x490d17
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x490e2f
xor edi, edi
call fcn.00490a77
mov eax, dword [0x5ca358]
test eax, eax
jne 0x490ee4
mov edi, dword [esp + 0x20]
jmp 0x490e2f
lea ecx, [esp + 0x30]
mov eax, ebx
call fcn.00490b17
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add ebx, 8
inc ebp
lea edx, [edi - 1]
cmp ebp, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebp
jb 0x490cc7
mov edx, dword [esp + 0x1c]
xor esi, esi
test edx, edx
jbe 0x490e75
mov ebp, ebx
lea eax, [esp + 0x14]
sub ebp, eax
lea ebx, [ebx]
lea eax, [esp + esi + 0x14]
mov cl, byte [eax + ebp]
xor byte [eax], cl
inc esi
cmp esi, edx
jb 0x490e67
cmp edi, 2
jbe 0x490e89
lea ecx, [esp + 0x30]
lea eax, [esp + 0x14]
call fcn.00490b17
jmp 0x490eaa
cmp edi, 1
jne 0x490e9b
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
xor edi, edi
lea esi, [esp + 0x14]
call fcn.00490a77
mov edi, dword [esp + 0x20]
cmp edi, 1
jbe 0x490ed7
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x490ebe
lea esi, [ebx - 8]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [ebx - 8], ecx
mov dword [ebx - 4], edx
pop ebx
add esp, 0x88
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret