Function at 0xa54e16f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
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 - 0x16c], ecx
xor esi, esi
mov ecx, dword [ebp + 0x14]
inc esi
mov dword [ebp - 0x178], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x130], esi
push 5
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x160], ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x134], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x12c], ecx
mov ecx, dword [edi + 4]
sub eax, ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x174], edx
add edx, ecx
mov ecx, dword [edi + 0xb8]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x188], edx
mov edx, esi
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 - 0x164], edi
mov ecx, esi
mov dword [ebp - 0x144], 3
cmova ecx, eax
mov dword [ebp - 0x158], 0x1f
cmp dword [edi + 0x18], 0
mov eax, dword [edi + 0xc4]
cmovne ecx, esi
mov esi, dword [ebp - 0x130]
mov dword [ebp - 0x14c], 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 - 0x18c], eax
mov eax, dword [edi + 0xb4]
shl esi, cl
mov dword [ebp - 0x170], eax
mov edi, dword [ebp - 0x170]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x130], esi
mov esi, dword [eax + 0x5c]
mov eax, dword [ebp - 0x140]
pop ecx
sub ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x164]
imul eax, dword [eax], 0x9e3779b1
mov dword [ebp - 0x128], eax
shr eax, cl
mov dword [ebp - 0x184], eax
shr eax, 3
and eax, 0x1fffffe0
lea ecx, [eax + edx]
lea eax, [esi + eax*4]
mov dword [ebp - 0x180], ecx
xor esi, esi
mov dword [ebp - 0x18c], eax
cmp dword [edi + 0xdc], esi
jne 0xa54e52e
mov esi, dword [ebp - 0x13c]
mov eax, esi
mov edx, dword [edi + 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], edx
cmp eax, 0x180
jbe 0xa54e43d
lea eax, [edx + 0x60]
mov dword [ebp - 0x168], eax
cmp edx, eax
jae 0xa54e395
push 0x18
pop ecx
sub ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x150], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x154]
push 0x1f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x128]
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 - 0x134]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x160]
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 - 0x148]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x128], edx
cmp edx, dword [ebp - 0x168]
jb 0xa54e302
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, [esi - 0x20]
mov eax, dword [edi + 0x24]
inc ecx
and dword [ebp - 0x150], 0
mov esi, ecx
sub esi, dword [ebp - 0x154]
sub esi, edx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x154]
add eax, edx
mov dword [ebp - 0x128], edx
inc esi
mov dword [ebp - 0x148], edx
cmp eax, ecx
push 8
cmova esi, dword [ebp - 0x150]
pop eax
cmp esi, eax
cmova esi, eax
add esi, edx
cmp edx, esi
jae 0xa54e434
push 0x18
pop eax
sub eax, dword [ebp - 0x168]
mov ecx, edx
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x154]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x150]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x148]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x148], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa54e3f6
mov edx, dword [ebp - 0x128]
mov ecx, dword [edi + 0x24]
mov esi, dword [ebp - 0x13c]
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x148], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x17c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x150], eax
cmp edx, esi
jae 0xa54e4f4
push 0x18
pop eax
sub eax, ecx
mov dword [ebp - 0x168], eax
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x150]
push 0x1f
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x128]
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 - 0x17c]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 8], 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 - 0x158]
add ecx, eax
mov eax, dword [ebp - 8]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x128]
mov dword [esi + ecx*4], edx
inc edx
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x128], edx
cmp edx, esi
jb 0xa54e46b
mov eax, dword [ebp - 0x140]
mov dword [edi + 0x1c], esi
and esi, 7
push 0x18
imul edx, dword [eax + 8], 0x9e3779b1
pop eax
sub eax, dword [ebp - 0x12c]
mov ecx, eax
xor edx, dword [ebp - 0x15c]
shr edx, cl
mov ecx, dword [edi + esi*4 + 0x2c]
mov dword [edi + esi*4 + 0x2c], edx
xor esi, esi
mov dword [ebp - 0x128], ecx
mov edx, ecx
jmp 0xa54e556
mov edx, dword [ebp - 0x128]
xor edx, dword [ebp - 0x15c]
push 0x18
pop eax
sub eax, dword [ebp - 0x12c]
mov ecx, eax
mov eax, dword [ebp - 0x13c]
shr edx, cl
mov dword [ebp - 0x128], edx
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x160]
mov eax, edx
add dword [edi + 0x58], edx
lea edi, [ebp - 0x14]
shr eax, 3
and eax, 0x1fffffe0
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x158], esi
lea ecx, [ecx + eax*4]
add eax, dword [ebp - 0x134]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], ecx
mov ecx, esi
mov al, byte [eax]
mov byte [ebp - 0x135], al
movzx eax, al
mov dword [ebp - 0x134], eax
movsx eax, dl
mov edx, dword [ebp - 0x160]
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, 2
jl 0xa54e5c0
mov edx, dword [ebp - 0x10]
mov edi, esi
mov cl, byte [ebp - 0x135]
shl edx, 0x10
and cl, 0x1f
or edx, dword [ebp - 0x14]
ror edx, cl
jmp 0xa54e652
cmp dword [ebp - 0x130], 0
jbe 0xa54e656
test edx, edx
jne 0xa54e605
bsf eax, edi
add eax, 0x20
jmp 0xa54e608
bsf eax, edx
add eax, dword [ebp - 0x134]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x15c]
mov ecx, dword [ecx + eax*4]
je 0xa54e640
cmp ecx, dword [ebp - 0x14c]
jb 0xa54e656
mov eax, dword [ebp - 0x12c]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
mov ecx, edx
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
and edi, eax
ja 0xa54e5f0
jb 0xa54e656
cmp edx, esi
ja 0xa54e5f0
mov ecx, dword [ebp - 0x134]
mov edi, dword [ebp - 0x15c]
dec ecx
push 0x1f
pop edx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x160]
add ecx, eax
mov eax, dword [ebp - 0x128]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 0x1c]
mov dword [edi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [ebp - 0x12c], 0
jbe 0xa54e71f
mov edi, dword [ebp - 0x140]
mov eax, esi
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp + eax*4 - 0x124]
mov ecx, dword [ebp - 0x154]
add ecx, eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + edx - 3]
cmp eax, dword [edx + edi - 3]
jne 0xa54e70a
push dword [ebp - 0x16c]
push ecx
push edi
call fcn.0a541d46
mov edx, dword [ebp - 0x144]
mov ecx, eax
add esp, 0xc
cmp ecx, edx
jbe 0xa54e70a
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x178]
add eax, 3
mov dword [ebp - 0x144], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
mov edx, ecx
cmp eax, dword [ebp - 0x16c]
je 0xa54e71f
mov eax, dword [ebp - 0x158]
inc eax
mov dword [ebp - 0x158], eax
cmp eax, dword [ebp - 0x12c]
jb 0xa54e6ab
mov eax, dword [ebp - 0x170]
lea edi, [ebp - 0x24]
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x14c], esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
sub eax, ecx
sub dword [ebp - 0x174], eax
movzx eax, byte [edx]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x184]
movsx eax, al
mov dword [ebp - 0x134], ecx
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 [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [ebp + ecx*4 - 0x24], eax
inc ecx
cmp ecx, 2
jl 0xa54e775
mov edx, dword [ebp - 0x20]
mov edi, esi
mov ecx, dword [ebp - 0x164]
shl edx, 0x10
or edx, dword [ebp - 0x24]
push 0x1f
pop eax
and ecx, eax
ror edx, cl
cmp edx, esi
jbe 0xa54e8b6
cmp dword [ebp - 0x130], 0
jbe 0xa54e816
test edx, edx
jne 0xa54e7c2
bsf eax, edi
add eax, 0x20
jmp 0xa54e7c5
bsf eax, edx
add eax, dword [ebp - 0x164]
push 0x1f
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x18c]
mov ecx, dword [ecx + eax*4]
je 0xa54e800
mov eax, dword [ebp - 0x170]
cmp ecx, dword [eax + 0xc]
jb 0xa54e816
mov eax, dword [ebp - 0x14c]
mov dword [ebp + eax*4 - 0x124], ecx
inc eax
dec dword [ebp - 0x130]
mov dword [ebp - 0x14c], eax
mov ecx, edx
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edx, ecx
and edi, eax
ja 0xa54e7ad
jb 0xa54e816
cmp edx, esi
ja 0xa54e7ad
mov edi, dword [ebp - 0x14c]
test edi, edi
je 0xa54e8b6
mov edx, dword [ebp - 0x140]
mov ecx, dword [ebp + esi*4 - 0x124]
mov eax, dword [ebp - 0x134]
mov eax, dword [ecx + eax]
cmp eax, dword [edx]
jne 0xa54e8ad
push dword [ebp - 0x188]
mov eax, dword [ebp - 0x134]
push dword [ebp - 8]
add eax, 4
push dword [ebp - 0x16c]
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 - 0x144]
jbe 0xa54e8a7
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp + esi*4 - 0x124]
sub eax, dword [ebp - 0x174]
mov edx, dword [ebp - 0x178]
add eax, 3
mov dword [ebp - 0x144], ecx
mov dword [edx], eax
mov edx, dword [ebp - 0x140]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x16c]
je 0xa54e8b6
jmp 0xa54e8ad
mov edx, dword [ebp - 0x140]
inc esi
cmp esi, edi
jb 0xa54e82a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x144]
xor ecx, ebp
pop edi
pop esi
call fcn.0a5744b3
leave
ret