Function at 0xa6e1b85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x144], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x168], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], esi
push 4
mov dword [ebp - 0x140], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x138], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x13c], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x158], eax
add eax, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x174], eax
mov eax, esi
mov esi, dword [edi + 0x10]
sub eax, ecx
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
mov dword [ebp - 0x118], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x134], 3
mov ecx, esi
mov dword [ebp - 0x12c], 0xf
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
cmovne ecx, esi
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x150], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x160], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x178], eax
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [edi + 0xb4]
mov dword [ebp - 0x154], ecx
mov edi, dword [ebp - 0x154]
mov dword [ebp - 0x128], eax
mov eax, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x28]
mov dword [ebp - 0x164], ecx
imul ecx, dword [esi], 0x9e3779b1
pop esi
mov dword [ebp - 0x110], ecx
mov ecx, esi
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x110]
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x170], edi
mov edi, dword [ebp - 0x140]
shr ecx, 4
and ecx, 0xffffff0
mov dword [ebp - 0x15c], ecx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x178], eax
cmp dword [edi + 0xdc], edx
jne 0xa6e1f4e
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x118]
sub eax, edx
mov dword [ebp - 0x108], edx
cmp eax, 0x180
jbe 0xa6e1e46
lea eax, [edx + 0x60]
mov dword [ebp - 0x10c], eax
cmp edx, eax
jae 0xa6e1da7
mov ecx, esi
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 - 0x148], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x108]
imul eax, dword [esi + eax + 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 - 0x110]
mov edx, dword [ebp - 0x13c]
shr eax, 4
and eax, 0xffffff0
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 - 0x12c]
add ecx, eax
mov eax, dword [ebp - 0x110]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x108]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x108], edx
cmp edx, dword [ebp - 0x10c]
jb 0xa6e1d13
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
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 - 0x108], edx
inc esi
mov dword [ebp - 0x10c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x124]
pop eax
cmp esi, eax
push 0x18
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa6e1e45
pop ecx
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x124], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x130]
imul edx, dword [eax + ecx], 0x9e3779b1
mov ecx, dword [ebp - 0x124]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x10c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x10c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa6e1e02
mov edx, dword [ebp - 0x108]
push 0x18
pop esi
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x16c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x118]
cmp edx, eax
jae 0xa6e1f10
mov ecx, esi
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x148], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0x110], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x108]
imul eax, dword [esi + eax + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x10c]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x16c]
shr eax, 4
and eax, 0xffffff0
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 - 0x12c]
add ecx, eax
mov eax, dword [ebp - 0x110]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x118]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x108], edx
cmp edx, eax
jb 0xa6e1e7a
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 - 0x108], eax
mov eax, dword [ebp - 0x11c]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x160]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
xor edx, edx
mov eax, dword [ebp - 0x108]
jmp 0xa6e1f73
sub esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x160]
mov ecx, esi
xor eax, dword [ebp - 0x110]
shr eax, cl
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x108], eax
mov dword [edi + 0x1c], ecx
add dword [edi + 0x58], eax
mov ecx, dword [ebp - 0x138]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x12c], edx
push 0xf
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov dword [ebp - 0x148], ecx
movzx eax, byte [ecx]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x10c]
movsx eax, al
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ecx]
pop eax
and edx, eax
mov ecx, edx
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
neg ecx
and ecx, eax
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
xor esi, esi
movzx eax, ax
cdq
mov ecx, edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x120], ecx
mov edx, eax
cmp ecx, esi
ja 0xa6e2013
cmp edx, esi
jbe 0xa6e208a
mov edi, esi
cmp dword [ebp - 0x128], esi
jbe 0xa6e207e
test edx, edx
jne 0xa6e2029
bsf eax, ecx
add eax, 0x20
jmp 0xa6e202c
bsf eax, edx
add eax, dword [ebp - 0x10c]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x138]
mov eax, dword [ecx + eax*4]
je 0xa6e2058
cmp eax, dword [ebp - 0x150]
jb 0xa6e207e
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x128]
mov eax, dword [ebp - 0x120]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x120]
and ecx, eax
mov dword [ebp - 0x120], ecx
ja 0xa6e2015
jb 0xa6e207e
cmp edx, esi
ja 0xa6e2015
mov dword [ebp - 0x110], edi
mov edi, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x10c]
push 0xf
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 - 0x108]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x138]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x1c]
cmp dword [ebp - 0x110], esi
jbe 0xa6e214d
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x12c]
mov eax, dword [ebp + eax*4 - 0x104]
mov ecx, dword [ebp - 0x130]
add ecx, eax
mov dword [ebp - 0x148], eax
mov eax, dword [ecx + edi - 3]
cmp eax, dword [edi + esi - 3]
jne 0xa6e2132
push dword [ebp - 0x144]
push ecx
push esi
call fcn.0a6d5f24
add esp, 0xc
cmp eax, edi
jbe 0xa6e2132
mov ecx, dword [ebp - 0x118]
mov edi, eax
sub ecx, dword [ebp - 0x148]
add eax, esi
mov edx, dword [ebp - 0x168]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x144]
je 0xa6e2147
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp eax, dword [ebp - 0x110]
jb 0xa6e20dc
mov dword [ebp - 0x134], edi
mov eax, dword [ebp - 0x154]
xor edi, edi
mov edx, dword [ebp - 0x15c]
push 0xf
mov dword [ebp - 0x110], edi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x148], eax
sub eax, ecx
sub dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x140], ecx
movzx ecx, byte [edx + eax]
mov eax, dword [ebp - 0x170]
movsx eax, al
mov dword [ebp - 0x15c], ecx
movd xmm0, eax
mov eax, dword [ebp - 0x164]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [edx + eax]
mov edx, ecx
pop eax
and edx, eax
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
mov ecx, edx
neg ecx
and ecx, eax
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov esi, eax
cmp edx, edi
ja 0xa6e21e4
cmp esi, edi
jbe 0xa6e22ee
cmp dword [ebp - 0x128], edi
jbe 0xa6e224c
test esi, esi
jne 0xa6e21f8
bsf eax, edx
add eax, 0x20
jmp 0xa6e21fb
bsf eax, esi
add eax, dword [ebp - 0x15c]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x178]
mov ecx, dword [ecx + eax*4]
je 0xa6e2236
mov eax, dword [ebp - 0x154]
cmp ecx, dword [eax + 0xc]
jb 0xa6e224c
mov eax, dword [ebp - 0x110]
mov dword [ebp + eax*4 - 0x104], ecx
inc eax
dec dword [ebp - 0x128]
mov dword [ebp - 0x110], eax
mov ecx, esi
mov eax, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edx, eax
ja 0xa6e21e4
jb 0xa6e224c
cmp esi, edi
ja 0xa6e21e4
mov esi, dword [ebp - 0x110]
test esi, esi
je 0xa6e22ee
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + edi*4 - 0x104]
mov eax, dword [ebp - 0x140]
mov eax, dword [edx + eax]
cmp eax, dword [ecx]
jne 0xa6e22e5
push dword [ebp - 0x174]
mov eax, dword [ebp - 0x140]
push dword [ebp - 0x148]
add eax, 4
push dword [ebp - 0x144]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d5f8f
add eax, 4
add esp, 0x14
cmp eax, dword [ebp - 0x134]
jbe 0xa6e22df
mov ecx, dword [ebp - 0x118]
sub ecx, dword [ebp + edi*4 - 0x104]
sub ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x168]
add ecx, 3
mov dword [ebp - 0x134], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x144]
je 0xa6e22ee
jmp 0xa6e22e5
mov ecx, dword [ebp - 0x11c]
inc edi
cmp edi, esi
jb 0xa6e2260
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
call fcn.0a707b89
leave
ret