Function at 0x4e6b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov esi, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x14], 1
call fcn.0048f950
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jns 0x4e6ba8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004de160
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4e6bbd
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edi
test edx, edx
jne 0x4e6bce
mov edx, 0x58a685
xor ecx, ecx
jmp 0x4e6be9
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x4e6be9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e6be0
sub ecx, edi
push 0
push esi
push ecx
push edx
push ebx
call fcn.004de310
add esp, 0x14
test eax, eax
je 0x4e6c09
call fcn.004de160
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x4e6c1b
push ebx
call fcn.004de0f0
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x4e6df7
mov edi, dword [ebp + 0x24]
mov edx, 1
nop
cmp ecx, dword [ebp - 0xc]
mov ebx, ecx
push dword [ebp - 4]
cmovg ebx, dword [ebp - 0xc]
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
push esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
call fcn.004de040
add esp, 8
test eax, eax
je 0x4e6e12
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.004de4e0
add esp, 0xc
test eax, eax
je 0x4e6e12
push 4
lea eax, [ebp - 8]
push eax
push esi
call fcn.004de4e0
add esp, 0xc
test eax, eax
je 0x4e6e12
push 0
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.004de290
add esp, 0xc
test eax, eax
je 0x4e6e12
push esi
call fcn.004de1a0
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.005849d0
add esp, 0x10
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x18], 1
jle 0x4e6dd8
push dword [ebp - 4]
push esi
call fcn.004de040
add esp, 8
test eax, eax
je 0x4e6e12
push dword [ebp - 0xc]
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.004de4e0
add esp, 0xc
test eax, eax
je 0x4e6e12
push 0
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.004de290
add esp, 0xc
test eax, eax
je 0x4e6e12
push esi
call fcn.004de1a0
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x4e6dc5
cmp ebx, 0x20
jb 0x4e6da3
lea ecx, [edi - 1]
lea eax, [ebp + ebx - 0x65]
add ecx, ebx
cmp edi, eax
ja 0x4e6d44
lea eax, [ebp - 0x64]
cmp ecx, eax
jae 0x4e6da3
mov eax, ebx
and eax, 0x8000001f
jns 0x4e6d52
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ebx
mov ecx, edi
sub edx, eax
lea ebx, [ebp - 0x54]
mov eax, edi
lea edi, [ebp - 0x64]
neg eax
add edi, eax
add eax, ebx
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
movups xmm0, xmmword [ecx]
add esi, 0x20
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx - 0x20]
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp esi, edx
jl 0x4e6d75
mov ebx, dword [ebp - 0x20]
cmp esi, ebx
jge 0x4e6dc5
lea eax, [esi + edi]
mov edx, ebx
lea edi, [ebp - 0x64]
sub edi, dword [ebp + 0x24]
sub edx, esi
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4e6db4
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x18]
jl 0x4e6cd5
mov ecx, dword [ebp + 0x20]
add edi, ebx
mov edx, dword [ebp - 0x14]
sub ecx, ebx
inc edx
mov dword [ebp + 0x20], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp + 0x24], edi
test ecx, ecx
jne 0x4e6c30
mov ebx, dword [ebp - 4]
push esi
call fcn.004de0f0
push ebx
call fcn.004de0f0
add esp, 8
mov eax, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004de0f0
push dword [ebp - 4]
call fcn.004de0f0
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret