Function at 0xa6e0811
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 - 0x114], 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 - 0x118], 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 - 0x110], 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 - 0x114]
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 - 0x108], ecx
mov ecx, esi
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x108]
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 0xa6e0bda
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x110]
sub eax, edx
mov dword [ebp - 0x108], edx
cmp eax, 0x180
jbe 0xa6e0ad2
lea eax, [edx + 0x60]
mov dword [ebp - 0x10c], eax
cmp edx, eax
jae 0xa6e0a33
mov ecx, esi
sub ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], 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 - 0x120], eax
mov eax, dword [ebp - 0x108]
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 - 0x120]
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 - 0x120]
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 - 0x11c]
mov dword [ebp - 0x108], edx
cmp edx, dword [ebp - 0x10c]
jb 0xa6e099f
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
add edx, 0xffffffe0
mov eax, dword [ebp - 0x130]
inc ecx
and dword [ebp - 0x11c], 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 - 0x11c]
pop eax
cmp esi, eax
push 0x18
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa6e0ad1
pop ecx
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x11c], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x130]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x11c]
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 0xa6e0a8e
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 - 0x11c], eax
mov eax, dword [ebp - 0x110]
cmp edx, eax
jae 0xa6e0b9c
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 - 0x11c]
mov dword [ebp - 0x120], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x120], 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 - 0x120]
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 - 0x120]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x108], edx
cmp edx, eax
jb 0xa6e0b06
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x118]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x114]
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 0xa6e0bff
mov eax, dword [ebp - 0x108]
sub esi, dword [ebp - 0x118]
xor eax, dword [ebp - 0x160]
mov ecx, esi
shr eax, cl
mov ecx, dword [ebp - 0x110]
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 - 0x120], 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 - 0x118], ecx
mov edx, eax
cmp ecx, esi
ja 0xa6e0c9f
cmp edx, esi
jbe 0xa6e0d16
mov edi, esi
cmp dword [ebp - 0x128], esi
jbe 0xa6e0d0a
test edx, edx
jne 0xa6e0cb5
bsf eax, ecx
add eax, 0x20
jmp 0xa6e0cb8
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 0xa6e0ce4
cmp eax, dword [ebp - 0x150]
jb 0xa6e0d0a
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x128]
mov eax, dword [ebp - 0x118]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x118]
and ecx, eax
mov dword [ebp - 0x118], ecx
ja 0xa6e0ca1
jb 0xa6e0d0a
cmp edx, esi
ja 0xa6e0ca1
mov dword [ebp - 0x120], 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 - 0x120], esi
jbe 0xa6e0dd9
mov esi, dword [ebp - 0x114]
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 0xa6e0dbe
push dword [ebp - 0x144]
push ecx
push esi
call fcn.0a6d4be4
add esp, 0xc
cmp eax, edi
jbe 0xa6e0dbe
mov ecx, dword [ebp - 0x110]
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 0xa6e0dd3
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp eax, dword [ebp - 0x120]
jb 0xa6e0d68
mov dword [ebp - 0x134], edi
mov eax, dword [ebp - 0x154]
xor edi, edi
mov edx, dword [ebp - 0x15c]
push 0xf
mov dword [ebp - 0x120], 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 0xa6e0e70
cmp esi, edi
jbe 0xa6e0f7a
cmp dword [ebp - 0x128], edi
jbe 0xa6e0ed8
test esi, esi
jne 0xa6e0e84
bsf eax, edx
add eax, 0x20
jmp 0xa6e0e87
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 0xa6e0ec2
mov eax, dword [ebp - 0x154]
cmp ecx, dword [eax + 0xc]
jb 0xa6e0ed8
mov eax, dword [ebp - 0x120]
mov dword [ebp + eax*4 - 0x104], ecx
inc eax
dec dword [ebp - 0x128]
mov dword [ebp - 0x120], eax
mov ecx, esi
mov eax, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edx, eax
ja 0xa6e0e70
jb 0xa6e0ed8
cmp esi, edi
ja 0xa6e0e70
mov esi, dword [ebp - 0x120]
test esi, esi
je 0xa6e0f7a
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + edi*4 - 0x104]
mov eax, dword [ebp - 0x140]
mov eax, dword [edx + eax]
cmp eax, dword [ecx]
jne 0xa6e0f71
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.0a6d4c4f
add eax, 4
add esp, 0x14
cmp eax, dword [ebp - 0x134]
jbe 0xa6e0f6b
mov ecx, dword [ebp - 0x110]
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 - 0x114]
add eax, ecx
cmp eax, dword [ebp - 0x144]
je 0xa6e0f7a
jmp 0xa6e0f71
mov ecx, dword [ebp - 0x114]
inc edi
cmp edi, esi
jb 0xa6e0eec
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
call fcn.0a7068c0
leave
ret