Function at 0xa6e550e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x174], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x11c], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 0x24]
lea edi, [edx + ecx]
mov dword [ebp - 0x12c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x168], eax
add eax, edx
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x11c]
sub eax, ecx
mov dword [ebp - 0x13c], ecx
mov ecx, dword [esi + 0xb8]
mov dword [ebp - 0x164], edx
xor edx, edx
inc edx
mov dword [ebp - 0x134], eax
shl edx, cl
mov ecx, eax
sub ecx, dword [esi + 0x10]
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x16c], edi
mov edi, dword [esi + 0x10]
mov ecx, edi
cmova ecx, eax
mov dword [ebp - 0x138], esi
mov eax, dword [esi + 0xc4]
xor edx, edx
cmp dword [esi + 0x18], edx
push 5
cmovne ecx, edi
mov dword [ebp - 0x140], 3
mov edi, dword [ebp - 0x11c]
mov dword [ebp - 0x154], ecx
pop ecx
cmp eax, ecx
mov dword [ebp - 0x120], 0x1f
push 0x18
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x144], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x158], eax
pop ecx
cmp dword [esi + 0xdc], edx
jne 0xa6e586f
mov eax, dword [ebp - 0x134]
mov edi, dword [esi + 0x1c]
sub eax, edi
cmp eax, 0x180
jbe 0xa6e5779
lea eax, [edi + 0x60]
mov dword [ebp - 0x150], eax
cmp edi, eax
jae 0xa6e56d1
sub ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], 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 - 0x124], 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 - 0x148]
mov dword [esi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x14c]
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 - 0x120]
add ecx, eax
mov eax, dword [ebp - 0x124]
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 - 0x130]
cmp edi, dword [ebp - 0x150]
jb 0xa6e564a
mov edi, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x11c]
add edi, 0xffffffe0
and dword [ebp - 0x130], 0
inc ecx
mov eax, dword [ebp - 0x13c]
mov edx, ecx
sub edx, dword [ebp - 0x13c]
add eax, edi
sub edx, edi
mov dword [ebp - 0x160], edi
inc edx
mov dword [ebp - 0x124], edi
cmp eax, ecx
push 8
cmova edx, dword [ebp - 0x130]
pop eax
cmp edx, eax
push 0x18
cmova edx, eax
add edx, edi
mov dword [ebp - 0x130], edx
pop ecx
cmp edi, edx
jae 0xa6e5779
sub ecx, dword [esi + 0x24]
mov edi, edx
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x124]
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x13c]
imul edx, dword [eax + ecx], 0x9e3779b1
mov ecx, dword [ebp - 0x150]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x124]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x124], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0xa6e5738
mov edi, dword [ebp - 0x160]
push 0x18
pop ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x130], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x134]
cmp edi, eax
jae 0xa6e5831
sub ecx, dword [esi + 0x24]
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x54]
mov edx, edi
mov dword [ebp - 0x124], eax
and edx, 7
push 0x1f
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x160]
imul eax, dword [edi + eax + 8], 0x9e3779b1
xor eax, dword [esi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x130]
mov dword [esi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x150]
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 - 0x120]
add ecx, eax
mov eax, dword [ebp - 0x124]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x134]
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x138]
mov ecx, dword [ebp - 8]
cmp edi, eax
jb 0xa6e57a8
mov edx, eax
mov dword [esi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x12c]
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x11c]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x144]
shr eax, cl
mov dword [esi + edx*4 + 0x2c], eax
xor edx, edx
mov eax, dword [ebp - 0x120]
jmp 0xa6e5892
imul eax, dword [edi], 0x9e3779b1
sub ecx, dword [ebp - 0x12c]
xor eax, dword [ebp - 0x144]
shr eax, cl
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x120], eax
mov dword [esi + 0x1c], ecx
add dword [esi + 0x58], eax
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x148]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x124], edx
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x144], ecx
mov al, byte [eax]
mov byte [ebp - 0x115], al
movzx eax, al
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x120]
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 0xa6e58fc
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x115]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x14]
ror edx, cl
mov ecx, edi
mov dword [ebp - 0x12c], edi
cmp edx, edi
jbe 0xa6e59af
mov esi, dword [ebp - 0x124]
cmp dword [ebp - 0x158], edi
jbe 0xa6e59a3
test edx, edx
jne 0xa6e594e
bsf eax, ecx
add eax, 0x20
jmp 0xa6e5951
bsf eax, edx
add eax, dword [ebp - 0x14c]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x144]
mov eax, dword [ecx + eax*4]
je 0xa6e597d
cmp eax, dword [ebp - 0x154]
jb 0xa6e59a3
mov dword [ebp + esi*4 - 0x114], eax
inc esi
dec dword [ebp - 0x158]
mov eax, dword [ebp - 0x12c]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x12c]
and ecx, eax
mov dword [ebp - 0x12c], ecx
ja 0xa6e593a
jb 0xa6e59a3
cmp edx, edi
ja 0xa6e593a
mov dword [ebp - 0x124], esi
mov esi, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x14c]
push 0x1f
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x148]
add ecx, eax
mov eax, dword [ebp - 0x120]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x144]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [ebp - 0x124], edi
jbe 0xa6e5aaf
mov esi, dword [ebp + edi*4 - 0x114]
mov ecx, dword [ebp - 0x11c]
cmp esi, dword [ebp - 0x164]
jb 0xa6e5a3d
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
add edx, esi
mov esi, dword [ebp - 0x140]
mov eax, dword [edx + eax - 3]
cmp eax, dword [esi + ecx - 3]
mov esi, dword [ebp + edi*4 - 0x114]
jne 0xa6e5aa2
push dword [ebp - 0x15c]
push edx
push ecx
call fcn.0a6d4be4
add esp, 0xc
mov ecx, eax
jmp 0xa6e5a71
mov edx, dword [ebp - 0x168]
mov eax, dword [esi + edx]
cmp eax, dword [ecx]
jne 0xa6e5aa2
push dword [ebp - 0x16c]
lea eax, [edx + 4]
push dword [ebp - 0x170]
add eax, esi
push dword [ebp - 0x15c]
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d4c4f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x140]
jbe 0xa6e5aa2
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x174]
sub eax, esi
add eax, 3
mov dword [ebp - 0x140], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x15c]
je 0xa6e5aaf
inc edi
cmp edi, dword [ebp - 0x124]
jb 0xa6e59ef
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x140]
xor ecx, ebp
pop edi
pop esi
call fcn.0a7068c0
leave
ret