Function at 0xa6e8f95
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x164], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
push 6
mov dword [ebp - 0x160], edi
mov ecx, dword [edi + 0x5c]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x138], ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x13c], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x120], ecx
mov ecx, dword [edi + 4]
sub eax, ecx
mov dword [ebp - 0x130], ecx
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
mov dword [ebp - 0x128], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x134], 3
mov ecx, esi
mov dword [ebp - 0x150], 0x3f
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor esi, esi
cmp dword [edi + 0x18], esi
cmovne ecx, dword [edi + 0x10]
mov dword [ebp - 0x148], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x158], eax
pop ecx
cmp dword [edi + 0xdc], esi
jne 0xa6e92d6
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x128]
sub eax, edx
mov dword [ebp - 0x118], edx
cmp eax, 0x180
jbe 0xa6e91d6
lea eax, [edx + 0x60]
mov dword [ebp - 0x11c], eax
cmp edx, eax
jae 0xa6e913a
sub ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x130]
mov dword [ebp - 8], eax
push 0x3f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x118]
imul eax, dword [eax + esi + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x138]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
shr eax, 2
and eax, 0x3fffffc0
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x150]
add ecx, eax
mov eax, dword [ebp - 0x140]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x118]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x118], edx
cmp edx, dword [ebp - 0x11c]
jb 0xa6e90a9
mov edx, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
add edx, 0xffffffe0
mov eax, dword [ebp - 0x130]
inc ecx
and dword [ebp - 0x124], 0
mov esi, ecx
sub esi, dword [ebp - 0x130]
add eax, edx
sub esi, edx
mov dword [ebp - 0x118], edx
inc esi
mov dword [ebp - 0x11c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x124]
pop eax
cmp esi, eax
push 0x18
cmova esi, eax
add esi, edx
pop ecx
cmp edx, esi
jae 0xa6e91d6
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x124], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x130]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x124]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x11c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x11c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa6e9195
mov edx, dword [ebp - 0x118]
push 0x18
pop ecx
mov eax, dword [edi + 0x28]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 0x14c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x11c], esi
cmp edx, eax
jae 0xa6e9298
sub ecx, dword [edi + 0x24]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0x140], eax
push 0x3f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x118]
imul eax, dword [eax + esi + 8], 0x9e3779b1
mov esi, dword [ebp - 0x11c]
xor eax, dword [edi + 0x50]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x14c]
shr eax, 2
and eax, 0x3fffffc0
add edx, eax
lea esi, [esi + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x150]
add ecx, eax
mov eax, dword [ebp - 0x140]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x118], edx
cmp edx, eax
jb 0xa6e9205
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x120]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x12c]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x154]
shr eax, cl
xor esi, esi
mov dword [edi + edx*4 + 0x2c], eax
mov edx, dword [ebp - 0x140]
jmp 0xa6e92ff
mov eax, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x120]
imul edx, dword [eax], 0x9e3779b1
mov eax, dword [ebp - 0x128]
mov dword [edi + 0x1c], eax
xor edx, dword [ebp - 0x154]
shr edx, cl
mov dword [ebp - 0x140], edx
mov ecx, dword [ebp - 0x138]
mov eax, edx
add dword [edi + 0x58], edx
lea edi, [ebp - 0x14]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x11c], esi
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov dword [ebp - 0x14c], ecx
movzx eax, byte [ecx]
mov dword [ebp - 0x120], eax
movsx eax, dl
movd xmm0, eax
xor eax, eax
stosd dword es:[edi], eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0xa6e9355
mov eax, dword [ebp - 8]
cdq
mov esi, dword [ebp - 0x120]
mov edi, eax
mov eax, dword [ebp - 0xc]
mov ecx, edx
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [ebp - 0x10]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [ebp - 0x14]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
push 0x3f
pop eax
and esi, eax
mov ecx, esi
neg ecx
and ecx, eax
mov eax, edi
call fcn.0a707300
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x118], edx
mov eax, edi
mov edx, dword [ebp - 0x13c]
call fcn.0a707320
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x118]
or esi, eax
or ecx, edx
mov dword [ebp - 0x118], ecx
ja 0xa6e93fb
xor edi, edi
cmp esi, edi
jbe 0xa6e9471
jmp 0xa6e93fd
xor edi, edi
mov edx, dword [ebp - 0x158]
test edx, edx
je 0xa6e9471
test esi, esi
jne 0xa6e9413
bsf eax, ecx
add eax, 0x20
jmp 0xa6e9416
bsf eax, esi
add eax, dword [ebp - 0x120]
push 0x3f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x138]
mov ecx, dword [ecx + eax*4]
je 0xa6e944f
cmp ecx, dword [ebp - 0x148]
jb 0xa6e9471
mov eax, dword [ebp - 0x11c]
mov dword [ebp + eax*4 - 0x114], ecx
inc eax
dec edx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x158], edx
mov edx, dword [ebp - 0x118]
mov ecx, esi
add ecx, 0xffffffff
adc edx, 0xffffffff
and esi, ecx
mov ecx, dword [ebp - 0x118]
and ecx, edx
mov dword [ebp - 0x118], ecx
ja 0xa6e93fd
jae 0xa6e93f5
mov ecx, dword [ebp - 0x120]
mov esi, dword [ebp - 0x138]
dec ecx
push 0x3f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x14c]
add ecx, eax
mov eax, dword [ebp - 0x140]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x160]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x11c], 0
je 0xa6e953d
mov edx, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp + edi*4 - 0x114]
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x134]
mov eax, dword [ecx + eax - 3]
cmp eax, dword [esi + edx - 3]
mov esi, dword [ebp - 0x11c]
jne 0xa6e9538
push dword [ebp - 0x15c]
push ecx
push edx
call fcn.0a6d4be4
mov ecx, eax
add esp, 0xc
cmp ecx, dword [ebp - 0x134]
jbe 0xa6e9532
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp + edi*4 - 0x114]
mov edx, dword [ebp - 0x164]
add eax, 3
mov dword [ebp - 0x134], ecx
mov dword [edx], eax
mov edx, dword [ebp - 0x12c]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x15c]
je 0xa6e953d
jmp 0xa6e9538
mov edx, dword [ebp - 0x12c]
inc edi
cmp edi, esi
jb 0xa6e94be
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
call fcn.0a7068c0
leave
ret