Function at 0x490720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x5c
call fcn.00628320
mov eax, dword [0x70c514]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
push edi
mov edi, edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
test esi, esi
je 0x490a15
cmp edx, edi
je 0x4907d2
cmp esi, 0x10
jb 0x49084e
mov eax, esi
shr eax, 4
mov dword [esp + 0xc], eax
nop dword [eax]
push ecx
push edi
push edx
call dword [esp + 0x34]
mov eax, dword [ebx]
add esp, 0xc
xor dword [edi], eax
sub esi, 0x10
mov eax, dword [ebx + 4]
xor dword [edi + 4], eax
mov eax, dword [ebx + 8]
xor dword [edi + 8], eax
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0xc]
mov ebx, edx
xor dword [edi + 0xc], eax
add edx, 0x10
mov ecx, dword [esp + 0x24]
add edi, 0x10
sub dword [esp + 0xc], 1
mov dword [esp + 0x10], edx
jne 0x490780
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x490846
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
jmp 0x490846
cmp esi, 0x10
jb 0x49084e
mov eax, esi
shr eax, 4
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 0x58]
push eax
push edx
call dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebx]
sub esi, 0x10
xor eax, dword [esp + 0x54]
mov ecx, dword [edx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
xor eax, dword [esp + 0x58]
mov dword [ebx], ecx
mov ecx, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
xor eax, dword [esp + 0x5c]
mov dword [ebx + 4], ecx
mov ecx, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [esp + 0x60]
mov dword [ebx + 8], ecx
mov ecx, dword [edx + 0xc]
add edx, 0x10
mov dword [edi + 0xc], eax
add edi, 0x10
sub dword [esp + 0xc], 1
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
jne 0x4907e0
test esi, esi
je 0x490a15
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x54]
sub ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, 1
sub ecx, eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x55]
sub ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, 2
sub ecx, eax
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x56]
sub ecx, eax
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x54]
sub ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add eax, 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
push dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
push edx
call dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
sub ecx, edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, edi
not ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ecx
cmp ebx, esi
jae 0x4909b6
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov dl, byte [edx]
mov cl, byte [ecx + ebx]
mov ebx, dword [esp + 0x18]
xor cl, byte [eax - 1]
mov byte [ebx - 2], cl
mov ecx, ebx
add ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov byte [eax - 1], dl
cmp ecx, esi
jae 0x4909b5
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add edx, eax
mov bl, byte [edx + ecx]
mov ecx, dword [esp + 0x40]
mov cl, byte [ecx + eax]
xor cl, byte [eax]
mov byte [edx], cl
mov ecx, dword [esp + 0x44]
add ecx, eax
mov byte [eax], bl
cmp ecx, esi
jae 0x4909ac
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dl, byte [ebx + ecx]
mov ecx, dword [esp + 0x48]
mov cl, byte [ecx + eax]
xor cl, byte [eax + 1]
mov byte [ebx], cl
mov ecx, dword [esp + 0x4c]
add ecx, eax
mov byte [eax + 1], dl
cmp ecx, esi
jae 0x4909a3
mov ecx, dword [esp + 0x14]
add dword [esp + 0x18], 4
mov dl, byte [ecx + 3]
mov ecx, dword [esp + 0x50]
mov cl, byte [ecx + eax]
xor cl, byte [eax + 2]
mov byte [ebx + 1], cl
mov ebx, dword [esp + 0x1c]
mov byte [eax + 2], dl
add ebx, 4
mov edx, dword [esp + 0x14]
add eax, 4
add edx, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
cmp ebx, 0x10
jb 0x4908e7
jmp 0x4909b6
mov ebx, dword [esp + 0x1c]
add ebx, 3
jmp 0x4909b6
mov ebx, dword [esp + 0x1c]
add ebx, 2
jmp 0x4909b6
inc ebx
cmp esi, 0x10
jbe 0x4909ee
mov edx, dword [esp + 0x10]
add edi, 0x10
add dword [esp + 0x20], 0x10
add edx, 0x10
sub dword [esp + 0xc], 0x10
mov dword [esp + 0x10], edx
sub esi, 0x10
jne 0x4908a6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006281fa
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jae 0x490a15
mov eax, dword [esp + 0x2c]
mov esi, 0x10
mov edx, dword [esp + 0x10]
sub edx, eax
sub esi, ebx
lea ecx, [eax + ebx]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x490a07
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006281fa
mov esp, ebp
pop ebp
ret