Function at 0xa6dbee9
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]
xor edx, edx
mov dword [ebp - 0x134], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x15c], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x120], esi
push 4
mov dword [ebp - 0x13c], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x138], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x130], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x160], eax
add eax, ecx
mov dword [ebp - 0x16c], eax
mov eax, esi
mov esi, dword [edi + 0x10]
sub eax, ecx
mov dword [ebp - 0x118], 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 - 0x124], 3
mov ecx, esi
cmova ecx, eax
xor eax, eax
cmp dword [edi + 0x18], eax
mov dword [ebp - 0x170], eax
mov eax, dword [edi + 0xc4]
cmovne ecx, esi
mov esi, dword [ebp - 0x120]
mov dword [ebp - 0x158], ecx
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [edi + 0x50]
xor edx, edx
mov dword [ebp - 0x168], eax
mov eax, dword [edi + 0x54]
inc edx
shl edx, cl
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x148], edx
imul edx, dword [esi], 0x9e3779b1
mov dword [ebp - 0x14c], eax
pop ecx
sub ecx, dword [eax + 0xc0]
mov eax, edx
shr eax, cl
mov ecx, dword [edi + 0xc4]
shl eax, 2
mov dword [ebp - 0x144], eax
cmp ecx, 4
jbe 0xa6dc00f
xor eax, eax
add ecx, 0xfffffffc
inc eax
shl eax, cl
mov dword [ebp - 0x140], eax
jmp 0xa6dc016
and dword [ebp - 0x140], 0
cmp dword [edi + 0xdc], 0
mov eax, dword [ebp - 0x128]
push 0x18
mov dword [ebp - 0x164], 0xf
pop ecx
jne 0xa6dc2c6
mov edx, dword [edi + 0x1c]
sub eax, edx
mov dword [ebp - 0x10c], edx
cmp eax, 0x180
jbe 0xa6dc1c2
lea eax, [edx + 0x60]
mov dword [ebp - 0x11c], eax
cmp edx, eax
jae 0xa6dc103
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x108], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x150], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10c]
imul eax, dword [esi + eax + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x12c]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x138]
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 - 0x164]
add ecx, eax
mov eax, dword [ebp - 0x110]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x10c]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
cmp edx, dword [ebp - 0x11c]
jb 0xa6dc069
mov esi, dword [ebp - 0x120]
mov edx, dword [ebp - 0x128]
lea ecx, [esi + 1]
mov edi, dword [ebp - 0x118]
add edx, 0xffffffe0
mov eax, dword [ebp - 0x118]
add eax, edx
mov dword [ebp - 0x108], ecx
sub dword [ebp - 0x108], edi
xor edi, edi
sub dword [ebp - 0x108], edx
inc dword [ebp - 0x108]
cmp eax, ecx
mov eax, dword [ebp - 0x108]
cmova eax, edi
mov dword [ebp - 0x10c], edx
mov edi, dword [ebp - 0x13c]
push 8
pop ecx
cmp eax, ecx
mov dword [ebp - 0x11c], edx
push 0x18
cmova eax, ecx
add eax, edx
mov dword [ebp - 0x108], eax
pop ecx
cmp edx, eax
jae 0xa6dc1c2
sub ecx, dword [edi + 0x24]
mov esi, eax
mov dword [ebp - 0x110], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x118]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x110]
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 0xa6dc178
mov edx, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x120]
push 0x18
pop ecx
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x108], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x128]
cmp edx, eax
jae 0xa6dc290
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x150], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x110], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10c]
imul eax, dword [eax + esi + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x108]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x174]
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 - 0x164]
add ecx, eax
mov eax, dword [ebp - 0x110]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x10c], edx
cmp edx, eax
jb 0xa6dc1f4
mov esi, dword [ebp - 0x120]
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x130]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x108], eax
imul eax, dword [esi + 8], 0x9e3779b1
xor eax, dword [ebp - 0x168]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov edx, dword [ebp - 0x108]
jmp 0xa6dc2dd
xor edx, dword [ebp - 0x168]
sub ecx, dword [ebp - 0x130]
shr edx, cl
mov dword [ebp - 0x108], edx
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x12c]
mov eax, edx
add dword [edi + 0x58], edx
shr eax, 4
and eax, 0xffffff0
push 0xf
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [ebp - 0x138]
add ecx, eax
mov dword [ebp - 0x150], ecx
movzx eax, byte [ecx]
mov dword [ebp - 0x11c], eax
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], eax
movsx eax, dl
mov edx, dword [ebp - 0x11c]
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
movzx eax, ax
cdq
mov ecx, edx
mov esi, eax
xor edx, edx
mov dword [ebp - 0x130], ecx
cmp ecx, edx
ja 0xa6dc375
cmp esi, edx
jbe 0xa6dc3ec
mov edi, edx
cmp dword [ebp - 0x148], edx
jbe 0xa6dc3e0
test esi, esi
jne 0xa6dc38b
bsf eax, ecx
add eax, 0x20
jmp 0xa6dc38e
bsf eax, esi
add eax, dword [ebp - 0x11c]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ecx + eax*4]
je 0xa6dc3ba
cmp eax, dword [ebp - 0x158]
jb 0xa6dc3e0
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x148]
mov eax, dword [ebp - 0x130]
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
mov ecx, dword [ebp - 0x130]
and ecx, eax
mov dword [ebp - 0x130], ecx
ja 0xa6dc377
jb 0xa6dc3e0
cmp esi, edx
ja 0xa6dc377
mov dword [ebp - 0x10c], edi
mov edi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x11c]
push 0xf
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x150]
add ecx, eax
mov eax, dword [ebp - 0x108]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x12c]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x1c]
cmp dword [ebp - 0x10c], 0
jbe 0xa6dc4b0
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x110]
mov eax, dword [ebp + eax*4 - 0x104]
mov ecx, dword [ebp - 0x118]
add ecx, eax
mov dword [ebp - 0x150], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa6dc495
push dword [ebp - 0x134]
push ecx
push edi
call fcn.0a6d4be4
add esp, 0xc
cmp eax, esi
jbe 0xa6dc495
mov ecx, dword [ebp - 0x128]
mov esi, eax
sub ecx, dword [ebp - 0x150]
add eax, edi
mov edx, dword [ebp - 0x15c]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x134]
je 0xa6dc4aa
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp - 0x10c]
jb 0xa6dc43f
mov dword [ebp - 0x124], esi
mov eax, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x140]
add esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x138], ecx
add eax, dword [ebp - 0x160]
mov dword [ebp - 0x12c], eax
push 3
pop eax
cmp esi, eax
mov dword [ebp - 0x118], edx
cmovb eax, esi
xor ecx, ecx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x13c], ecx
test eax, eax
je 0xa6dc5d4
mov ecx, dword [ebp - 0x144]
shl ecx, 2
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x140], eax
test eax, eax
je 0xa6dc6da
mov ecx, dword [ebp - 0x120]
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa6dc5ad
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x140]
push dword [ebp - 0x138]
add eax, 4
push dword [ebp - 0x134]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d4c4f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, edi
jbe 0xa6dc5a7
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x140]
sub eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x15c]
add eax, 3
mov dword [ebp - 0x124], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x120]
add eax, ecx
cmp eax, dword [ebp - 0x134]
je 0xa6dc6dc
mov edi, ecx
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x13c]
add dword [ebp - 0x110], 4
inc ecx
mov dword [ebp - 0x13c], ecx
cmp ecx, dword [ebp - 0x160]
jae 0xa6dc5d4
mov ecx, dword [ebp - 0x110]
jmp 0xa6dc516
mov eax, dword [ebp - 0x14c]
sub esi, ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x110], eax
shr dword [ebp - 0x110], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa6dc6da
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x120]
shl eax, 2
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x110]
mov eax, dword [eax + 0x64]
mov eax, dword [edi + eax]
mov edi, dword [ebp - 0x124]
mov dword [ebp - 0x144], eax
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa6dc6be
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x144]
push dword [ebp - 0x138]
add eax, 4
push dword [ebp - 0x134]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d4c4f
add eax, 4
add esp, 0x14
cmp eax, edi
jbe 0xa6dc6b2
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x144]
sub ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x15c]
add ecx, 3
mov dword [ebp - 0x124], eax
mov edi, dword [ebp - 0x124]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x120]
add eax, ecx
cmp eax, dword [ebp - 0x134]
je 0xa6dc6da
jmp 0xa6dc6b8
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x170]
add dword [ebp - 0x110], 4
inc eax
mov dword [ebp - 0x170], eax
cmp eax, esi
jb 0xa6dc621
mov ecx, edi
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a7068c0
leave
ret