Function at 0xa6dda60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x14c], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x16c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x128], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x138], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x13c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x144], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x174], eax
add eax, ecx
mov dword [ebp - 0x178], eax
mov eax, edi
mov edi, dword [esi + 0x10]
sub eax, ecx
mov dword [ebp - 0x154], ecx
mov ecx, dword [esi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [esi + 0x10]
mov dword [ebp - 0x12c], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x118], esi
mov ecx, edi
mov dword [ebp - 0x130], 3
cmova ecx, eax
xor edx, edx
cmp dword [esi + 0x18], edx
mov eax, dword [esi + 0xc4]
cmovne ecx, edi
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x168], ecx
push 5
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x134], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x164], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x158], eax
imul eax, dword [edi], 0x9e3779b1
mov edi, dword [ebp - 0x158]
pop ecx
sub ecx, dword [edi + 0xc0]
mov edi, eax
shr edi, cl
mov ecx, dword [esi + 0xc4]
shl edi, 2
mov dword [ebp - 0x160], edi
cmp ecx, 5
jbe 0xa6ddb83
xor edi, edi
add ecx, 0xfffffffb
inc edi
shl edi, cl
mov dword [ebp - 0x15c], edi
jmp 0xa6ddb89
mov dword [ebp - 0x15c], edx
push 0x18
mov dword [ebp - 0x150], 0x1f
pop ecx
cmp dword [esi + 0xdc], edx
jne 0xa6dddfa
mov eax, dword [ebp - 0x12c]
mov edi, dword [esi + 0x1c]
sub eax, edi
cmp eax, 0x180
jbe 0xa6ddd04
lea eax, [edi + 0x60]
mov dword [ebp - 0x11c], eax
cmp edi, eax
jae 0xa6ddc5c
sub ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
mov eax, dword [esi + 0x54]
mov edx, edi
mov dword [ebp - 8], eax
and edx, 7
push 0x1f
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x154]
imul eax, dword [edi + eax + 8], 0x9e3779b1
xor eax, dword [esi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x138]
mov dword [esi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x13c]
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 - 0x150]
add ecx, eax
mov eax, dword [ebp - 0x120]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x148]
cmp edi, dword [ebp - 0x11c]
jb 0xa6ddbd5
mov edi, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
add edi, 0xffffffe0
and dword [ebp - 0x148], 0
inc ecx
mov eax, dword [ebp - 0x154]
mov edx, ecx
sub edx, dword [ebp - 0x154]
add eax, edi
sub edx, edi
mov dword [ebp - 0x170], edi
inc edx
mov dword [ebp - 0x11c], edi
cmp eax, ecx
push 8
cmova edx, dword [ebp - 0x148]
pop eax
cmp edx, eax
push 0x18
cmova edx, eax
add edx, edi
mov dword [ebp - 0x148], edx
pop ecx
cmp edi, edx
jae 0xa6ddd04
sub ecx, dword [esi + 0x24]
mov edi, edx
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x11c]
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x154]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x120]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x11c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x11c], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0xa6ddcc3
mov edi, dword [ebp - 0x170]
push 0x18
pop ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x11c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x12c]
cmp edi, eax
jae 0xa6dddbc
sub ecx, dword [esi + 0x24]
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x54]
mov edx, edi
mov dword [ebp - 0x120], eax
and edx, 7
push 0x1f
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x170]
imul eax, dword [edi + eax + 8], 0x9e3779b1
xor eax, dword [esi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x148]
mov dword [esi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
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 - 0x150]
add ecx, eax
mov eax, dword [ebp - 0x120]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x12c]
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x118]
mov ecx, dword [ebp - 8]
cmp edi, eax
jb 0xa6ddd33
mov edx, eax
mov dword [esi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x144]
mov eax, dword [esi + edx*4 + 0x2c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x128]
imul eax, dword [eax + 8], 0x9e3779b1
xor eax, dword [ebp - 0x134]
shr eax, cl
mov dword [esi + edx*4 + 0x2c], eax
xor edx, edx
mov eax, dword [ebp - 0x11c]
jmp 0xa6dde17
sub ecx, dword [ebp - 0x144]
xor eax, dword [ebp - 0x134]
shr eax, cl
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x11c], eax
mov dword [esi + 0x1c], ecx
add dword [esi + 0x58], eax
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x138]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x150], edx
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x134], ecx
mov al, byte [eax]
mov byte [ebp - 0x13d], al
movzx eax, al
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x11c]
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
xor edi, edi
mov ecx, edi
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 0xa6dde87
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x13d]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x14]
ror edx, cl
mov ecx, edi
mov dword [ebp - 0x144], edi
cmp edx, edi
jbe 0xa6ddf36
mov esi, edi
cmp dword [ebp - 0x164], edi
jbe 0xa6ddf2a
test edx, edx
jne 0xa6dded5
bsf eax, ecx
add eax, 0x20
jmp 0xa6dded8
bsf eax, edx
add eax, dword [ebp - 0x13c]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x134]
mov eax, dword [ecx + eax*4]
je 0xa6ddf04
cmp eax, dword [ebp - 0x168]
jb 0xa6ddf2a
mov dword [ebp + esi*4 - 0x114], eax
inc esi
dec dword [ebp - 0x164]
mov eax, dword [ebp - 0x144]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x144]
and ecx, eax
mov dword [ebp - 0x144], ecx
ja 0xa6ddec1
jb 0xa6ddf2a
cmp edx, edi
ja 0xa6ddec1
mov dword [ebp - 0x120], esi
mov esi, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x13c]
push 0x1f
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x138]
add ecx, eax
mov eax, dword [ebp - 0x11c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x134]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [ebp - 0x120], edi
jbe 0xa6ddff1
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x150]
mov eax, dword [ebp + eax*4 - 0x114]
mov ecx, dword [ebp - 0x154]
add ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa6ddfd4
push dword [ebp - 0x14c]
push ecx
push edi
call fcn.0a6d5f24
add esp, 0xc
cmp eax, esi
jbe 0xa6ddfd4
mov ecx, dword [ebp - 0x12c]
mov esi, eax
sub ecx, dword [ebp - 8]
add eax, edi
mov edx, dword [ebp - 0x16c]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x14c]
je 0xa6ddfe9
mov eax, dword [ebp - 0x150]
inc eax
mov dword [ebp - 0x150], eax
cmp eax, dword [ebp - 0x120]
jb 0xa6ddf84
mov dword [ebp - 0x130], esi
xor edi, edi
mov eax, dword [ebp - 0x158]
mov esi, dword [ebp - 0x15c]
add esi, dword [ebp - 0x164]
push 3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x138], ecx
add eax, dword [ebp - 0x174]
mov ecx, edi
mov dword [ebp - 0x134], eax
pop eax
cmp esi, eax
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x13c], ecx
cmovb eax, esi
mov dword [ebp - 0x174], eax
test eax, eax
je 0xa6de111
mov ecx, dword [ebp - 0x160]
shl ecx, 2
mov dword [ebp - 0x120], ecx
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x15c], eax
test eax, eax
je 0xa6de1fd
mov ecx, dword [ebp - 0x128]
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa6de0ea
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x15c]
push dword [ebp - 0x138]
add eax, 4
push dword [ebp - 0x14c]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d5f8f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x130]
jbe 0xa6de0e4
mov eax, dword [ebp - 0x12c]
sub eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x16c]
add eax, 3
mov dword [ebp - 0x130], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x128]
add eax, ecx
cmp eax, dword [ebp - 0x14c]
je 0xa6de203
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x13c]
add dword [ebp - 0x120], 4
inc ecx
mov dword [ebp - 0x13c], ecx
cmp ecx, dword [ebp - 0x174]
jae 0xa6de111
mov ecx, dword [ebp - 0x120]
jmp 0xa6de051
mov eax, dword [ebp - 0x158]
sub esi, ecx
mov edx, dword [ebp - 0x160]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov dword [ebp - 0x120], eax
shr dword [ebp - 0x120], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa6de1fd
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x128]
shl eax, 2
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x120]
mov eax, dword [eax + 0x64]
mov eax, dword [edx + eax]
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x160], eax
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa6de1ed
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x160]
add edx, 4
push dword [ebp - 0x138]
add eax, edx
push dword [ebp - 0x14c]
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d5f8f
add eax, 4
add esp, 0x14
cmp eax, dword [ebp - 0x130]
jbe 0xa6de1e7
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x160]
sub ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x16c]
add ecx, 3
mov dword [ebp - 0x130], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x128]
add eax, ecx
cmp eax, dword [ebp - 0x14c]
je 0xa6de1fd
jmp 0xa6de1ed
mov ecx, dword [ebp - 0x128]
add dword [ebp - 0x120], 4
inc edi
cmp edi, esi
jb 0xa6de158
mov ecx, dword [ebp - 0x130]
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a707b89
leave
ret