Function at 0x4e9fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x38], 0
call fcn.0048c9f0
push esi
call fcn.0048c900
mov esi, eax
add esp, 8
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4ea42e
push edi
mov edi, dword [ebp + 0x14]
push edi
call fcn.0048c900
mov edx, eax
add esp, 4
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4ea42d
push edi
call fcn.0048c900
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4ea42d
push edi
call fcn.0048c900
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4ea42d
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004e9ba0
add esp, 0xc
test eax, eax
je 0x4ea42c
cmp dword [esi + 4], 0
je 0x4ea42c
push ebx
push edi
call fcn.00488080
add esp, 8
test eax, eax
je 0x4ea42c
push esi
call fcn.00488320
push edi
mov dword [ebp - 0x14], eax
call fcn.00488320
mov edi, dword [ebx + 4]
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], edi
cmp edi, dword [esi + 8]
jg 0x4ea07c
mov eax, esi
jmp 0x4ea086
push edi
push esi
call fcn.00488610
add esp, 8
test eax, eax
je 0x4ea42c
mov edx, dword [ebp - 0x34]
mov esi, dword [esi]
mov dword [ebp - 0x20], esi
mov eax, dword [edx + 4]
cmp eax, edi
jge 0x4ea0ac
mov ecx, dword [ebp - 8]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x28]
mov dword [edx + 4], edi
cmp edi, dword [ebx + 8]
jg 0x4ea0bb
mov eax, ebx
jmp 0x4ea0c5
push edi
push ebx
call fcn.00488610
add esp, 8
test eax, eax
je 0x4ea42c
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
mov dword [edx], 1
cmp edi, 1
jle 0x4ea0ea
lea ecx, [edi - 1]
xor eax, eax
lea edi, [edx + 4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 4], edi
cmp edi, dword [ecx + 8]
jg 0x4ea0f9
mov eax, ecx
jmp 0x4ea109
push edi
push ecx
call fcn.00488610
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x4ea42c
mov ebx, dword [ecx]
mov dword [ebp - 4], ebx
test edi, edi
jle 0x4ea128
mov ecx, edi
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4ea1f2
mov edi, edi
mov ebx, dword [esi]
test bl, 1
jne 0x4ea1ef
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
mov edx, eax
and edx, 1
neg edx
mov ecx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ecx]
and ecx, edx
lea edx, [edi - 1]
xor eax, ecx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
test edx, edx
jle 0x4ea1d5
mov ecx, dword [ebp - 0x10]
mov edx, esi
sub edx, ecx
mov dword [ebp - 0x2c], 0xfffffffc
sub dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], edx
lea edi, [ecx + 4]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [ebp - 0x30]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
add edx, edi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, dword [ebp - 0x3c]
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [ebp - 8]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [ebp - 0x30]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x40]
jl 0x4ea185
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
shr ebx, 1
mov dword [esi + ecx*4], ebx
shr eax, 1
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x14]
dec ecx
mov dword [ebp - 0x14], ecx
jne 0x4ea140
mov ebx, dword [ebp - 4]
cmp ecx, 0x20
jg 0x4ea20a
mov eax, dword [esi]
test eax, eax
je 0x4ea42c
cmp eax, 1
je 0x4ea3ed
cmp ecx, dword [ebp - 0x24]
jge 0x4ea24a
mov edx, dword [ebp - 0x1c]
mov eax, ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov edx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor ebx, ebx
test edi, edi
jle 0x4ea3a0
cmp edi, 4
jb 0x4ea35d
mov eax, dword [ebp - 4]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp edx, eax
ja 0x4ea279
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp eax, dword [ebp - 4]
jae 0x4ea35d
lea eax, [edi - 1]
lea eax, [esi + eax*4]
cmp edx, eax
ja 0x4ea291
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp eax, esi
jae 0x4ea35d
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp edx, eax
ja 0x4ea2ad
lea eax, [edi - 1]
lea eax, [edx + eax*4]
cmp eax, dword [ebp - 0xc]
jae 0x4ea35d
mov eax, dword [ebp - 4]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x4ea2c9
lea eax, [edi - 1]
lea eax, [esi + eax*4]
cmp eax, dword [ebp - 4]
jae 0x4ea35d
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x4ea2e1
lea eax, [edi - 1]
lea eax, [esi + eax*4]
cmp eax, dword [ebp - 0xc]
jae 0x4ea35d
mov eax, edi
and eax, 0x80000003
jns 0x4ea2ef
dec eax
or eax, 0xfffffffc
inc eax
mov edx, dword [ebp - 0xc]
sub edx, esi
mov dword [ebp - 0x30], edi
sub dword [ebp - 0x30], eax
mov eax, esi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 4]
sub edx, esi
sub edi, esi
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
jmp 0x4ea320
movdqu xmm0, xmmword [eax]
add ebx, 4
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [edx + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
movdqu xmm1, xmmword [edi + eax - 0x10]
movdqu xmm0, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp ebx, dword [ebp - 0x30]
jl 0x4ea320
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
cmp ebx, edi
jge 0x4ea3a0
mov eax, dword [ebp - 0xc]
lea ecx, [esi + ebx*4]
sub eax, esi
sub edx, esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
sub eax, esi
mov dword [ebp - 0x30], edx
mov esi, dword [ebp - 0x40]
sub edi, ebx
mov dword [ebp - 0x3c], eax
mov ebx, eax
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + ebx - 4]
xor dword [ecx + edx - 4], eax
dec edi
jne 0x4ea380
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x24]
jne 0x4ea136
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x4ea3cd
test edi, edi
je 0x4ea3cd
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x4ea3c0
push eax
call fcn.00488350
mov edx, dword [ebp - 0x10]
add esp, 4
mov ebx, dword [ebp - 4]
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
jmp 0x4ea136
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x4ea411
mov eax, dword [esi]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
nop
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x4ea40e
dec ecx
test ecx, ecx
jg 0x4ea400
mov dword [esi + 4], ecx
push esi
push dword [ebp + 8]
call fcn.00488080
xor ecx, ecx
add esp, 8
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
pop ebx
pop edi
push dword [ebp + 0x14]
call fcn.0048c880
mov eax, dword [ebp - 0x38]
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret