Function at 0xa532984
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0xa414bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x160], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x164], ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
push edi
push 5
mov ecx, dword [esi + 0x5c]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x148], ecx
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x14c], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x118], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
mov dword [ebp - 0x140], ecx
mov ecx, dword [esi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [esi + 0x10]
mov dword [ebp - 0x128], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x13c], esi
mov ecx, edi
mov dword [ebp - 0x150], 3
cmova ecx, eax
mov dword [ebp - 0x138], 0x1f
mov eax, dword [esi + 0xc4]
xor edx, edx
cmp dword [esi + 0x18], edx
cmovne ecx, edi
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x154], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x144], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x158], eax
pop ecx
cmp dword [esi + 0xdc], edx
jne 0xa532cba
mov eax, dword [ebp - 0x128]
mov edi, dword [esi + 0x1c]
sub eax, edi
mov edx, dword [ebp - 0x118]
cmp eax, 0x180
jbe 0xa532bcf
lea eax, [edi + 0x60]
mov dword [ebp - 0x120], eax
cmp edi, eax
jae 0xa532b18
sub ecx, edx
mov dword [ebp - 0x124], ecx
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x140]
push 0x1f
imul edx, dword [edi + eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x14c]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x148]
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 - 0x138]
add ecx, eax
mov eax, dword [ebp - 0x130]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x124]
cmp edi, dword [ebp - 0x120]
jb 0xa532a99
mov ecx, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x128]
inc ecx
mov eax, dword [esi + 0x24]
add edi, 0xffffffe0
and dword [ebp - 0x124], 0
mov edx, ecx
sub edx, dword [ebp - 0x140]
sub edx, edi
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x140]
add eax, edi
mov dword [ebp - 0x15c], edi
inc edx
mov dword [ebp - 0x130], edi
cmp eax, ecx
push 8
cmova edx, dword [ebp - 0x124]
pop eax
cmp edx, eax
cmova edx, eax
add edx, edi
mov dword [ebp - 0x124], edx
cmp edi, edx
jae 0xa532bc9
push 0x18
pop ecx
sub ecx, dword [ebp - 0x120]
mov edi, edx
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x130]
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x140]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x120]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x130]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x130], ecx
mov dword [esi + eax*4 + 0x2c], edx
cmp ecx, edi
jb 0xa532b8b
mov edi, dword [ebp - 0x15c]
mov edx, dword [esi + 0x24]
push 0x18
pop ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x124], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x128]
cmp edi, eax
jae 0xa532c82
sub ecx, edx
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x15c]
push 0x1f
imul edx, dword [edi + eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x120]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x124]
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 - 0x138]
add ecx, eax
mov eax, dword [ebp - 0x130]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x128]
mov dword [esi + ecx*4], edi
inc edi
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 8]
cmp edi, eax
jb 0xa532bfd
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x1c], eax
and eax, 7
push 0x18
imul edx, dword [ecx + 8], 0x9e3779b1
pop ecx
sub ecx, dword [ebp - 0x118]
xor edx, dword [ebp - 0x144]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
xor edx, edx
mov dword [ebp - 0x130], ecx
mov eax, ecx
jmp 0xa532cdd
mov eax, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x118]
imul eax, dword [eax], 0x9e3779b1
mov dword [esi + 0x1c], edi
xor eax, dword [ebp - 0x144]
shr eax, cl
mov dword [ebp - 0x130], eax
add dword [esi + 0x58], eax
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x148]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x118], edx
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x144], ecx
mov al, byte [eax]
mov byte [ebp - 0x119], al
movzx eax, al
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x130]
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 0xa532d47
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x119]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x14]
ror edx, cl
mov ecx, edi
mov dword [ebp - 0x138], edi
cmp edx, edi
jbe 0xa532dfa
mov esi, dword [ebp - 0x118]
cmp dword [ebp - 0x158], edi
jbe 0xa532dee
test edx, edx
jne 0xa532d99
bsf eax, ecx
add eax, 0x20
jmp 0xa532d9c
bsf eax, edx
add eax, dword [ebp - 0x14c]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x144]
mov eax, dword [ecx + eax*4]
je 0xa532dc8
cmp eax, dword [ebp - 0x154]
jb 0xa532dee
mov dword [ebp + esi*4 - 0x114], eax
inc esi
dec dword [ebp - 0x158]
mov eax, dword [ebp - 0x138]
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
mov ecx, dword [ebp - 0x138]
and ecx, eax
mov dword [ebp - 0x138], ecx
ja 0xa532d85
jb 0xa532dee
cmp edx, edi
ja 0xa532d85
mov dword [ebp - 0x118], esi
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x14c]
push 0x1f
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x148]
add ecx, eax
mov eax, dword [ebp - 0x130]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x144]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [ebp - 0x118], edi
je 0xa532ebf
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x140]
add ecx, dword [ebp + edi*4 - 0x114]
mov esi, dword [ebp - 0x12c]
mov eax, dword [ecx + edx - 3]
cmp eax, dword [edx + esi - 3]
mov esi, dword [ebp - 0x118]
jne 0xa532eba
push dword [ebp - 0x160]
push ecx
push dword [ebp - 0x12c]
call fcn.0a51e9f5
mov edx, dword [ebp - 0x150]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa532eba
mov eax, dword [ebp - 0x128]
mov edx, ecx
sub eax, dword [ebp + edi*4 - 0x114]
mov esi, dword [ebp - 0x164]
add eax, 3
mov dword [ebp - 0x150], edx
mov dword [esi], eax
mov eax, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x118]
add eax, ecx
cmp eax, dword [ebp - 0x160]
je 0xa532ebf
inc edi
cmp edi, esi
jb 0xa532e40
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x150]
xor ecx, ebp
pop edi
pop esi
call fcn.0a550bf9
leave
ret