Function at 0xa52f3ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0xa414bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x174], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x124], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x150], eax
mov eax, dword [esi + 0x24]
lea edi, [edx + ecx]
mov dword [ebp - 0x118], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x168], eax
add eax, edx
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x124]
sub eax, ecx
mov dword [ebp - 0x140], ecx
mov ecx, dword [esi + 0xb8]
mov dword [ebp - 0x164], edx
xor edx, edx
inc edx
mov dword [ebp - 0x120], eax
shl edx, cl
mov ecx, eax
sub ecx, dword [esi + 0x10]
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x16c], edi
mov edi, dword [esi + 0x10]
mov ecx, edi
cmova ecx, eax
mov dword [ebp - 0x13c], esi
mov eax, dword [esi + 0xc4]
xor edx, edx
cmp dword [esi + 0x18], edx
push 5
cmovne ecx, edi
mov dword [ebp - 0x144], 3
mov edi, dword [ebp - 0x124]
mov dword [ebp - 0x154], ecx
pop ecx
cmp eax, ecx
mov dword [ebp - 0x138], 0x1f
push 0x18
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x148], 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 0xa52f719
mov eax, dword [ebp - 0x120]
mov edi, dword [esi + 0x1c]
sub eax, edi
mov edx, dword [ebp - 0x118]
cmp eax, 0x180
jbe 0xa52f62e
lea eax, [edi + 0x60]
mov dword [ebp - 0x128], eax
cmp edi, eax
jae 0xa52f577
sub ecx, edx
mov dword [ebp - 0x12c], 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 - 0x150]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x14c]
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 - 0x12c]
cmp edi, dword [ebp - 0x128]
jb 0xa52f4f8
mov edi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x124]
add edi, 0xffffffe0
mov eax, dword [esi + 0x24]
inc ecx
and dword [ebp - 0x12c], 0
mov edx, ecx
sub edx, dword [ebp - 0x140]
sub edx, edi
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x140]
add eax, edi
mov dword [ebp - 0x160], edi
inc edx
mov dword [ebp - 0x130], edi
cmp eax, ecx
push 8
cmova edx, dword [ebp - 0x12c]
pop eax
cmp edx, eax
cmova edx, eax
add edx, edi
mov dword [ebp - 0x12c], edx
cmp edi, edx
jae 0xa52f628
push 0x18
pop ecx
sub ecx, dword [ebp - 0x128]
mov edi, edx
mov dword [ebp - 0x128], 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 - 0x128]
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 0xa52f5ea
mov edi, dword [ebp - 0x160]
mov edx, dword [esi + 0x24]
push 0x18
pop ecx
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x12c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x128], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x160], eax
cmp edi, dword [ebp - 0x120]
jae 0xa52f6d9
sub ecx, edx
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x160]
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 - 0x128]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x12c]
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 - 8]
cmp edi, dword [ebp - 0x120]
jb 0xa52f65a
mov eax, dword [ebp - 0x124]
mov edi, dword [ebp - 0x120]
mov dword [esi + 0x1c], edi
push 0x18
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, edi
and eax, 7
pop ecx
sub ecx, dword [ebp - 0x118]
xor edx, dword [ebp - 0x148]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
xor edx, edx
mov dword [ebp - 0x118], ecx
mov eax, ecx
jmp 0xa52f73c
imul eax, dword [edi], 0x9e3779b1
sub ecx, dword [ebp - 0x118]
xor eax, dword [ebp - 0x148]
shr eax, cl
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x118], eax
mov dword [esi + 0x1c], ecx
add dword [esi + 0x58], eax
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x14c]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x130], edx
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x150]
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov al, byte [eax]
mov byte [ebp - 0x119], al
movzx eax, al
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x118]
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 0xa52f7a6
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 0xa52f859
mov esi, dword [ebp - 0x130]
cmp dword [ebp - 0x158], edi
jbe 0xa52f84d
test edx, edx
jne 0xa52f7f8
bsf eax, ecx
add eax, 0x20
jmp 0xa52f7fb
bsf eax, edx
add eax, dword [ebp - 0x150]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x148]
mov eax, dword [ecx + eax*4]
je 0xa52f827
cmp eax, dword [ebp - 0x154]
jb 0xa52f84d
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 0xa52f7e4
jb 0xa52f84d
cmp edx, edi
ja 0xa52f7e4
mov dword [ebp - 0x130], esi
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x150]
push 0x1f
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x14c]
add ecx, eax
mov eax, dword [ebp - 0x118]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x148]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [ebp - 0x130], edi
jbe 0xa52f959
mov esi, dword [ebp + edi*4 - 0x114]
mov ecx, dword [ebp - 0x124]
cmp esi, dword [ebp - 0x164]
jb 0xa52f8e7
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x144]
add edx, esi
mov esi, dword [ebp - 0x144]
mov eax, dword [edx + eax - 3]
cmp eax, dword [esi + ecx - 3]
mov esi, dword [ebp + edi*4 - 0x114]
jne 0xa52f94c
push dword [ebp - 0x15c]
push edx
push ecx
call fcn.0a51e9f5
add esp, 0xc
mov ecx, eax
jmp 0xa52f91b
mov edx, dword [ebp - 0x168]
mov eax, dword [esi + edx]
cmp eax, dword [ecx]
jne 0xa52f94c
push dword [ebp - 0x16c]
lea eax, [edx + 4]
push dword [ebp - 0x170]
add eax, esi
push dword [ebp - 0x15c]
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a51ea60
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x144]
jbe 0xa52f94c
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x174]
sub eax, esi
add eax, 3
mov dword [ebp - 0x144], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x124]
add eax, ecx
cmp eax, dword [ebp - 0x15c]
je 0xa52f959
inc edi
cmp edi, dword [ebp - 0x130]
jb 0xa52f899
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x144]
xor ecx, ebp
pop edi
pop esi
call fcn.0a550bf9
leave
ret