Function at 0xa6e2a26
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 0xa6e2dcf
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x13c]
sub eax, edx
mov dword [ebp - 0x128], edx
cmp eax, 0x180
jbe 0xa6e2cce
lea eax, [edx + 0x60]
mov dword [ebp - 0x12c], eax
cmp edx, eax
jae 0xa6e2c35
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 0xa6e2ba4
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 0xa6e2cce
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 [eax + ecx], 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 0xa6e2c90
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 0xa6e2d93
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 0xa6e2d00
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 0xa6e2df4
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 0xa6e2e54
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.0a7085c0
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x128], edx
mov eax, edi
mov edx, dword [ebp - 0x138]
call fcn.0a7085e0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x128]
or edi, eax
or ecx, edx
mov dword [ebp - 0x128], ecx
ja 0xa6e2efa
xor esi, esi
cmp edi, esi
jbe 0xa6e2f70
jmp 0xa6e2efc
xor esi, esi
mov edx, dword [ebp - 0x160]
test edx, edx
je 0xa6e2f70
test edi, edi
jne 0xa6e2f12
bsf eax, ecx
add eax, 0x20
jmp 0xa6e2f15
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 0xa6e2f4e
cmp ecx, dword [ebp - 0x168]
jb 0xa6e2f70
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 0xa6e2efc
jae 0xa6e2ef4
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 0xa6e3039
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 0xa6e3024
push dword [ebp - 0x164]
push ecx
push edi
call fcn.0a6d5f24
mov edx, dword [ebp - 0x144]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa6e3024
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 0xa6e3039
mov eax, dword [ebp - 0x158]
inc eax
mov dword [ebp - 0x158], eax
cmp eax, dword [ebp - 0x12c]
jb 0xa6e2fc5
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 0xa6e308d
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.0a7085c0
mov dword [ebp - 0x178], eax
mov ecx, esi
mov dword [ebp - 0x130], edx
mov eax, edi
mov edx, dword [ebp - 0x15c]
call fcn.0a7085e0
mov edi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x130]
or edi, eax
or ecx, edx
mov dword [ebp - 0x130], ecx
ja 0xa6e313d
xor esi, esi
cmp edi, esi
jbe 0xa6e325a
jmp 0xa6e313f
xor esi, esi
mov edx, dword [ebp - 0x160]
test edx, edx
je 0xa6e31ba
test edi, edi
jne 0xa6e3155
bsf eax, ecx
add eax, 0x20
jmp 0xa6e3158
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 0xa6e3194
mov eax, dword [ebp - 0x16c]
cmp ecx, dword [eax + 0xc]
jb 0xa6e31ba
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 0xa6e313f
jb 0xa6e31ba
cmp edi, esi
ja 0xa6e313f
mov edi, dword [ebp - 0x150]
test edi, edi
je 0xa6e325a
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 0xa6e3251
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.0a6d5f8f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x144]
jbe 0xa6e324b
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 0xa6e325a
jmp 0xa6e3251
mov edx, dword [ebp - 0x140]
inc esi
cmp esi, edi
jb 0xa6e31ce
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x144]
xor ecx, ebp
pop edi
pop esi
call fcn.0a707b89
leave
ret