Function at 0x100ae3e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0xa24], eax
mov eax, dword [esp + 0xa3c]
mov edx, dword [esp + 0xa48]
push ebx
push ebp
mov ebp, dword [esp + 0xa54]
push esi
mov esi, dword [esp + 0xa50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
push edi
cmp esi, 0x18
jbe 0x100ae437
xor al, al
jmp 0x100aea3d
xor ebx, ebx
lea edi, [ecx + 0xf4]
nop
push eax
mov ecx, edi
call fcn.100ad050
test al, al
je 0x100ae4e2
cmp dword [edi + 0x40], esi
lea ecx, [edi + 0x10]
jne 0x100ae4e2
mov edx, dword [esp + 0x14]
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100ae4db
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100ae465
movups xmm0, xmmword [edi + 0x20]
push ecx
push 0
movups xmmword [esp + 0x150], xmm0
mov edx, 0x20
lea ecx, [esp + 0x150]
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esp + 0x160], xmm0
call fcn.100ad1a0
movups xmm0, xmmword [edi + 0x44]
mov ebx, dword [esp + 0x20]
movups xmm1, xmmword [edi + 0x74]
movups xmmword [esp + 0x130], xmm0
movups xmm0, xmmword [edi + 0x54]
movups xmmword [esp + 0x1c0], xmm1
movups xmmword [esp + 0x140], xmm0
movups xmm0, xmmword [edi + 0x64]
movups xmmword [esp + 0x1b0], xmm0
jmp 0x100ae8e4
mov esi, dword [esp + 0xa54]
inc ebx
add edi, 0x84
cmp ebx, 4
jae 0x100ae4f7
mov eax, dword [esp + 0x1c]
jmp 0x100ae440
mov edi, dword [esp + 0xa48]
lea edx, [esp + 0x230]
mov esi, 0x7ff
cmp word [edi], 0
je 0x100ae607
mov dword [esp + 0x20], 0x3ff
nop dword [eax]
sub esi, 1
js 0x100ae607
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0x80
jae 0x100ae53f
mov byte [edx], cl
inc edx
jmp 0x100ae5fd
cmp ecx, 0x800
jae 0x100ae566
sub esi, 1
js 0x100ae566
mov eax, ecx
and cl, 0x3f
shr eax, 6
or cl, 0x80
or al, 0xc0
mov byte [edx], al
mov byte [edx + 1], cl
add edx, 2
jmp 0x100ae5fd
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x100ae593
movzx ebx, word [edi]
lea eax, [ebx + 0x2400]
cmp ax, word [esp + 0x20]
ja 0x100ae593
shl ecx, 0xa
mov eax, ebx
add ecx, 0xfca02400
add ecx, eax
add edi, 2
cmp ecx, 0x10000
jae 0x100ae5c3
sub esi, 2
js 0x100ae5cb
mov eax, ecx
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, ecx
shr eax, 6
and cl, 0x3f
and al, 0x3f
or cl, 0x80
or al, 0x80
mov byte [edx + 2], cl
mov byte [edx + 1], al
add edx, 3
jmp 0x100ae5fd
cmp ecx, 0x200000
jae 0x100ae5fd
sub esi, 3
js 0x100ae5fd
mov eax, ecx
shr eax, 0x12
or al, 0xf0
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and cl, 0x3f
and al, 0x3f
or cl, 0x80
or al, 0x80
mov byte [edx + 3], cl
mov byte [edx + 2], al
add edx, 4
cmp word [edi], 0
jne 0x100ae520
lea edi, [esp + 0x230]
mov byte [edx], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100ae614
mov eax, dword [esp + 0x14]
sub edi, ecx
push 0
push 0
push 0
movups xmm0, xmmword [eax]
push 0
lea eax, [esp + 0x178]
mov dword [esp + 0x208], 0x1000000
push eax
lea eax, [esp + 0x1fc]
mov edx, edi
push 0x14
push eax
lea ecx, [esp + 0x24c]
movups xmmword [esp + 0x204], xmm0
call fcn.100aded0
mov ecx, dword [esp + 0xa70]
mov eax, 1
movups xmm0, xmmword [esp + 0x184]
shl eax, cl
add esp, 0x1c
movups xmm1, xmmword [esp + 0x178]
dec eax
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], eax
xor ebx, ebx
lea eax, [esp + 0x148]
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x108], eax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x10c], eax
lea eax, [esp + 0x128]
movups xmmword [esp + 0x188], xmm0
mov dword [esp + 0x110], eax
movups xmmword [esp + 0x198], xmm1
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
nop dword [eax + eax]
mov esi, dword [esp + ebx + 0x28]
test esi, esi
je 0x100ae78c
nop dword [eax]
lea eax, [esp + 0x12]
mov edx, edi
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x1d8]
push eax
lea eax, [esp + 0x17c]
push 0x20
push eax
lea ecx, [esp + 0x24c]
call fcn.100aded0
movups xmm0, xmmword [esp + 0x1e4]
add esp, 0x1c
xor eax, eax
movups xmmword [esp + 0x168], xmm0
movups xmm0, xmmword [esp + 0x1d8]
movups xmmword [esp + 0x178], xmm0
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x188]
movups xmm1, xmmword [esp + eax + 0x168]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x188], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x100ae750
sub esi, 1
jne 0x100ae6f0
movups xmm1, xmmword [esp + 0x198]
movups xmm0, xmmword [esp + 0x188]
mov eax, dword [esp + ebx + 0x108]
add ebx, 4
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm1
cmp ebx, 0xc
jb 0x100ae6e0
mov ecx, 0x44
lea eax, [esp + 0x1e8]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100ae7b2
mov ecx, 0x20
lea eax, [esp + 0x188]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100ae7d0
mov ecx, 0x20
lea eax, [esp + 0x168]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100ae7e7
mov ecx, 0x20
lea eax, [esp + 0x1c8]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100ae800
mov ecx, 0x800
lea eax, [esp + 0x230]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100ae817
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x304]
lea esi, [ebx + 0xf4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x84
add esi, eax
lea eax, [ecx + 1]
mov dword [ebx + 0x304], eax
mov eax, dword [esp + 0xa54]
mov dword [esi + 0x40], eax
cmp esi, edi
je 0x100ae86c
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, esi
call fcn.100af240
mov al, byte [edi + 0xc]
lea ecx, [esi + 0x20]
mov byte [esi + 0xc], al
mov edx, 0x20
mov eax, dword [esp + 0x14]
push ecx
push 1
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x150]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esp + 0x160]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [esp + 0x130]
movups xmmword [esi + 0x44], xmm0
movups xmm0, xmmword [esp + 0x140]
movups xmmword [esi + 0x54], xmm0
movups xmm0, xmmword [esp + 0x1b0]
movups xmmword [esi + 0x64], xmm0
movups xmm0, xmmword [esp + 0x1c0]
movups xmmword [esi + 0x74], xmm0
call fcn.100ad1a0
movups xmm1, xmmword [esp + 0x1c0]
movups xmm0, xmmword [esp + 0x1b0]
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x100ae8f6
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm1
test ebp, ebp
je 0x100ae972
xor edi, edi
xorps xmm0, xmm0
movq qword [ebp], xmm0
mov esi, 1
lea edx, [edi + 3]
mov al, byte [esp + esi + 0x127]
mov ecx, edi
and ecx, 7
add edi, 4
xor byte [ecx + ebp], al
mov ecx, esi
mov al, byte [esp + esi + 0x128]
and ecx, 7
add esi, 4
xor byte [ecx + ebp], al
lea ecx, [edx - 1]
mov al, byte [esp + edx + 0x127]
and ecx, 7
xor byte [ecx + ebp], al
mov ecx, edx
mov al, byte [esp + edx + 0x128]
and ecx, 7
add edx, 4
xor byte [ecx + ebp], al
cmp esi, 0x21
jb 0x100ae910
mov ecx, 0x20
lea eax, [esp + 0x128]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100ae967
mov edi, dword [esp + 0xa50]
test edi, edi
je 0x100aea23
lea ebp, [esp + 0x108]
xor eax, eax
xor ecx, ecx
lea esi, [ebx + 0x30c]
cpuid
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
cmp dword [esp + 0x108], 1
jl 0x100ae9cd
xor ecx, ecx
mov eax, 1
cpuid
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x110]
shr eax, 0x19
and al, 1
jmp 0x100ae9cf
xor al, al
mov byte [esi], al
xor edx, edx
movups xmm0, xmmword [esp + 0x148]
mov dword [esi + 4], 0xe
movups xmmword [esp + 0x108], xmm0
movups xmm0, xmmword [esp + 0x158]
movups xmmword [esp + 0x118], xmm0
nop word [eax + eax]
mov al, byte [edi + edx]
mov byte [esi + edx + 8], al
inc edx
cmp edx, 0x10
jl 0x100aea00
lea eax, [esp + 0x108]
mov ecx, esi
push eax
call fcn.1010eba0
mov ecx, esi
call fcn.1010ee60
mov ecx, 0x20
lea eax, [esp + 0x148]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x100aea30
mov al, 1
mov ecx, dword [esp + 0xa34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0xa2c
ret 0x20