Function at 0xa6e16b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x164], ecx
xor esi, esi
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x180], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x140], eax
push 6
mov dword [ebp - 0x15c], edi
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x134], ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x138], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x148], ecx
mov ecx, dword [edi + 4]
sub eax, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x170], edx
add edx, ecx
mov ecx, dword [edi + 0xb8]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x188], edx
lea edx, [esi + 1]
mov esi, dword [edi + 0x10]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x144], 3
mov ecx, esi
mov dword [ebp - 0x17c], 0x3f
cmova ecx, eax
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc4]
cmovne ecx, esi
mov dword [ebp - 0x168], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x158], eax
xor esi, esi
mov eax, dword [edi + 0x54]
inc esi
mov dword [ebp - 0x18c], eax
mov eax, dword [edi + 0xb4]
shl esi, cl
mov dword [ebp - 0x16c], eax
mov edi, dword [ebp - 0x16c]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x160], esi
mov esi, dword [eax + 0x5c]
mov eax, dword [ebp - 0x140]
pop ecx
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x15c]
imul eax, dword [eax], 0x9e3779b1
mov dword [ebp - 8], eax
shr eax, cl
mov dword [ebp - 0x178], eax
shr eax, 2
and eax, 0x3fffffc0
cmp dword [edi + 0xdc], 0
lea ecx, [eax + edx]
lea eax, [esi + eax*4]
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x18c], eax
jne 0xa6e1a5b
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x13c]
sub eax, edx
mov dword [ebp - 0x128], edx
cmp eax, 0x180
jbe 0xa6e195a
lea eax, [edx + 0x60]
mov dword [ebp - 0x12c], eax
cmp edx, eax
jae 0xa6e18c1
push 0x18
pop ecx
sub ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x130]
mov dword [ebp - 8], eax
push 0x3f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x128]
imul eax, dword [esi + eax + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x134]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x138]
shr eax, 2
and eax, 0x3fffffc0
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 - 0x17c]
add ecx, eax
mov eax, dword [ebp - 0x150]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x128], edx
cmp edx, dword [ebp - 0x12c]
jb 0xa6e1830
mov ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, dword [ebp - 0x130]
add edx, 0xffffffe0
and dword [ebp - 0x14c], 0
mov esi, ecx
sub esi, dword [ebp - 0x130]
add eax, edx
sub esi, edx
mov dword [ebp - 0x128], edx
inc esi
mov dword [ebp - 0x12c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x14c]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa6e195a
push 0x18
pop eax
sub eax, dword [edi + 0x24]
mov ecx, edx
mov dword [ebp - 0x14c], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x130]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x14c]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x12c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x12c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa6e191c
mov edx, dword [ebp - 0x128]
mov eax, dword [edi + 0x28]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x12c], esi
cmp edx, eax
jae 0xa6e1a1f
push 0x18
pop ecx
sub ecx, dword [edi + 0x24]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
push 0x3f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x128]
imul eax, dword [esi + eax + 8], 0x9e3779b1
mov esi, dword [ebp - 0x12c]
xor eax, dword [edi + 0x50]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x174]
shr eax, 2
and eax, 0x3fffffc0
add edx, eax
lea esi, [esi + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x17c]
add ecx, eax
mov eax, dword [ebp - 0x150]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x13c]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x128], edx
cmp edx, eax
jb 0xa6e198c
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x148]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x140]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x158]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov edx, dword [ebp - 0x150]
jmp 0xa6e1a80
mov edx, dword [ebp - 0x158]
xor edx, dword [ebp - 8]
push 0x18
pop eax
sub eax, dword [ebp - 0x148]
mov ecx, eax
mov eax, dword [ebp - 0x13c]
shr edx, cl
mov dword [ebp - 0x150], edx
mov dword [edi + 0x1c], eax
add dword [edi + 0x58], edx
mov eax, edx
mov ecx, dword [ebp - 0x134]
lea edi, [ebp - 0x14]
mov esi, dword [ebp - 0x138]
shr eax, 2
and eax, 0x3fffffc0
add esi, eax
mov dword [ebp - 0x174], esi
lea ecx, [ecx + eax*4]
movzx eax, byte [esi]
mov dword [ebp - 0x148], eax
movsx eax, dl
mov edx, esi
mov dword [ebp - 0x134], ecx
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x158], ecx
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
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, 4
jl 0xa6e1ae0
mov eax, dword [ebp - 8]
cdq
mov esi, dword [ebp - 0x148]
mov edi, eax
mov eax, dword [ebp - 0xc]
mov ecx, edx
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [ebp - 0x10]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [ebp - 0x14]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
push 0x3f
pop eax
and esi, eax
mov ecx, esi
neg ecx
and ecx, eax
mov eax, edi
call fcn.0a707300
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x128], edx
mov eax, edi
mov edx, dword [ebp - 0x138]
call fcn.0a707320
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x128]
or edi, eax
or ecx, edx
mov dword [ebp - 0x128], ecx
ja 0xa6e1b86
xor esi, esi
cmp edi, esi
jbe 0xa6e1bfc
jmp 0xa6e1b88
xor esi, esi
mov edx, dword [ebp - 0x160]
test edx, edx
je 0xa6e1bfc
test edi, edi
jne 0xa6e1b9e
bsf eax, ecx
add eax, 0x20
jmp 0xa6e1ba1
bsf eax, edi
add eax, dword [ebp - 0x148]
push 0x3f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x134]
mov ecx, dword [ecx + eax*4]
je 0xa6e1bda
cmp ecx, dword [ebp - 0x168]
jb 0xa6e1bfc
mov eax, dword [ebp - 0x12c]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec edx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x160], edx
mov edx, dword [ebp - 0x128]
mov ecx, edi
add ecx, 0xffffffff
adc edx, 0xffffffff
and edi, ecx
mov ecx, dword [ebp - 0x128]
and ecx, edx
mov dword [ebp - 0x128], ecx
ja 0xa6e1b88
jae 0xa6e1b80
mov ecx, dword [ebp - 0x148]
mov edi, dword [ebp - 0x134]
dec ecx
push 0x3f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x174]
add ecx, eax
mov eax, dword [ebp - 0x150]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x1c]
mov dword [edi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x12c], 0
jbe 0xa6e1cc5
mov edi, dword [ebp - 0x140]
mov eax, esi
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp + eax*4 - 0x124]
mov ecx, dword [ebp - 0x130]
add ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + edx - 3]
cmp eax, dword [edx + edi - 3]
jne 0xa6e1cb0
push dword [ebp - 0x164]
push ecx
push edi
call fcn.0a6d4be4
mov edx, dword [ebp - 0x144]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa6e1cb0
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x180]
add eax, 3
mov dword [ebp - 0x144], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
mov edx, ecx
cmp eax, dword [ebp - 0x164]
je 0xa6e1cc5
mov eax, dword [ebp - 0x158]
inc eax
mov dword [ebp - 0x158], eax
cmp eax, dword [ebp - 0x12c]
jb 0xa6e1c51
mov eax, dword [ebp - 0x16c]
lea edi, [ebp - 0x24]
mov dword [ebp - 0x150], esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
sub eax, ecx
sub dword [ebp - 0x170], eax
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebp - 0x184]
movzx eax, byte [ecx]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x178]
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
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [ebp + esi*4 - 0x24], eax
inc esi
cmp esi, 4
jl 0xa6e1d19
mov eax, dword [ebp - 0x18]
cdq
mov esi, dword [ebp - 0x138]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov ecx, edx
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [ebp - 0x20]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [ebp - 0x24]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
push 0x3f
pop eax
and esi, eax
mov ecx, esi
neg ecx
and ecx, eax
mov eax, edi
call fcn.0a707300
mov dword [ebp - 0x178], eax
mov ecx, esi
mov dword [ebp - 0x130], edx
mov eax, edi
mov edx, dword [ebp - 0x15c]
call fcn.0a707320
mov edi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x130]
or edi, eax
or ecx, edx
mov dword [ebp - 0x130], ecx
ja 0xa6e1dc9
xor esi, esi
cmp edi, esi
jbe 0xa6e1ee6
jmp 0xa6e1dcb
xor esi, esi
mov edx, dword [ebp - 0x160]
test edx, edx
je 0xa6e1e46
test edi, edi
jne 0xa6e1de1
bsf eax, ecx
add eax, 0x20
jmp 0xa6e1de4
bsf eax, edi
add eax, dword [ebp - 0x138]
push 0x3f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + eax*4]
je 0xa6e1e20
mov eax, dword [ebp - 0x16c]
cmp ecx, dword [eax + 0xc]
jb 0xa6e1e46
mov eax, dword [ebp - 0x150]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec edx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x160], edx
mov edx, dword [ebp - 0x130]
mov ecx, edi
add ecx, 0xffffffff
adc edx, 0xffffffff
and edi, ecx
mov ecx, dword [ebp - 0x130]
and ecx, edx
mov dword [ebp - 0x130], ecx
ja 0xa6e1dcb
jb 0xa6e1e46
cmp edi, esi
ja 0xa6e1dcb
mov edi, dword [ebp - 0x150]
test edi, edi
je 0xa6e1ee6
mov edx, dword [ebp - 0x140]
mov ecx, dword [ebp + esi*4 - 0x124]
mov eax, dword [ebp - 0x134]
mov eax, dword [ecx + eax]
cmp eax, dword [edx]
jne 0xa6e1edd
push dword [ebp - 0x188]
mov eax, dword [ebp - 0x134]
push dword [ebp - 8]
add eax, 4
push dword [ebp - 0x164]
add eax, ecx
push eax
lea eax, [edx + 4]
push eax
call fcn.0a6d4c4f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x144]
jbe 0xa6e1ed7
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp + esi*4 - 0x124]
sub eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x180]
add eax, 3
mov dword [ebp - 0x144], ecx
mov dword [edx], eax
mov edx, dword [ebp - 0x140]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x164]
je 0xa6e1ee6
jmp 0xa6e1edd
mov edx, dword [ebp - 0x140]
inc esi
cmp esi, edi
jb 0xa6e1e5a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x144]
xor ecx, ebp
pop edi
pop esi
call fcn.0a7068c0
leave
ret