Function at 0xa52f96d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0xa414bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x178], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x128], esi
push 6
mov dword [ebp - 0x164], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x138], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x13c], eax
mov eax, dword [edi + 0x24]
lea esi, [edx + ecx]
mov dword [ebp - 0x124], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x16c], eax
add eax, edx
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x128]
sub eax, ecx
mov dword [ebp - 0x130], ecx
mov ecx, dword [edi + 0xb8]
mov dword [ebp - 0x168], edx
xor edx, edx
inc edx
mov dword [ebp - 0x12c], eax
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x170], esi
mov esi, dword [edi + 0x10]
mov ecx, esi
cmova ecx, eax
mov dword [ebp - 0x134], 3
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
mov dword [ebp - 0x160], edx
cmovne ecx, esi
mov dword [ebp - 0x158], 0x3f
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x148], ecx
pop ecx
cmp eax, ecx
push 0x18
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x15c], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x14c], eax
pop ecx
cmp dword [edi + 0xdc], edx
jne 0xa52fcfe
mov eax, dword [ebp - 0x124]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x12c]
sub eax, edx
mov dword [ebp - 0x118], edx
cmp eax, 0x180
jbe 0xa52fc07
lea eax, [edx + 0x60]
mov dword [ebp - 0x140], eax
cmp edx, eax
jae 0xa52fb54
sub ecx, dword [ebp - 0x124]
mov dword [ebp - 0x120], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x130]
push 0x3f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x118]
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 - 0x13c]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x138]
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 - 0x11c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x118]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x118], edx
cmp edx, dword [ebp - 0x140]
jb 0xa52fac1
mov esi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
lea ecx, [esi + 1]
mov eax, dword [edi + 0x24]
add edx, 0xffffffe0
and dword [ebp - 0x120], 0
mov esi, ecx
sub esi, dword [ebp - 0x130]
sub esi, edx
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x130]
add eax, edx
mov dword [ebp - 0x118], edx
inc esi
mov dword [ebp - 0x11c], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x120]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa52fbfe
push 0x18
pop ecx
sub ecx, dword [ebp - 0x140]
mov dword [ebp - 0x120], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x130]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x120]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x11c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x11c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa52fbb7
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x140], eax
mov esi, dword [ebp - 0x128]
push 0x18
pop ecx
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x11c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x12c]
cmp edx, eax
jae 0xa52fcce
sub ecx, dword [ebp - 0x140]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x120]
push 0x3f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x118]
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 - 0x154]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp - 0x11c]
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 - 0x140]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x12c]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x118], edx
cmp edx, eax
jb 0xa52fc39
mov esi, dword [ebp - 0x128]
mov dword [edi + 0x1c], eax
imul edx, dword [esi + 8], 0x9e3779b1
push 0x18
pop ecx
sub ecx, dword [ebp - 0x124]
xor edx, dword [ebp - 0x15c]
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 - 0x124], ecx
jmp 0xa52fd21
imul edx, dword [esi], 0x9e3779b1
sub ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x12c]
mov dword [edi + 0x1c], eax
xor edx, dword [ebp - 0x15c]
shr edx, cl
mov dword [ebp - 0x124], edx
add dword [edi + 0x58], edx
mov eax, edx
mov ecx, dword [ebp - 0x138]
lea edi, [ebp - 0x14]
mov esi, dword [ebp - 0x13c]
shr eax, 2
and eax, 0x3fffffc0
add esi, eax
mov dword [ebp - 0x120], esi
lea ecx, [ecx + eax*4]
movzx eax, byte [esi]
mov dword [ebp - 0x11c], eax
movsx eax, dl
mov edx, esi
mov dword [ebp - 0x138], ecx
xor ecx, ecx
mov dword [ebp - 0x118], 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 0xa52fd7b
mov eax, dword [ebp - 8]
cdq
mov esi, dword [ebp - 0x11c]
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 - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
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 - 0x154], edx
mov eax, edi
mov edx, dword [ebp - 0x13c]
call fcn.0a5516d0
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x154]
or esi, eax
or edi, edx
ja 0xa52fe17
test esi, esi
je 0xa52fe7f
mov edx, dword [ebp - 0x11c]
cmp dword [ebp - 0x14c], 0
jbe 0xa52fe7f
test esi, esi
jne 0xa52fe32
bsf eax, edi
add eax, 0x20
jmp 0xa52fe35
bsf eax, esi
push 0x3f
pop ecx
add eax, edx
and eax, ecx
mov ecx, dword [ebp - 0x138]
mov ecx, dword [ecx + eax*4]
je 0xa52fe69
cmp ecx, dword [ebp - 0x148]
jb 0xa52fe7f
mov eax, dword [ebp - 0x118]
mov dword [ebp + eax*4 - 0x114], ecx
inc eax
dec dword [ebp - 0x14c]
mov dword [ebp - 0x118], eax
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0xa52fe1d
jb 0xa52fe7f
test esi, esi
jne 0xa52fe1d
mov ecx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x138]
dec ecx
push 0x3f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x120]
add ecx, eax
mov eax, dword [ebp - 0x124]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x118], 0
jbe 0xa52ff96
mov edi, dword [ebp - 0x128]
xor eax, eax
mov ecx, dword [ebp - 0x118]
mov esi, dword [ebp + eax*4 - 0x114]
cmp esi, dword [ebp - 0x168]
jb 0xa52ff1b
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x134]
add edx, esi
mov ecx, dword [ebp - 0x134]
mov eax, dword [edx + eax - 3]
cmp eax, dword [ecx + edi - 3]
mov ecx, dword [ebp - 0x118]
jne 0xa52ff81
push dword [ebp - 0x150]
push edx
push edi
call fcn.0a51e9f5
add esp, 0xc
mov ecx, eax
jmp 0xa52ff4f
mov edx, dword [ebp - 0x16c]
mov eax, dword [esi + edx]
cmp eax, dword [edi]
jne 0xa52ff81
push dword [ebp - 0x170]
lea eax, [edx + 4]
push dword [ebp - 0x174]
add eax, esi
push dword [ebp - 0x150]
push eax
lea eax, [edi + 4]
push eax
call fcn.0a51ea60
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x134]
jbe 0xa52ff7b
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x178]
sub eax, esi
add eax, 3
mov dword [ebp - 0x134], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x150]
je 0xa52ff96
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x160]
inc eax
mov dword [ebp - 0x160], eax
cmp eax, ecx
jb 0xa52fed4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
call fcn.0a550bf9
leave
ret