Function at 0x1000a120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091355
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x100bb084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1000a17a
mov eax, dword [esi]
jmp 0x1000a17c
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x10], 1
mov dword [esi + 0x10], 0
jb 0x1000a19e
mov eax, dword [esi]
jmp 0x1000a1a0
mov eax, esi
mov edi, dword [ebp + 0xc]
mov byte [eax], 0
test edx, edx
je 0x1000a34f
mov ebx, dword [edx + 0x44]
mov eax, 0x12e0be83
mul edi
mov eax, edi
mov byte [ebp - 0x34], 0
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
dec eax
cmp eax, 2
mov eax, 0xcccccccd
jbe 0x1000a26a
mul ebx
movaps xmm0, xmmword [0x100af790]
movups xmmword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x100af3f0]
mov eax, ebx
mov dword [ebp - 0x38], 0xd011d57
shr edx, 3
movups xmmword [ebp - 0x48], xmm0
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, 0x64
push eax
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul ebx
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
push edx
mul ebx
shr edx, 0x16
xor ecx, ecx
push edx
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x23
jb 0x1000a231
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10004e00
lea eax, [ebp - 0x30]
push eax
call fcn.10004670
add esp, 0x2c
mov ebx, eax
mov dword [ebp - 4], 1
jmp 0x1000a2f9
mul ebx
movaps xmm0, xmmword [0x100af5c0]
movups xmmword [ebp - 0x58], xmm0
movaps xmm0, xmmword [0x100afa70]
mov eax, ebx
mov dword [ebp - 0x38], 0x737f6329
shr edx, 3
movups xmmword [ebp - 0x48], xmm0
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, 0x64
push eax
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul ebx
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
push edx
mul ebx
shr edx, 0x16
xor ecx, ecx
push edx
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x23
jb 0x1000a2c5
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10004e00
lea eax, [ebp - 0x30]
push eax
call fcn.10004670
add esp, 0x2c
mov ebx, eax
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x1000a336
cmp dword [esi + 0x14], 0x10
jb 0x1000a311
mov eax, dword [esi + 0x14]
mov ecx, esi
inc eax
push eax
push dword [esi]
call fcn.10004bb0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x1000a329
mov eax, dword [esi]
jmp 0x1000a32b
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.10004580
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x1000a34f
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.10004bb0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1000a458
mov ebx, dword [ebx + 0x40]
test ebx, ebx
je 0x1000a458
mov eax, 0x12e0be83
mov byte [ebp - 0x34], 0
mul edi
mov eax, 0xcccccccd
mov ecx, ebx
sub edi, edx
shr edi, 1
add edi, edx
mul ebx
shr edi, 0x1d
mov eax, edx
dec edi
shr eax, 3
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
xor edx, edx
push ecx
mov ecx, 0x64
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul ebx
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
xor ecx, ecx
push edx
mul ebx
shr edx, 0x16
push edx
cmp edi, 2
jbe 0x1000a3ef
movaps xmm0, xmmword [0x100af880]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x38], 0x1418044e
movaps xmm0, xmmword [0x100af150]
movups xmmword [ebp - 0x48], xmm0
nop
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x23
jb 0x1000a3e0
jmp 0x1000a41d
movaps xmm0, xmmword [str.htatIXPtRSb]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x38], 0x49455913
movaps xmm0, xmmword [0x100af970]
movups xmmword [ebp - 0x48], xmm0
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x23
jb 0x1000a410
sub esp, 0x18
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10004e00
lea eax, [ebp - 0x30]
push eax
call fcn.10004670
add esp, 0x2c
mov ecx, esi
push eax
call fcn.1000a950
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x1000a458
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.10004bb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret