Function at 0xa6e2302
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
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 - 0x160], ecx
xor esi, esi
mov ecx, dword [ebp + 0x14]
inc esi
mov dword [ebp - 0x174], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x12c], esi
push 5
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x158], ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x130], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x164], ecx
mov ecx, dword [edi + 4]
sub eax, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x16c], edx
add edx, ecx
mov ecx, dword [edi + 0xb8]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x184], edx
mov edx, esi
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 - 0x15c], edi
mov ecx, esi
mov dword [ebp - 0x140], 3
cmova ecx, eax
mov dword [ebp - 0x170], 0x1f
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc4]
cmovne ecx, esi
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x144], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x188], eax
mov eax, dword [edi + 0xb4]
shl esi, cl
mov dword [ebp - 0x168], eax
mov edi, dword [ebp - 0x168]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x12c], esi
mov esi, dword [eax + 0x5c]
mov eax, dword [ebp - 0x13c]
pop ecx
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x15c]
imul eax, dword [eax], 0x9e3779b1
mov dword [ebp - 0x18], eax
shr eax, cl
mov dword [ebp - 0x180], eax
shr eax, 3
and eax, 0x1fffffe0
lea ecx, [eax + edx]
lea eax, [esi + eax*4]
mov dword [ebp - 0x17c], ecx
xor esi, esi
mov dword [ebp - 0x188], eax
cmp dword [edi + 0xdc], esi
jne 0xa6e2693
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x138]
sub eax, edx
mov dword [ebp - 0x128], edx
cmp eax, 0x180
jbe 0xa6e25a2
lea eax, [edx + 0x60]
mov dword [ebp - 0x148], eax
cmp edx, eax
jae 0xa6e2512
push 0x18
pop ecx
sub ecx, dword [ebp - 0x164]
mov dword [ebp - 0x14c], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x150]
mov dword [ebp - 0x18], eax
push 0x1f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 8], 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 - 0x158]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x130]
shr eax, 3
and eax, 0x1fffffe0
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 - 0x170]
add ecx, eax
mov eax, dword [ebp - 8]
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 - 0x148]
jb 0xa6e248a
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, dword [ebp - 0x150]
add edx, 0xffffffe0
and dword [ebp - 0x14c], 0
mov esi, ecx
sub esi, dword [ebp - 0x150]
add eax, edx
sub esi, edx
mov dword [ebp - 0x128], edx
inc esi
mov dword [ebp - 8], 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 0xa6e25a2
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 - 0x18], eax
mov eax, dword [ebp - 0x150]
imul edx, dword [eax + ecx], 0x9e3779b1
mov ecx, dword [ebp - 0x14c]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 8]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 8], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa6e256a
mov edx, dword [ebp - 0x128]
mov eax, dword [edi + 0x28]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 0x178], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x148], esi
cmp edx, eax
jae 0xa6e265b
push 0x18
pop ecx
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x14c]
mov dword [ebp - 8], eax
push 0x1f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x128]
imul eax, dword [esi + eax + 8], 0x9e3779b1
mov esi, dword [ebp - 0x148]
xor eax, dword [edi + 0x50]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x178]
shr eax, 3
and eax, 0x1fffffe0
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 - 0x170]
add ecx, eax
mov eax, dword [ebp - 8]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x138]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x128], edx
cmp edx, eax
jb 0xa6e25d4
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x164]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x13c]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x154]
shr eax, cl
xor esi, esi
mov dword [edi + edx*4 + 0x2c], eax
mov edx, dword [ebp - 8]
jmp 0xa6e26b5
mov edx, dword [ebp - 0x154]
xor edx, dword [ebp - 0x18]
push 0x18
pop eax
sub eax, dword [ebp - 0x164]
mov ecx, eax
mov eax, dword [ebp - 0x138]
shr edx, cl
mov dword [ebp - 8], edx
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x158]
mov eax, edx
add dword [edi + 0x58], edx
lea edi, [ebp - 0x24]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x148], esi
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x130]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], ecx
mov ecx, esi
mov al, byte [eax]
mov byte [ebp - 0x131], al
movzx eax, al
mov dword [ebp - 0x130], eax
movsx eax, dl
mov edx, dword [ebp - 0x158]
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 - 0x24], eax
inc ecx
cmp ecx, 2
jl 0xa6e271f
mov edx, dword [ebp - 0x20]
mov edi, esi
mov cl, byte [ebp - 0x131]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x24]
ror edx, cl
jmp 0xa6e27b1
cmp dword [ebp - 0x12c], 0
jbe 0xa6e27b5
test edx, edx
jne 0xa6e2764
bsf eax, edi
add eax, 0x20
jmp 0xa6e2767
bsf eax, edx
add eax, dword [ebp - 0x130]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x154]
mov ecx, dword [ecx + eax*4]
je 0xa6e279f
cmp ecx, dword [ebp - 0x144]
jb 0xa6e27b5
mov eax, dword [ebp - 0x128]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec dword [ebp - 0x12c]
mov dword [ebp - 0x128], eax
mov ecx, edx
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
and edi, eax
ja 0xa6e274f
jb 0xa6e27b5
cmp edx, esi
ja 0xa6e274f
mov ecx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x154]
dec ecx
push 0x1f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x158]
add ecx, eax
mov eax, dword [ebp - 8]
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 - 0x128], 0
jbe 0xa6e287b
mov edi, dword [ebp - 0x13c]
mov eax, esi
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp + eax*4 - 0x124]
mov ecx, dword [ebp - 0x150]
add ecx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + edx - 3]
cmp eax, dword [edx + edi - 3]
jne 0xa6e2866
push dword [ebp - 0x160]
push ecx
push edi
call fcn.0a6d5f24
mov edx, dword [ebp - 0x140]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa6e2866
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x174]
add eax, 3
mov dword [ebp - 0x140], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
mov edx, ecx
cmp eax, dword [ebp - 0x160]
je 0xa6e287b
mov eax, dword [ebp - 0x148]
inc eax
mov dword [ebp - 0x148], eax
cmp eax, dword [ebp - 0x128]
jb 0xa6e2807
mov eax, dword [ebp - 0x168]
lea edi, [ebp - 0x14]
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x144], esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
sub eax, ecx
sub dword [ebp - 0x16c], eax
movzx eax, byte [edx]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x180]
movsx eax, al
mov dword [ebp - 0x130], ecx
mov ecx, esi
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, 2
jl 0xa6e28d1
mov edx, dword [ebp - 0x10]
mov edi, esi
mov ecx, dword [ebp - 0x15c]
shl edx, 0x10
or edx, dword [ebp - 0x14]
push 0x1f
pop eax
and ecx, eax
ror edx, cl
cmp edx, esi
jbe 0xa6e2a12
cmp dword [ebp - 0x12c], 0
jbe 0xa6e2972
test edx, edx
jne 0xa6e291e
bsf eax, edi
add eax, 0x20
jmp 0xa6e2921
bsf eax, edx
add eax, dword [ebp - 0x15c]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x188]
mov ecx, dword [ecx + eax*4]
je 0xa6e295c
mov eax, dword [ebp - 0x168]
cmp ecx, dword [eax + 0xc]
jb 0xa6e2972
mov eax, dword [ebp - 0x144]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec dword [ebp - 0x12c]
mov dword [ebp - 0x144], eax
mov ecx, edx
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
and edi, eax
ja 0xa6e2909
jb 0xa6e2972
cmp edx, esi
ja 0xa6e2909
mov edi, dword [ebp - 0x144]
test edi, edi
je 0xa6e2a12
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp + esi*4 - 0x124]
mov eax, dword [ebp - 0x130]
mov eax, dword [ecx + eax]
cmp eax, dword [edx]
jne 0xa6e2a09
push dword [ebp - 0x184]
mov eax, dword [ebp - 0x130]
push dword [ebp - 0x18]
add eax, 4
push dword [ebp - 0x160]
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 - 0x140]
jbe 0xa6e2a03
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp + esi*4 - 0x124]
sub eax, dword [ebp - 0x16c]
mov edx, dword [ebp - 0x174]
add eax, 3
mov dword [ebp - 0x140], ecx
mov dword [edx], eax
mov edx, dword [ebp - 0x13c]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x160]
je 0xa6e2a12
jmp 0xa6e2a09
mov edx, dword [ebp - 0x13c]
inc esi
cmp esi, edi
jb 0xa6e2986
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x140]
xor ecx, ebp
pop edi
pop esi
call fcn.0a707b89
leave
ret