Function at 0x490050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x58
call fcn.00628320
mov eax, dword [0x70c514]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
push edi
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
test bl, 0x40
jne 0x4900a7
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x54], edx
cmp edx, 0xf
jae 0x4900d3
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4900c0
movzx eax, byte [esi + 0xf]
mov edi, dword [ebp + 0xc]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x4900f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006281fa
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x49012f
ja 0x490119
cmp dword [esi + 0x20], 0
jbe 0x49012f
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006281fa
mov esp, ebp
pop ebp
ret
mov ebx, edi
lea eax, [esi + 0x10]
shr ebx, 4
test ebx, ebx
je 0x490171
push eax
push esi
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [ebp - 0x34]
shl ebx, 4
add esp, 0x18
add dword [ebp - 0x20], ebx
add dword [ebp - 0x24], ebx
sub edi, ebx
je 0x4902e5
shr ebx, 4
mov ecx, esi
mov edx, ebx
call fcn.00490010
lea eax, [esi + 0x10]
mov ecx, eax
jmp 0x49017b
mov ecx, eax
test edi, edi
je 0x4902e5
test edi, edi
je 0x490344
mov ebx, dword [ebp - 0x20]
mov esi, edi
mov edx, ebx
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub esi, 1
jne 0x490190
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x28]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x30]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
add esp, 0x18
xor edx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edi
cmp edi, 0x40
jb 0x4902be
lea eax, [ebp + edi - 0x1d]
cmp ecx, eax
ja 0x4901f4
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [ecx - 1]
add eax, edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp - 0x3c]
jae 0x4902be
mov ebx, dword [ebp - 0x20]
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x490213
lea eax, [ecx - 1]
mov dword [ebp - 0x34], ecx
add eax, edi
mov dword [ebp - 0x24], edi
cmp eax, ebx
jae 0x4902be
mov esi, ebx
mov dword [ebp - 0x50], ebx
sub esi, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], esi
mov eax, edi
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
sub esi, ecx
and eax, 0xffffffc0
mov dword [ebp - 0x44], esi
lea esi, [ebp - 0xc]
sub esi, ecx
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x30]
mov dword [ebp - 0x48], esi
mov ebx, dword [ebp - 0x44]
lea esi, [ebp + 4]
mov dword [ebp - 0x3c], eax
sub esi, ecx
mov edi, dword [ebp - 0x3c]
lea eax, [ecx + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], esi
movups xmm0, xmmword [edi - 0x30]
mov esi, dword [ebp - 0x48]
lea edi, [edi + 0x40]
movups xmm1, xmmword [ebp + edx - 0x1c]
add edx, 0x40
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx + eax - 0x40]
movups xmmword [eax - 0x50], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [edi - 0x50]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [ebp - 0x4c]
pxor xmm1, xmm0
movups xmm0, xmmword [edi - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [ebp - 0x38]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x40]
jb 0x490255
mov ebx, dword [ebp - 0x50]
mov eax, edx
mov dword [ebp - 0x40], edx
cmp eax, dword [ebp - 0x24]
jae 0x4902e5
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
sub ebx, eax
sub edi, eax
nop dword [eax + eax]
lea ecx, [ebp - 0x1c]
add ecx, edx
inc edx
mov al, byte [ecx + ebx]
xor al, byte [ecx]
mov byte [ecx + edi], al
cmp edx, esi
jb 0x4902d0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jae 0x490309
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.0062b450
add esp, 0xc
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call edi
mov eax, dword [ebp - 0x1c]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x18]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 8]
pop edi
mov byte [esi], al
xor ecx, ebp
pop esi
xor eax, eax
pop ebx
call fcn.006281fa
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
push ebx
push eax
push eax
call edi
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call edi
add esp, 0x18
jmp 0x4902eb