Function at 0xa6e8a44
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 - 0x160], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x164], ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
push edi
push 5
mov ecx, dword [esi + 0x5c]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x144], ecx
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x148], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
mov dword [ebp - 0x13c], ecx
mov ecx, dword [esi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [esi + 0x10]
mov dword [ebp - 0x128], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x138], esi
mov ecx, edi
mov dword [ebp - 0x14c], 3
cmova ecx, eax
mov dword [ebp - 0x15c], 0x1f
mov eax, dword [esi + 0xc4]
xor edx, edx
cmp dword [esi + 0x18], edx
cmovne ecx, edi
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x150], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x154], eax
pop ecx
cmp dword [esi + 0xdc], edx
jne 0xa6e8d7c
mov eax, dword [ebp - 0x128]
mov edi, dword [esi + 0x1c]
sub eax, edi
cmp eax, 0x180
jbe 0xa6e8c86
lea eax, [edi + 0x60]
mov dword [ebp - 0x118], eax
cmp edi, eax
jae 0xa6e8bde
sub ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x124], ecx
mov eax, dword [esi + 0x54]
mov edx, edi
mov dword [ebp - 8], eax
and edx, 7
push 0x1f
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x13c]
imul eax, dword [edi + eax + 8], 0x9e3779b1
xor eax, dword [esi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x144]
mov dword [esi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x148]
shr eax, 3
and eax, 0x1fffffe0
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 - 0x15c]
add ecx, eax
mov eax, dword [ebp - 0x130]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x124]
cmp edi, dword [ebp - 0x118]
jb 0xa6e8b57
mov ecx, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x128]
inc ecx
and dword [ebp - 0x124], 0
add edi, 0xffffffe0
mov eax, dword [ebp - 0x13c]
mov edx, ecx
sub edx, dword [ebp - 0x13c]
add eax, edi
sub edx, edi
mov dword [ebp - 0x158], edi
inc edx
mov dword [ebp - 0x118], edi
cmp eax, ecx
push 8
cmova edx, dword [ebp - 0x124]
pop eax
cmp edx, eax
push 0x18
cmova edx, eax
add edx, edi
mov dword [ebp - 0x124], edx
pop ecx
cmp edi, edx
jae 0xa6e8c86
sub ecx, dword [esi + 0x24]
mov edi, edx
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x118]
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x13c]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x130]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x118]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x118], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0xa6e8c45
mov edi, dword [ebp - 0x158]
push 0x18
pop ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x124], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x118], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x128]
cmp edi, eax
jae 0xa6e8d3e
sub ecx, dword [esi + 0x24]
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x54]
mov edx, edi
mov dword [ebp - 0x130], eax
and edx, 7
push 0x1f
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x158]
imul eax, dword [edi + eax + 8], 0x9e3779b1
xor eax, dword [esi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x124]
mov dword [esi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x118]
shr eax, 3
and eax, 0x1fffffe0
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 - 0x15c]
add ecx, eax
mov eax, dword [ebp - 0x130]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x128]
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x138]
mov ecx, dword [ebp - 8]
cmp edi, eax
jb 0xa6e8cb5
mov edx, eax
mov dword [esi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x11c]
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x12c]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x140]
shr eax, cl
mov dword [esi + edx*4 + 0x2c], eax
xor edx, edx
mov eax, dword [ebp - 0x118]
jmp 0xa6e8d9f
mov eax, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x11c]
imul eax, dword [eax], 0x9e3779b1
mov dword [esi + 0x1c], edi
xor eax, dword [ebp - 0x140]
shr eax, cl
mov dword [ebp - 0x118], eax
add dword [esi + 0x58], eax
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x144]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x11c], edx
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x148]
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x140], ecx
mov al, byte [eax]
mov byte [ebp - 0x11d], al
movzx eax, al
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x118]
movsx eax, al
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
xor edi, edi
mov ecx, edi
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [ebp + ecx*4 - 0x14], eax
inc ecx
cmp ecx, 2
jl 0xa6e8e09
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x11d]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x14]
ror edx, cl
mov ecx, edi
mov dword [ebp - 0x130], edi
cmp edx, edi
jbe 0xa6e8ebc
mov esi, dword [ebp - 0x11c]
cmp dword [ebp - 0x154], edi
jbe 0xa6e8eb0
test edx, edx
jne 0xa6e8e5b
bsf eax, ecx
add eax, 0x20
jmp 0xa6e8e5e
bsf eax, edx
add eax, dword [ebp - 0x148]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x140]
mov eax, dword [ecx + eax*4]
je 0xa6e8e8a
cmp eax, dword [ebp - 0x150]
jb 0xa6e8eb0
mov dword [ebp + esi*4 - 0x114], eax
inc esi
dec dword [ebp - 0x154]
mov eax, dword [ebp - 0x130]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x130]
and ecx, eax
mov dword [ebp - 0x130], ecx
ja 0xa6e8e47
jb 0xa6e8eb0
cmp edx, edi
ja 0xa6e8e47
mov dword [ebp - 0x11c], esi
mov esi, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x148]
push 0x1f
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x144]
add ecx, eax
mov eax, dword [ebp - 0x118]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x140]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [ebp - 0x11c], edi
je 0xa6e8f81
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp + edi*4 - 0x114]
mov esi, dword [ebp - 0x12c]
mov eax, dword [ecx + edx - 3]
cmp eax, dword [edx + esi - 3]
mov esi, dword [ebp - 0x11c]
jne 0xa6e8f7c
push dword [ebp - 0x160]
push ecx
push dword [ebp - 0x12c]
call fcn.0a6d4be4
mov edx, dword [ebp - 0x14c]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa6e8f7c
mov eax, dword [ebp - 0x128]
mov edx, ecx
sub eax, dword [ebp + edi*4 - 0x114]
mov esi, dword [ebp - 0x164]
add eax, 3
mov dword [ebp - 0x14c], edx
mov dword [esi], eax
mov eax, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x160]
je 0xa6e8f81
inc edi
cmp edi, esi
jb 0xa6e8f02
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14c]
xor ecx, ebp
pop edi
pop esi
call fcn.0a7068c0
leave
ret