Function at 0x4e8e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x588
mov ecx, 0x11
xor eax, eax
push ebx
mov ebx, dword [esp + 0x594]
push ebp
push esi
mov esi, dword [esp + 0x5a0]
push edi
lea edi, [esp + 0x50]
mov edx, esi
rep stosd dword es:[edi], eax
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
mov ebp, dword [esp + eax*4 + 0x50]
lea eax, [esp + eax*4 + 0x50]
inc ebp
dec edx
mov dword [eax], ebp
jne 0x4e8e99
cmp dword [esp + 0x50], esi
jne 0x4e8ed9
mov ecx, dword [esp + 0x5b4]
mov edx, dword [esp + 0x5b8]
mov dword [ecx], 0
mov dword [edx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x588
ret
mov esi, dword [esp + 0x5b8]
mov ecx, 1
lea eax, [esp + 0x54]
mov ebp, dword [esi]
mov dword [esp + 0x14], ebp
cmp dword [eax], 0
jne 0x4e8efd
inc ecx
add eax, 4
cmp ecx, 0x10
jbe 0x4e8eef
cmp ebp, ecx
mov dword [esp + 0x10], ecx
jae 0x4e8f0b
mov dword [esp + 0x14], ecx
mov ebp, ecx
mov eax, 0x10
lea edx, [esp + 0x90]
cmp dword [edx], 0
jne 0x4e8f24
dec eax
sub edx, 4
test eax, eax
jne 0x4e8f17
cmp ebp, eax
mov dword [esp + 0x38], eax
jbe 0x4e8f32
mov dword [esp + 0x14], eax
mov ebp, eax
mov dword [esi], ebp
mov esi, 1
shl esi, cl
cmp ecx, eax
jae 0x4e8f51
lea edx, [esp + ecx*4 + 0x50]
sub esi, dword [edx]
js 0x4e8f64
inc ecx
add edx, 4
shl esi, 1
cmp ecx, eax
jb 0x4e8f43
lea edi, [eax*4]
mov ecx, dword [esp + edi + 0x50]
sub esi, ecx
mov dword [esp + 0x48], esi
jns 0x4e8f74
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x588
ret
add ecx, esi
xor edx, edx
mov dword [esp + edi + 0x50], ecx
xor ecx, ecx
dec eax
mov dword [esp + 0x98], edx
je 0x4e8f9b
mov esi, dword [esp + edx + 0x54]
add edx, 4
add ecx, esi
dec eax
mov dword [esp + edx + 0x98], ecx
jne 0x4e8f88
mov esi, ebx
xor edx, edx
mov eax, dword [esi]
add esi, 4
test eax, eax
je 0x4e8fc0
mov ecx, dword [esp + eax*4 + 0x94]
lea eax, [esp + eax*4 + 0x94]
mov dword [esp + ecx*4 + 0x118], edx
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x5a4]
inc edx
cmp edx, eax
jb 0x4e8f9f
mov eax, dword [esp + edi + 0x94]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5a4], eax
mov eax, ebp
xor edi, edi
lea ebx, [esp + 0x118]
xor esi, esi
neg eax
cmp edx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xd8], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
jg 0x4e92b8
lea ecx, [edx - 1]
mov dword [esp + 0x34], ecx
lea ecx, [esp + edx*4 + 0x50]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov esi, ecx
dec ecx
test esi, esi
mov dword [esp + 0x2c], ecx
je 0x4e9291
lea ecx, [eax + ebp]
cmp edx, ecx
jle 0x4e915f
mov edx, dword [esp + 0x2c]
mov edi, ecx
inc edx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x18]
add eax, ebp
inc edx
add edi, ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
sub edx, eax
mov dword [esp + 0x3c], eax
cmp edx, ebp
jbe 0x4e9076
mov edx, ebp
mov ebx, dword [esp + 0x10]
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x4c]
jbe 0x4e90b6
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, ebp
add eax, ecx
cmp ebx, edx
jae 0x4e90b6
inc ebx
cmp ebx, edx
jae 0x4e90b6
mov ecx, dword [esi + 4]
add esi, 4
shl eax, 1
cmp eax, ecx
jbe 0x4e90b6
sub eax, ecx
inc ebx
cmp ebx, edx
jb 0x4e90a3
mov eax, 1
mov ecx, ebx
shl eax, cl
mov dword [esp + 0x40], eax
lea edx, [eax*8 + 8]
push edx
call fcn.004df760
add esp, 4
test eax, eax
je 0x4e92db
mov edx, dword [esp + 0x5b4]
lea ecx, [eax + 8]
add eax, 4
mov dword [esp + 0x44], ecx
mov dword [edx], ecx
mov dword [esp + 0x5b4], eax
mov dword [eax], 0
mov eax, dword [esp + 0x18]
test eax, eax
lea ebp, [esp + eax*4 + 0xd8]
mov dword [ebp], ecx
je 0x4e9143
mov edx, dword [esp + 0x30]
mov esi, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + eax*4 + 0x94], edx
mov eax, dword [esp + 0x14]
add bl, 0x10
sub ecx, eax
mov byte [esp + 0x1d], al
mov eax, dword [ebp - 4]
mov byte [esp + 0x1c], bl
shr edx, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [eax + edx*8], ecx
mov dword [eax + edx*8 + 4], esi
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
cmp eax, edi
mov eax, dword [esp + 0x3c]
jg 0x4e9059
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov dl, byte [esp + 0x10]
mov ecx, dword [esp + 0x5a4]
sub dl, al
mov byte [esp + 0x1d], dl
lea edx, [esp + ecx*4 + 0x118]
cmp ebx, edx
jb 0x4e9182
mov byte [esp + 0x1c], 0x63
jmp 0x4e91d2
mov ecx, dword [ebx]
mov edx, dword [esp + 0x5a8]
cmp ecx, edx
jae 0x4e91a9
mov dx, word [ebx]
cmp ecx, 0x100
setb cl
add ecx, 0xf
mov word [esp + 0x20], dx
mov byte [esp + 0x1c], cl
jmp 0x4e91cb
sub ecx, edx
mov edx, dword [esp + 0x5b0]
shl ecx, 1
mov dl, byte [ecx + edx]
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x5ac]
mov cx, word [ecx + edx]
mov word [esp + 0x20], cx
add ebx, 4
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x10]
mov esi, 1
sub ecx, eax
mov edx, edi
shl esi, cl
mov ecx, eax
shr edx, cl
cmp edx, dword [esp + 0x40]
jae 0x4e921a
mov ecx, dword [esp + 0x44]
lea edi, [esi*8]
lea ecx, [ecx + edx*8]
mov ebx, dword [esp + 0x1c]
add edx, esi
mov dword [ecx], ebx
mov ebx, dword [esp + 0x20]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x40]
add ecx, edi
cmp edx, ebx
jb 0x4e91f9
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, 1
shl edx, cl
test edi, edx
je 0x4e9231
xor edi, edx
shr edx, 1
test edi, edx
jne 0x4e9229
mov esi, 1
mov ecx, eax
xor edi, edx
mov edx, dword [esp + 0x18]
shl esi, cl
mov ecx, dword [esp + edx*4 + 0x94]
lea edx, [esp + edx*4 + 0x94]
mov dword [esp + 0x30], edi
dec esi
and esi, edi
cmp esi, ecx
je 0x4e927a
mov esi, dword [esp + 0x18]
sub eax, ebp
dec esi
mov ecx, eax
mov dword [esp + 0x18], esi
mov esi, 1
shl esi, cl
mov ecx, dword [edx - 4]
sub edx, 4
dec esi
and esi, edi
cmp esi, ecx
jne 0x4e9259
mov ecx, dword [esp + 0x2c]
mov edx, ecx
dec ecx
test edx, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
jne 0x4e9043
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
inc edx
add esi, 4
inc ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
cmp edx, ecx
mov dword [esp + 0x28], esi
jle 0x4e902e
xor esi, esi
cmp dword [esp + 0x48], esi
je 0x4e8ecc
cmp ecx, 1
je 0x4e8ecc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x588
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e92f3
mov eax, dword [esp + 0xd8]
push eax
call fcn.004e9310
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x588
ret