Function at 0xa54a07d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0xa414d80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x148], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x168], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], esi
push 6
mov dword [ebp - 0x170], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x13c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x140], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x174], eax
add eax, ecx
mov dword [ebp - 0x178], eax
mov eax, esi
mov esi, dword [edi + 0x10]
sub eax, ecx
mov dword [ebp - 0x120], ecx
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
mov dword [ebp - 0x138], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x128], 3
mov ecx, esi
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
mov dword [ebp - 0x17c], edx
cmovne ecx, esi
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x118], ecx
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x144], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x164], eax
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x154], eax
imul eax, dword [esi], 0x9e3779b1
mov esi, dword [ebp - 0x154]
pop ecx
sub ecx, dword [esi + 0xc0]
mov dword [ebp - 8], eax
shr eax, cl
mov ecx, dword [edi + 0xc4]
shl eax, 2
mov dword [ebp - 0x160], eax
cmp ecx, 6
jbe 0xa54a1a7
xor eax, eax
add ecx, 0xfffffffa
inc eax
shl eax, cl
mov dword [ebp - 0x15c], eax
jmp 0xa54a1ad
mov dword [ebp - 0x15c], edx
mov esi, dword [ebp - 0x11c]
push 0x18
mov dword [ebp - 0x158], 0x3f
pop ecx
cmp dword [edi + 0xdc], edx
jne 0xa54a44e
mov eax, dword [ebp - 0x12c]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x138]
sub eax, edx
mov dword [ebp - 0x134], edx
cmp eax, 0x180
jbe 0xa54a357
lea eax, [edx + 0x60]
mov dword [ebp - 0x14c], eax
cmp edx, eax
jae 0xa54a2a4
sub ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x120]
push 0x3f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x134]
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 - 0x140]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp - 0x13c]
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 - 0x124]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x134]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
cmp edx, dword [ebp - 0x14c]
jb 0xa54a211
mov esi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x138]
lea ecx, [esi + 1]
mov eax, dword [edi + 0x24]
add edx, 0xffffffe0
and dword [ebp - 0x130], 0
mov esi, ecx
sub esi, dword [ebp - 0x120]
sub esi, edx
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x120]
add eax, edx
mov dword [ebp - 0x134], edx
inc esi
mov dword [ebp - 0x124], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x130]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa54a34e
push 0x18
pop ecx
sub ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x130], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x120]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x130]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x124]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x124], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa54a307
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x14c], eax
mov esi, dword [ebp - 0x11c]
push 0x18
pop ecx
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x124], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x16c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x138]
cmp edx, eax
jae 0xa54a41e
sub ecx, dword [ebp - 0x14c]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x130]
push 0x3f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x134]
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 - 0x16c]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x14c], 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 - 0x158]
add ecx, eax
mov eax, dword [ebp - 0x14c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x134], edx
cmp edx, eax
jb 0xa54a389
mov esi, dword [ebp - 0x11c]
mov dword [edi + 0x1c], eax
and eax, 7
imul edx, dword [esi + 8], 0x9e3779b1
push 0x18
pop ecx
sub ecx, dword [ebp - 0x12c]
xor edx, dword [ebp - 0x144]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
xor edx, edx
mov dword [ebp - 0x144], ecx
jmp 0xa54a474
mov eax, dword [ebp - 0x144]
xor eax, dword [ebp - 8]
sub ecx, dword [ebp - 0x12c]
shr eax, cl
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x144]
mov dword [edi + 0x1c], eax
mov esi, dword [ebp - 0x13c]
mov eax, ecx
add dword [edi + 0x58], ecx
lea edi, [ebp - 0x14]
shr eax, 2
and eax, 0x3fffffc0
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x14c], edx
lea esi, [esi + eax*4]
mov dword [ebp - 0x13c], esi
mov esi, dword [ebp - 0x140]
add esi, eax
mov dword [ebp - 0x130], esi
movzx eax, byte [esi]
mov dword [ebp - 0x124], eax
movsx eax, cl
mov ecx, esi
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 + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0xa54a4d2
mov eax, dword [ebp - 8]
cdq
mov esi, dword [ebp - 0x124]
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 - 0x140], ecx
mov edx, dword [ebp - 0x140]
push 0x3f
pop eax
and esi, eax
mov ecx, esi
neg ecx
and ecx, eax
mov eax, edi
call fcn.0a574860
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x16c], edx
mov eax, edi
mov edx, dword [ebp - 0x140]
call fcn.0a574920
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x16c]
or esi, eax
or edi, edx
ja 0xa54a56e
test esi, esi
je 0xa54a5d6
mov edx, dword [ebp - 0x124]
cmp dword [ebp - 0x164], 0
jbe 0xa54a5d6
test esi, esi
jne 0xa54a589
bsf eax, edi
add eax, 0x20
jmp 0xa54a58c
bsf eax, esi
push 0x3f
pop ecx
add eax, edx
and eax, ecx
mov ecx, dword [ebp - 0x13c]
mov ecx, dword [ecx + eax*4]
je 0xa54a5c0
cmp ecx, dword [ebp - 0x118]
jb 0xa54a5d6
mov eax, dword [ebp - 0x12c]
mov dword [ebp + eax*4 - 0x114], ecx
inc eax
dec dword [ebp - 0x164]
mov dword [ebp - 0x12c], eax
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0xa54a574
jb 0xa54a5d6
test esi, esi
jne 0xa54a574
mov ecx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x13c]
dec ecx
push 0x3f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x130]
add ecx, eax
mov eax, dword [ebp - 0x144]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x170]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x12c], 0
jbe 0xa54a6a0
mov esi, dword [ebp - 0x128]
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x14c]
mov eax, dword [ebp + eax*4 - 0x114]
mov ecx, dword [ebp - 0x120]
add ecx, eax
mov dword [ebp - 0x170], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa54a685
push dword [ebp - 0x148]
push ecx
push edi
call fcn.0a541d46
add esp, 0xc
cmp eax, esi
jbe 0xa54a685
mov ecx, dword [ebp - 0x138]
mov esi, eax
sub ecx, dword [ebp - 0x170]
add eax, edi
mov edx, dword [ebp - 0x168]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x148]
je 0xa54a69a
mov eax, dword [ebp - 0x14c]
inc eax
mov dword [ebp - 0x14c], eax
cmp eax, dword [ebp - 0x12c]
jb 0xa54a62f
mov dword [ebp - 0x128], esi
mov eax, dword [ebp - 0x154]
mov esi, dword [ebp - 0x15c]
add esi, dword [ebp - 0x164]
mov edi, dword [ebp - 0x128]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x13c], ecx
add eax, dword [ebp - 0x174]
mov dword [ebp - 0x158], eax
push 3
pop eax
cmp esi, eax
mov dword [ebp - 0x120], edx
cmovb eax, esi
xor ecx, ecx
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x140], ecx
test eax, eax
je 0xa54a7c4
mov ecx, dword [ebp - 0x160]
shl ecx, 2
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x15c], eax
test eax, eax
je 0xa54a8ca
mov ecx, dword [ebp - 0x11c]
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa54a79d
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x15c]
push dword [ebp - 0x13c]
add eax, 4
push dword [ebp - 0x148]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a541db1
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, edi
jbe 0xa54a797
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x158]
mov edx, dword [ebp - 0x168]
add eax, 3
mov dword [ebp - 0x128], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x148]
je 0xa54a8cc
mov edi, ecx
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x140]
add dword [ebp - 0x118], 4
inc ecx
mov dword [ebp - 0x140], ecx
cmp ecx, dword [ebp - 0x174]
jae 0xa54a7c4
mov ecx, dword [ebp - 0x118]
jmp 0xa54a706
mov eax, dword [ebp - 0x154]
sub esi, ecx
mov edx, dword [ebp - 0x160]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x118], eax
shr dword [ebp - 0x118], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa54a8ca
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
shl eax, 2
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x154]
mov edi, dword [ebp - 0x118]
mov eax, dword [eax + 0x64]
mov eax, dword [edi + eax]
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x160], eax
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa54a8ae
push dword [ebp - 0x178]
mov eax, dword [ebp - 0x160]
push dword [ebp - 0x13c]
add eax, 4
push dword [ebp - 0x148]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a541db1
add eax, 4
add esp, 0x14
cmp eax, edi
jbe 0xa54a8a2
mov ecx, dword [ebp - 0x138]
sub ecx, dword [ebp - 0x160]
sub ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x168]
add ecx, 3
mov dword [ebp - 0x128], eax
mov edi, dword [ebp - 0x128]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x148]
je 0xa54a8ca
jmp 0xa54a8a8
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x17c]
add dword [ebp - 0x118], 4
inc eax
mov dword [ebp - 0x17c], eax
cmp eax, esi
jb 0xa54a811
mov ecx, edi
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a5744b3
leave
ret