Function at 0x491f30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.004c72a0
mov eax, dword [0x5279f0]
xor eax, esp
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], edx
cmp ebx, ebp
je 0x487b6d
cmp edi, 0x10
jb 0x487b50
mov eax, edi
shr eax, 4
mov dword [esp + 0x10], eax
push ecx
push ebp
push ebx
call edx
add esp, 0xc
mov ecx, ebp
sub esi, ebp
mov edx, 4
mov eax, dword [esi + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x487b28
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov esi, ebx
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
dec dword [esp + 0x10]
jne 0x487b17
mov dword [esp + 0x18], ebp
movq xmm0, qword [esi]
mov eax, dword [esp + 0x14]
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
mov esi, eax
movq qword [esi + 8], xmm0
jmp 0x487c16
mov dword [esp + 0x10], edi
cmp edi, 0x10
jb 0x487c16
mov eax, esi
lea esi, [esp + 0x38]
sub eax, esi
mov dword [esp + 0x30], eax
mov eax, ebp
sub eax, esi
mov dword [esp + 0x28], eax
mov eax, ebx
sub eax, esi
mov dword [esp + 0x1c], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x20], eax
shl eax, 4
add ebp, eax
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
lea esp, [esp]
push ecx
lea eax, [esp + 0x3c]
push eax
push ebx
call edx
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
add esp, 0xc
xor esi, esi
lea ecx, [esp + 0x38]
add ecx, esi
add esi, 4
mov eax, dword [ebx + ecx]
xor eax, dword [ecx]
mov edx, dword [edi + ecx]
mov dword [ecx + ebp], eax
mov dword [ebx + ecx], edx
cmp esi, 0x10
jb 0x487bc6
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
add dword [esp + 0x1c], 0x10
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
dec dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ebx
jne 0x487bb0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test edi, edi
je 0x487d8b
lea ecx, [esp + 0x38]
mov eax, esi
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, 1
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x10], eax
add ebp, 2
mov eax, ecx
sub dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
push dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [esp + 0x38]
add esp, 0xc
xor eax, eax
cmp eax, edi
jae 0x487d32
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
lea esi, [esp + 0x38]
add esi, eax
mov dl, byte [ecx + esi]
mov ecx, dword [esp + 0x20]
mov cl, byte [ecx + esi]
xor cl, byte [esi]
mov byte [esi + ebp], cl
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov byte [ecx + esi], dl
mov ecx, dword [esp + 0x30]
add ecx, esi
cmp ecx, edi
jae 0x487d31
mov ebp, dword [esp + 0x14]
mov cl, byte [esi + 1]
xor cl, byte [eax + ebp + 1]
mov ebp, dword [esp + 0x1c]
mov dl, byte [ebx + eax + 1]
mov byte [eax + ebp - 1], cl
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax + 1], dl
mov ecx, dword [esp + 0x28]
add ecx, esi
cmp ecx, edi
jae 0x487d2c
mov ebp, dword [esp + 0x14]
mov cl, byte [esi + 2]
xor cl, byte [eax + ebp + 2]
mov ebp, dword [esp + 0x1c]
mov dl, byte [ebx + eax + 2]
mov byte [eax + ebp], cl
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax + 2], dl
mov ecx, dword [esp + 0x24]
add ecx, esi
cmp ecx, edi
jae 0x487d27
mov cl, byte [esi + 3]
mov esi, dword [esp + 0x14]
mov dl, byte [ebx + eax + 3]
xor cl, byte [esi + eax + 3]
add eax, 4
mov byte [eax + ebp - 3], cl
mov byte [esi + eax - 1], dl
cmp eax, 0x10
jb 0x487c73
jmp 0x487d32
add eax, 3
jmp 0x487d32
add eax, 2
jmp 0x487d32
inc eax
cmp edi, 0x10
jbe 0x487d67
add dword [esp + 0x10], 0x10
add dword [esp + 0x18], 0x10
add ebp, 0x10
add ebx, 0x10
mov dword [esp + 0x1c], ebp
sub edi, 0x10
jne 0x487c60
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c22ab
add esp, 0x3c
ret
cmp eax, 0x10
jae 0x487d8b
mov edx, dword [esp + 0x14]
sub ebx, edx
lea ecx, [edx + eax]
mov edx, 0x10
sub edx, eax
lea esp, [esp]
mov al, byte [ebx + ecx]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x487d80
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c22ab
add esp, 0x3c
ret
cmp dword [esp + 0x18], 0
je 0x491f44
mov dword [esp + 0x18], fcn.00490710
jmp fcn.00487da0
mov dword [esp + 0x18], fcn.0048f9b0
jmp 0x487ac0