Function at 0xa54e8ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0xa414d80]
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 0xa54ec7c
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 0xa54eb8b
lea eax, [edx + 0x60]
mov dword [ebp - 0x170], eax
cmp edx, eax
jae 0xa54eae6
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 0xa54ea53
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 0xa54eb82
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 0xa54eb44
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 0xa54ec42
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 0xa54ebb9
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 0xa54eca4
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 0xa54ed04
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.0a574860
mov dword [ebp - 8], eax
mov ecx, esi
mov dword [ebp - 0x138], edx
mov eax, edi
mov edx, dword [ebp - 0x130]
call fcn.0a574920
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x138]
or edi, eax
or ecx, edx
mov dword [ebp - 0x138], ecx
ja 0xa54edaa
xor esi, esi
cmp edi, esi
jbe 0xa54ee20
jmp 0xa54edac
xor esi, esi
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0xa54ee20
test edi, edi
jne 0xa54edc2
bsf eax, ecx
add eax, 0x20
jmp 0xa54edc5
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 0xa54edfe
cmp ecx, dword [ebp - 0x164]
jb 0xa54ee20
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 0xa54edac
jae 0xa54eda4
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 0xa54ef10
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 0xa54eefb
push dword [ebp - 0x160]
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x150]
push eax
push ecx
call fcn.0a541d46
mov edx, dword [ebp - 0x154]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa54eef5
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 0xa54ef10
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x13c]
inc eax
mov dword [ebp - 0x13c], eax
cmp eax, edi
jb 0xa54ee75
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 0xa54ef64
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.0a574860
mov dword [ebp - 0x178], eax
mov ecx, esi
mov dword [ebp - 0x128], edx
mov eax, edi
mov edx, dword [ebp - 0x130]
call fcn.0a574920
mov edi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x128]
or edi, eax
or ecx, edx
mov dword [ebp - 0x128], ecx
ja 0xa54f014
xor esi, esi
cmp edi, esi
jbe 0xa54f131
jmp 0xa54f016
xor esi, esi
mov edx, dword [ebp - 0x15c]
test edx, edx
je 0xa54f091
test edi, edi
jne 0xa54f02c
bsf eax, ecx
add eax, 0x20
jmp 0xa54f02f
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 0xa54f06b
mov eax, dword [ebp - 0x168]
cmp ecx, dword [eax + 0xc]
jb 0xa54f091
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 0xa54f016
jb 0xa54f091
cmp edi, esi
ja 0xa54f016
mov edi, dword [ebp - 0x148]
test edi, edi
je 0xa54f131
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 0xa54f128
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.0a541db1
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x154]
jbe 0xa54f122
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 0xa54f131
jmp 0xa54f128
mov edx, dword [ebp - 0x134]
inc esi
cmp esi, edi
jb 0xa54f0a5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
xor ecx, ebp
pop edi
pop esi
call fcn.0a5744b3
leave
ret