Function at 0xa6dd23b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0xa4151c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x164], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x118], esi
push 4
mov dword [ebp - 0x130], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x144], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x134], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x168], eax
add eax, ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x16c], eax
mov eax, esi
sub eax, ecx
mov esi, dword [edi + 0x10]
xor ecx, ecx
mov dword [ebp - 0x128], eax
inc ecx
mov dword [ebp - 0x124], 3
mov dword [ebp - 0x11c], ecx
mov edx, ecx
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
sub eax, edx
cmp ecx, edx
mov ecx, esi
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
mov dword [ebp - 0x170], edx
cmovne ecx, esi
mov esi, dword [ebp - 0x118]
mov dword [ebp - 0x160], ecx
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x140], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x11c]
shl eax, cl
imul ecx, dword [esi], 0x9e3779b1
mov dword [ebp - 0x148], eax
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], ecx
pop ecx
sub ecx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x154]
mov esi, eax
shr esi, cl
mov ecx, dword [edi + 0xc4]
mov dword [ebp - 0x14c], esi
shl dword [ebp - 0x14c], 2
cmp ecx, 4
jbe 0xa6dd377
add ecx, 0xfffffffc
shl dword [ebp - 0x11c], cl
jmp 0xa6dd37d
mov dword [ebp - 0x11c], edx
mov esi, dword [ebp - 0x118]
push 0x18
mov dword [ebp - 0x154], 0xf
pop ecx
cmp dword [edi + 0xdc], edx
jne 0xa6dd632
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x128]
sub eax, edx
mov dword [ebp - 0x10c], edx
cmp eax, 0x180
jbe 0xa6dd52e
lea eax, [edx + 0x60]
mov dword [ebp - 0x120], eax
cmp edx, eax
jae 0xa6dd46f
sub ecx, dword [ebp - 0x134]
mov dword [ebp - 0x108], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x158], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10c]
imul eax, dword [eax + esi + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x12c]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x144]
shr eax, 4
and eax, 0xffffff0
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 - 0x154]
add ecx, eax
mov eax, dword [ebp - 0x110]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x10c]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
cmp edx, dword [ebp - 0x120]
jb 0xa6dd3d5
mov esi, dword [ebp - 0x118]
mov edx, dword [ebp - 0x128]
lea ecx, [esi + 1]
mov edi, dword [ebp - 0x13c]
add edx, 0xffffffe0
mov eax, dword [ebp - 0x13c]
add eax, edx
mov dword [ebp - 0x108], ecx
sub dword [ebp - 0x108], edi
xor edi, edi
sub dword [ebp - 0x108], edx
inc dword [ebp - 0x108]
cmp eax, ecx
mov eax, dword [ebp - 0x108]
cmova eax, edi
mov dword [ebp - 0x10c], edx
mov edi, dword [ebp - 0x130]
push 8
pop ecx
cmp eax, ecx
mov dword [ebp - 0x120], edx
push 0x18
cmova eax, ecx
add eax, edx
mov dword [ebp - 0x108], eax
pop ecx
cmp edx, eax
jae 0xa6dd52e
sub ecx, dword [edi + 0x24]
mov esi, eax
mov dword [ebp - 0x110], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x13c]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x110]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x120]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x120], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa6dd4e4
mov edx, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x118]
push 0x18
pop ecx
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x108], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x128]
cmp edx, eax
jae 0xa6dd5fc
sub ecx, dword [edi + 0x24]
mov dword [ebp - 0x158], ecx
mov eax, dword [edi + 0x54]
and edx, 7
mov esi, dword [ebp - 0x120]
mov dword [ebp - 0x110], eax
push 0xf
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10c]
imul eax, dword [eax + esi + 8], 0x9e3779b1
xor eax, dword [edi + 0x50]
shr eax, cl
mov ecx, dword [ebp - 0x108]
mov dword [edi + edx*4 + 0x2c], eax
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x174]
shr eax, 4
and eax, 0xffffff0
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 - 0x154]
add ecx, eax
mov eax, dword [ebp - 0x110]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x10c], edx
cmp edx, eax
jb 0xa6dd560
mov esi, dword [ebp - 0x118]
mov edx, eax
mov dword [edi + 0x1c], eax
and edx, 7
push 0x18
pop ecx
sub ecx, dword [ebp - 0x134]
mov eax, dword [edi + edx*4 + 0x2c]
mov dword [ebp - 0x108], eax
imul eax, dword [esi + 8], 0x9e3779b1
xor eax, dword [ebp - 0x140]
shr eax, cl
mov dword [edi + edx*4 + 0x2c], eax
mov edx, dword [ebp - 0x108]
jmp 0xa6dd651
mov edx, dword [ebp - 0x140]
sub ecx, dword [ebp - 0x134]
xor edx, eax
mov eax, dword [ebp - 0x128]
shr edx, cl
mov dword [ebp - 0x108], edx
mov dword [edi + 0x1c], eax
add dword [edi + 0x58], edx
mov eax, edx
mov ecx, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x144]
shr eax, 4
and eax, 0xffffff0
add esi, eax
push 0xf
mov dword [ebp - 0x158], esi
lea ecx, [ecx + eax*4]
movzx eax, byte [esi]
mov dword [ebp - 0x120], eax
movsx eax, dl
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x12c], ecx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [esi]
pop eax
and edx, eax
mov dword [ebp - 0x110], ecx
mov ecx, edx
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
neg ecx
and ecx, eax
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov ecx, edx
mov esi, eax
xor edx, edx
mov dword [ebp - 0x134], ecx
cmp ecx, edx
ja 0xa6dd6e9
cmp esi, edx
jbe 0xa6dd760
mov edi, edx
cmp dword [ebp - 0x148], edx
jbe 0xa6dd754
test esi, esi
jne 0xa6dd6ff
bsf eax, ecx
add eax, 0x20
jmp 0xa6dd702
bsf eax, esi
add eax, dword [ebp - 0x120]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ecx + eax*4]
je 0xa6dd72e
cmp eax, dword [ebp - 0x160]
jb 0xa6dd754
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x148]
mov eax, dword [ebp - 0x134]
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
mov ecx, dword [ebp - 0x134]
and ecx, eax
mov dword [ebp - 0x134], ecx
ja 0xa6dd6eb
jb 0xa6dd754
cmp esi, edx
ja 0xa6dd6eb
mov dword [ebp - 0x10c], edi
mov edi, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
push 0xf
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x158]
add ecx, eax
mov eax, dword [ebp - 0x108]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x12c]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x1c]
cmp dword [ebp - 0x10c], 0
jbe 0xa6dd824
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x110]
mov eax, dword [ebp + eax*4 - 0x104]
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa6dd809
push dword [ebp - 0x138]
push ecx
push edi
call fcn.0a6d5f24
add esp, 0xc
cmp eax, esi
jbe 0xa6dd809
mov ecx, dword [ebp - 0x128]
mov esi, eax
sub ecx, dword [ebp - 0x158]
add eax, edi
mov edx, dword [ebp - 0x164]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x138]
je 0xa6dd81e
mov eax, dword [ebp - 0x110]
inc eax
mov dword [ebp - 0x110], eax
cmp eax, dword [ebp - 0x10c]
jb 0xa6dd7b3
mov dword [ebp - 0x124], esi
mov eax, dword [ebp - 0x150]
mov esi, dword [ebp - 0x11c]
add esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x12c], ecx
add eax, dword [ebp - 0x168]
mov dword [ebp - 0x140], eax
push 3
pop eax
cmp esi, eax
mov dword [ebp - 0x11c], edx
cmovb eax, esi
xor ecx, ecx
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x144], ecx
test eax, eax
je 0xa6dd948
mov ecx, dword [ebp - 0x14c]
shl ecx, 2
mov dword [ebp - 0x110], ecx
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x130], eax
test eax, eax
je 0xa6dda4e
mov ecx, dword [ebp - 0x118]
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa6dd921
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x130]
push dword [ebp - 0x12c]
add eax, 4
push dword [ebp - 0x138]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d5f8f
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, edi
jbe 0xa6dd91b
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x130]
sub eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x164]
add eax, 3
mov dword [ebp - 0x124], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x118]
add eax, ecx
cmp eax, dword [ebp - 0x138]
je 0xa6dda50
mov edi, ecx
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x144]
add dword [ebp - 0x110], 4
inc ecx
mov dword [ebp - 0x144], ecx
cmp ecx, dword [ebp - 0x168]
jae 0xa6dd948
mov ecx, dword [ebp - 0x110]
jmp 0xa6dd88a
mov eax, dword [ebp - 0x150]
sub esi, ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x110], eax
shr dword [ebp - 0x110], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa6dda4e
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x118]
shl eax, 2
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x150]
mov edi, dword [ebp - 0x110]
mov eax, dword [eax + 0x64]
mov eax, dword [edi + eax]
mov edi, dword [ebp - 0x124]
mov dword [ebp - 0x130], eax
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa6dda32
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x130]
push dword [ebp - 0x12c]
add eax, 4
push dword [ebp - 0x138]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a6d5f8f
add eax, 4
add esp, 0x14
cmp eax, edi
jbe 0xa6dda26
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x130]
sub ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x164]
add ecx, 3
mov dword [ebp - 0x124], eax
mov edi, dword [ebp - 0x124]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x118]
add eax, ecx
cmp eax, dword [ebp - 0x138]
je 0xa6dda4e
jmp 0xa6dda2c
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x170]
add dword [ebp - 0x110], 4
inc eax
mov dword [ebp - 0x170], eax
cmp eax, esi
jb 0xa6dd995
mov ecx, edi
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a707b89
leave
ret