Function at 0xa6dce9f
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
push esi
mov esi, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x168], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x138], esi
push 6
mov dword [ebp - 0x160], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x130], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x134], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x144], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x170], eax
add eax, ecx
mov dword [ebp - 0x178], eax
mov eax, esi
mov esi, dword [edi + 0x10]
sub eax, ecx
mov dword [ebp - 0x14c], 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 - 0x12c], 3
mov ecx, esi
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
mov dword [ebp - 0x17c], edx
cmovne ecx, esi
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x118], ecx
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x150], eax
imul eax, dword [esi], 0x9e3779b1
mov esi, dword [ebp - 0x150]
pop ecx
sub ecx, dword [esi + 0xc0]
mov esi, eax
shr esi, cl
mov ecx, dword [edi + 0xc4]
shl esi, 2
mov dword [ebp - 0x15c], esi
cmp ecx, 6
jbe 0xa6dcfc8
xor esi, esi
add ecx, 0xfffffffa
inc esi
shl esi, cl
mov dword [ebp - 0x158], esi
jmp 0xa6dcfce
mov dword [ebp - 0x158], edx
mov esi, dword [ebp - 0x138]
push 0x18
mov dword [ebp - 0x174], 0x3f
pop ecx
cmp dword [edi + 0xdc], edx
jne 0xa6dd255
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x128]
sub eax, edx
mov dword [ebp - 0x11c], edx
cmp eax, 0x180
jbe 0xa6dd155
lea eax, [edx + 0x60]
mov dword [ebp - 0x164], eax
cmp edx, eax
jae 0xa6dd0bd
sub ecx, dword [ebp - 0x144]
mov dword [ebp - 0x124], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x14c]
mov dword [ebp - 8], eax
push 0x3f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x11c]
imul eax, dword [eax + esi + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x130]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x134]
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 - 0x174]
add ecx, eax
mov eax, dword [ebp - 0x13c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x11c]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x11c], edx
cmp edx, dword [ebp - 0x164]
jb 0xa6dd026
mov esi, dword [ebp - 0x138]
mov edx, dword [ebp - 0x128]
lea ecx, [esi + 1]
mov eax, dword [ebp - 0x14c]
add edx, 0xffffffe0
and dword [ebp - 0x124], 0
mov esi, ecx
sub esi, dword [ebp - 0x14c]
add eax, edx
sub esi, edx
mov dword [ebp - 0x11c], edx
inc esi
mov dword [ebp - 0x13c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x124]
pop eax
cmp esi, eax
push 0x18
cmova esi, eax
add esi, edx
pop ecx
cmp edx, esi
jae 0xa6dd155
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x124], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14c]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x124]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x13c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x13c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa6dd114
mov edx, dword [ebp - 0x11c]
push 0x18
pop ecx
mov eax, dword [edi + 0x28]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 0x16c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x164], esi
cmp edx, eax
jae 0xa6dd217
sub ecx, dword [edi + 0x24]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0x13c], eax
push 0x3f
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x11c]
imul eax, dword [eax + esi + 8], 0x9e3779b1
mov esi, dword [ebp - 0x164]
xor eax, dword [edi + 0x50]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x16c]
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 - 0x174]
add ecx, eax
mov eax, dword [ebp - 0x13c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x11c], edx
cmp edx, eax
jb 0xa6dd184
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x144]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x138]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x154]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
xor edx, edx
mov eax, dword [ebp - 0x11c]
jmp 0xa6dd272
sub ecx, dword [ebp - 0x144]
xor eax, dword [ebp - 0x154]
shr eax, cl
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x11c], eax
mov dword [edi + 0x1c], ecx
add dword [edi + 0x58], eax
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x130]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x144], edx
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x154], ecx
mov ecx, dword [ebp - 0x134]
add ecx, eax
mov eax, dword [ebp - 0x11c]
movsx eax, al
mov dword [ebp - 0x124], ecx
movzx esi, byte [ecx]
movd xmm0, eax
xor eax, eax
stosd dword es:[edi], eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
mov dword [ebp - 0x130], esi
stosd dword es:[edi], eax
pshufd xmm1, xmm0, 0
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 + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0xa6dd2d2
mov eax, dword [ebp - 8]
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [ebp - 0xc]
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 - 0x134], ecx
mov edx, dword [ebp - 0x134]
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 - 0x16c], edx
mov eax, edi
mov edx, dword [ebp - 0x134]
call fcn.0a707320
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x16c]
or esi, eax
or edi, edx
ja 0xa6dd368
test esi, esi
je 0xa6dd3d2
mov edx, dword [ebp - 0x130]
cmp dword [ebp - 0x120], 0
jbe 0xa6dd3d8
test esi, esi
jne 0xa6dd383
bsf eax, edi
add eax, 0x20
jmp 0xa6dd386
bsf eax, esi
push 0x3f
pop ecx
add eax, edx
and eax, ecx
mov ecx, dword [ebp - 0x154]
mov ecx, dword [ecx + eax*4]
je 0xa6dd3ba
cmp ecx, dword [ebp - 0x118]
jb 0xa6dd3d8
mov eax, dword [ebp - 0x13c]
mov dword [ebp + eax*4 - 0x114], ecx
inc eax
dec dword [ebp - 0x120]
mov dword [ebp - 0x13c], eax
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0xa6dd36e
jb 0xa6dd3d8
test esi, esi
jne 0xa6dd36e
jmp 0xa6dd3d8
mov edx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x154]
lea ecx, [edx - 1]
mov edi, dword [ebp - 0x138]
push 0x3f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x124]
add ecx, eax
mov eax, dword [ebp - 0x11c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x160]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x13c], 0
jbe 0xa6dd49a
mov esi, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x144]
mov eax, dword [ebp + eax*4 - 0x114]
mov ecx, dword [ebp - 0x14c]
add ecx, eax
mov dword [ebp - 0x160], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa6dd47f
push dword [ebp - 0x148]
push ecx
push edi
call fcn.0a6d4be4
add esp, 0xc
cmp eax, esi
jbe 0xa6dd47f
mov ecx, dword [ebp - 0x128]
mov esi, eax
sub ecx, dword [ebp - 0x160]
add eax, edi
mov edx, dword [ebp - 0x168]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x148]
je 0xa6dd494
mov eax, dword [ebp - 0x144]
inc eax
mov dword [ebp - 0x144], eax
cmp eax, dword [ebp - 0x13c]
jb 0xa6dd429
mov dword [ebp - 0x12c], esi
mov eax, dword [ebp - 0x150]
mov esi, dword [ebp - 0x158]
add esi, dword [ebp - 0x120]
push 3
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x134], edx
add eax, dword [ebp - 0x170]
mov dword [ebp - 0x130], eax
pop eax
cmp esi, eax
mov dword [ebp - 0x120], ecx
cmovb eax, esi
xor edx, edx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x158], edx
test eax, eax
je 0xa6dd5a9
mov edx, dword [ebp - 0x15c]
shl edx, 2
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 0x5c]
mov edx, dword [edx + eax]
mov dword [ebp - 0x170], edx
test edx, edx
je 0xa6dd695
mov eax, dword [edx + ecx]
cmp eax, dword [edi]
jne 0xa6dd582
push dword [ebp - 0x178]
lea eax, [ecx + 4]
push dword [ebp - 0x134]
add eax, edx
push dword [ebp - 0x148]
push eax
lea eax, [edi + 4]
push eax
call fcn.0a6d4c4f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x12c]
jbe 0xa6dd57c
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x170]
sub eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x168]
add eax, 3
mov dword [ebp - 0x12c], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x148]
je 0xa6dd69b
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x158]
add dword [ebp - 0x118], 4
inc edx
mov dword [ebp - 0x158], edx
cmp edx, dword [ebp - 0x160]
jae 0xa6dd5a9
mov edx, dword [ebp - 0x118]
jmp 0xa6dd4fa
mov eax, dword [ebp - 0x150]
sub esi, edx
mov edi, dword [ebp - 0x15c]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edi*4 + 0xc]
mov edi, dword [ebp - 0x138]
mov dword [ebp - 0x118], eax
shr dword [ebp - 0x118], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa6dd695
mov edx, dword [ebp - 0x118]
shl edx, 2
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 0x64]
mov eax, dword [edx + eax]
mov dword [ebp - 0x15c], eax
mov eax, dword [eax + ecx]
cmp eax, dword [edi]
jne 0xa6dd677
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x15c]
push dword [ebp - 0x134]
add eax, 4
push dword [ebp - 0x148]
add eax, ecx
push eax
lea eax, [edi + 4]
push eax
call fcn.0a6d4c4f
add eax, 4
add esp, 0x14
cmp eax, dword [ebp - 0x12c]
jbe 0xa6dd66b
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x15c]
sub ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x168]
add ecx, 3
mov dword [ebp - 0x12c], eax
add eax, edi
mov dword [edx], ecx
cmp eax, dword [ebp - 0x148]
je 0xa6dd695
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x17c]
add edx, 4
inc eax
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x17c], eax
cmp eax, esi
jb 0xa6dd5f0
mov ecx, dword [ebp - 0x12c]
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a7068c0
leave
ret