Function at 0x8e7028
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x8e7476
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
shr eax, 0x18
mov dword [ebp - 0x54], eax
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0xa8b280]
mov dword [ebp - 0x64], eax
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0xa8b268]
dec eax
mov dword [ebp - 0x68], eax
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0xa8b298]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8a]
mov edx, dword [0xa8f014]
mov eax, dword [edx + eax*4]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x10]
shr eax, cl
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.0040c840
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
shr eax, cl
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jge 0x8e744c
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x2c]
shl eax, cl
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x30], 0
jge 0x8e70f0
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
call fcn.0040c840
cmp eax, dword [ebp - 0x34]
jg 0x8e7108
mov eax, dword [ebp - 0x14]
call fcn.0040c848
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0x7f000000
mov dword [ebp - 0x3c], 0x81000000
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub edx, eax
jl 0x8e7196
inc edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x8e718e
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
and eax, 0x7fffffff
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x38]
jge 0x8e7180
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x3c]
jle 0x8e718e
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x74]
jne 0x8e7127
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jl 0x8e743d
mov ecx, dword [ebp - 0x64]
shr dword [ebp - 0x38], cl
mov ecx, dword [ebp - 0x64]
shr dword [ebp - 0x3c], cl
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
call fcn.0040c840
cmp eax, dword [ebp - 0x4c]
jge 0x8e7201
mov eax, dword [ebp - 0x4c]
add eax, 0x40
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x8e6fd0]
call fcn.0040ca5c
add esp, 4
mov eax, dword [ebp - 0x4c]
add eax, 0x40
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x8e6ffc]
call fcn.0040ca5c
add esp, 4
mov ebx, dword [0xa8e9e4]
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
call ebx
cmp byte [ebp + 0xc], 0
jne 0x8e72d4
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub edx, eax
jl 0x8e73b0
inc edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x18], eax
xor esi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 0x58], eax
cmp esi, dword [ebp - 0x1c]
jge 0x8e72c3
mov eax, dword [ebp - 0x58]
mov ebx, dword [eax + esi*4]
and ebx, 0x7fffffff
mov eax, ebx
and eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
add dword [edx + ebx*4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x40]
add dword [eax + ebx*4 + 4], edx
inc esi
mov eax, dword [ebp - 0x58]
mov ebx, dword [eax + esi*4]
and ebx, 0x7fffffff
mov eax, ebx
and eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
sub dword [edx + ebx*4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x40]
sub dword [eax + ebx*4 + 4], edx
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x8e7258
inc dword [ebp - 0x18]
dec dword [ebp - 0x74]
jne 0x8e7232
jmp 0x8e73b0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub edx, eax
jl 0x8e73b0
inc edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x18], eax
xor esi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
cmp esi, dword [ebp - 0x1c]
jge 0x8e73a4
mov eax, dword [ebp - 0x58]
mov ebx, dword [eax + esi*4]
inc esi
test ebx, 0x80000000
je 0x8e7330
mov dword [ebp - 0x60], 1
jmp 0x8e7337
mov dword [ebp - 0x60], 0xffffffff
and ebx, 0x7fffffff
cmp dword [ebp - 0x5c], 0
jne 0x8e7369
mov eax, ebx
and eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
add dword [edx + ebx*4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x40]
add dword [eax + ebx*4 + 4], edx
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x8e739b
mov eax, ebx
and eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x64]
shr ebx, cl
sub ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
sub dword [edx + ebx*4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x40]
sub dword [eax + ebx*4 + 4], edx
cmp esi, dword [ebp - 0x1c]
jl 0x8e7318
inc dword [ebp - 0x18]
dec dword [ebp - 0x74]
jne 0x8e72e9
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
and eax, 0xffffff
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
dec eax
test eax, eax
jl 0x8e73f4
inc eax
mov dword [ebp - 0x74], eax
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x6c]
and eax, 0xff00
shl eax, 0x10
or eax, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
mov dword [edx + esi*4], eax
inc esi
dec dword [ebp - 0x74]
jne 0x8e73ce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
sub eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x4c]
jle 0x8e740a
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
jmp 0x8e7416
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00881740
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x78]
call dword [ebp - 0x70]
mov ebx, dword [0xa8e5dc]
mov ebx, dword [ebx]
call ebx
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jl 0x8e70ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8e747d
lea eax, [ebp - 8]
mov edx, dword [0x8e6ffc]
call fcn.0040cb80
lea eax, [ebp - 4]
mov edx, dword [0x8e6fd0]
call fcn.0040cb80
ret