Function at 0xa52b579
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0xa414bc0]
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]
mov dword [ebp - 0x17c], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x134], eax
push 6
mov dword [ebp - 0x148], edi
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x140], ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x130], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x138], 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 - 0x144], eax
mov dword [ebp - 0x184], 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 - 0x154], 3
mov ecx, esi
mov dword [ebp - 0x158], 0x3f
cmova ecx, eax
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc4]
cmovne ecx, esi
mov dword [ebp - 0x164], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x13c], eax
xor esi, esi
mov eax, dword [edi + 0x54]
inc esi
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 - 0x15c], esi
mov esi, dword [eax + 0x5c]
mov eax, dword [ebp - 0x134]
pop ecx
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x148]
imul eax, dword [eax], 0x9e3779b1
mov dword [ebp - 0x128], 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 - 0x180], ecx
mov dword [ebp - 0x188], eax
jne 0xa52b92b
mov esi, dword [ebp - 0x144]
mov eax, esi
mov edx, dword [edi + 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x12c], edx
cmp eax, 0x180
jbe 0xa52b83a
lea eax, [edx + 0x60]
mov dword [ebp - 0x170], eax
cmp edx, eax
jae 0xa52b795
push 0x18
pop ecx
sub ecx, dword [ebp - 0x138]
mov dword [ebp - 0x14c], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x150]
push 0x3f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x12c]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x130]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x140]
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 - 0x158]
add ecx, eax
mov eax, dword [ebp - 0x128]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x12c]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x12c], edx
cmp edx, dword [ebp - 0x170]
jb 0xa52b702
mov esi, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x134]
lea edx, [esi - 0x20]
mov eax, dword [edi + 0x24]
inc ecx
mov dword [ebp - 0x14c], eax
mov esi, ecx
sub esi, dword [ebp - 0x150]
xor edi, edi
mov eax, dword [ebp - 0x150]
sub esi, edx
add eax, edx
mov dword [ebp - 0x12c], edx
inc esi
mov dword [ebp - 0x128], edx
cmp eax, ecx
push 8
cmova esi, edi
mov edi, dword [ebp - 0x148]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa52b831
push 0x18
pop eax
sub eax, dword [ebp - 0x14c]
mov ecx, edx
mov dword [ebp - 0x14c], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x150]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x14c]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x128]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x128], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa52b7f3
mov edx, dword [ebp - 0x12c]
mov ecx, dword [edi + 0x24]
mov esi, dword [ebp - 0x144]
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x128], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14c], eax
cmp edx, esi
jae 0xa52b8f1
push 0x18
pop eax
sub eax, ecx
mov dword [ebp - 0x170], eax
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14c]
push 0x3f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x12c]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x174]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x128]
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 - 0x158]
add ecx, eax
mov eax, dword [ebp - 8]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x12c]
mov dword [esi + ecx*4], edx
inc edx
mov esi, dword [ebp - 0x144]
mov dword [ebp - 0x12c], edx
cmp edx, esi
jb 0xa52b868
mov eax, dword [ebp - 0x134]
mov dword [edi + 0x1c], esi
push 0x18
imul edx, dword [eax + 8], 0x9e3779b1
pop eax
sub eax, dword [ebp - 0x138]
mov ecx, eax
mov eax, esi
xor edx, dword [ebp - 0x13c]
shr edx, cl
and eax, 7
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [ebp - 0x128], ecx
jmp 0xa52b953
mov edx, dword [ebp - 0x128]
xor edx, dword [ebp - 0x13c]
push 0x18
pop eax
sub eax, dword [ebp - 0x138]
mov ecx, eax
mov eax, dword [ebp - 0x144]
shr edx, cl
mov dword [ebp - 0x128], edx
mov dword [edi + 0x1c], eax
add dword [edi + 0x58], edx
mov eax, edx
mov ecx, dword [ebp - 0x140]
lea edi, [ebp - 0x14]
mov esi, dword [ebp - 0x130]
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 - 0x158], eax
movsx eax, dl
mov edx, esi
mov dword [ebp - 0x140], ecx
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x13c], 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 0xa52b9b3
mov eax, dword [ebp - 8]
cdq
mov esi, dword [ebp - 0x158]
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 - 0x130], ecx
mov edx, dword [ebp - 0x130]
push 0x3f
pop eax
and esi, eax
mov ecx, esi
neg ecx
and ecx, eax
mov eax, edi
call fcn.0a551610
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x138], edx
mov eax, edi
mov edx, dword [ebp - 0x130]
call fcn.0a5516d0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x138]
or edi, eax
or ecx, edx
mov dword [ebp - 0x138], ecx
ja 0xa52ba59
xor esi, esi
cmp edi, esi
jbe 0xa52bacf
jmp 0xa52ba5b
xor esi, esi
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0xa52bacf
test edi, edi
jne 0xa52ba71
bsf eax, ecx
add eax, 0x20
jmp 0xa52ba74
bsf eax, edi
add eax, dword [ebp - 0x158]
push 0x3f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x140]
mov ecx, dword [ecx + eax*4]
je 0xa52baad
cmp ecx, dword [ebp - 0x164]
jb 0xa52bacf
mov eax, dword [ebp - 0x12c]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec edx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x15c], edx
mov edx, dword [ebp - 0x138]
mov ecx, edi
add ecx, 0xffffffff
adc edx, 0xffffffff
and edi, ecx
mov ecx, dword [ebp - 0x138]
and ecx, edx
mov dword [ebp - 0x138], ecx
ja 0xa52ba5b
jae 0xa52ba53
mov ecx, dword [ebp - 0x158]
mov edi, dword [ebp - 0x140]
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 - 0x128]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x148]
mov eax, dword [edx + 0x1c]
mov dword [edi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x12c], 0
je 0xa52bbbf
mov ecx, dword [ebp - 0x134]
mov eax, esi
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp + eax*4 - 0x124]
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
add eax, dword [ebp - 0x150]
mov eax, dword [eax + edx - 3]
cmp eax, dword [edx + ecx - 3]
jne 0xa52bbaa
push dword [ebp - 0x160]
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x150]
push eax
push ecx
call fcn.0a51e9f5
mov edx, dword [ebp - 0x154]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa52bba4
mov eax, dword [ebp - 0x144]
mov edx, ecx
sub eax, dword [ebp - 0x130]
mov edi, dword [ebp - 0x17c]
add eax, 3
mov dword [ebp - 0x154], edx
mov dword [edi], eax
mov eax, dword [ebp - 0x134]
mov edi, dword [ebp - 0x12c]
add eax, ecx
cmp eax, dword [ebp - 0x160]
je 0xa52bbbf
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x13c]
inc eax
mov dword [ebp - 0x13c], eax
cmp eax, edi
jb 0xa52bb24
mov eax, dword [ebp - 0x168]
lea edi, [ebp - 0x24]
mov dword [ebp - 0x148], esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
sub eax, ecx
sub dword [ebp - 0x16c], eax
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp - 0x180]
movzx eax, byte [ecx]
mov dword [ebp - 0x140], 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 0xa52bc13
mov eax, dword [ebp - 0x18]
cdq
mov esi, dword [ebp - 0x140]
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 - 0x130], ecx
mov edx, dword [ebp - 0x130]
push 0x3f
pop eax
and esi, eax
mov ecx, esi
neg ecx
and ecx, eax
mov eax, edi
call fcn.0a551610
mov dword [ebp - 0x178], eax
mov ecx, esi
mov dword [ebp - 0x128], edx
mov eax, edi
mov edx, dword [ebp - 0x130]
call fcn.0a5516d0
mov edi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x128]
or edi, eax
or ecx, edx
mov dword [ebp - 0x128], ecx
ja 0xa52bcc3
xor esi, esi
cmp edi, esi
jbe 0xa52bde0
jmp 0xa52bcc5
xor esi, esi
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0xa52bd40
test edi, edi
jne 0xa52bcdb
bsf eax, ecx
add eax, 0x20
jmp 0xa52bcde
bsf eax, edi
add eax, dword [ebp - 0x140]
push 0x3f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x188]
mov ecx, dword [ecx + eax*4]
je 0xa52bd1a
mov eax, dword [ebp - 0x168]
cmp ecx, dword [eax + 0xc]
jb 0xa52bd40
mov eax, dword [ebp - 0x148]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x15c], 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 0xa52bcc5
jb 0xa52bd40
cmp edi, esi
ja 0xa52bcc5
mov edi, dword [ebp - 0x148]
test edi, edi
je 0xa52bde0
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebp + esi*4 - 0x124]
mov eax, dword [ebp - 0x13c]
mov eax, dword [ecx + eax]
cmp eax, dword [edx]
jne 0xa52bdd7
push dword [ebp - 0x184]
mov eax, dword [ebp - 0x13c]
push dword [ebp - 8]
add eax, 4
push dword [ebp - 0x160]
add eax, ecx
push eax
lea eax, [edx + 4]
push eax
call fcn.0a51ea60
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x154]
jbe 0xa52bdd1
mov eax, dword [ebp - 0x144]
sub eax, dword [ebp + esi*4 - 0x124]
sub eax, dword [ebp - 0x16c]
mov edx, dword [ebp - 0x17c]
add eax, 3
mov dword [ebp - 0x154], ecx
mov dword [edx], eax
mov edx, dword [ebp - 0x134]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x160]
je 0xa52bde0
jmp 0xa52bdd7
mov edx, dword [ebp - 0x134]
inc esi
cmp esi, edi
jb 0xa52bd54
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
xor ecx, ebp
pop edi
pop esi
call fcn.0a550bf9
leave
ret