Function at 0x10012be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aac0d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100d6084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x5c], eax
mov dword [esi + 0x10], 0
jb 0x10012c46
mov eax, dword [esi]
jmp 0x10012c48
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
test edx, edx
je 0x10012e20
mov ebx, dword [edx + 0x4c]
mov eax, 0x12e0be83
mul edi
mov eax, edi
mov byte [ebp - 0x2c], 0
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
dec eax
cmp eax, 2
mov eax, 0xcccccccd
jbe 0x10012d32
mul ebx
movaps xmm0, xmmword [0x100c8fd0]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x100c8320]
mov eax, ebx
mov dword [ebp - 0x30], 0x1a160a40
shr edx, 3
movups xmmword [ebp - 0x40], 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
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012d00
sub esp, 0x18
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10002940
lea eax, [ebp - 0x74]
push eax
call fcn.1000f610
add esp, 0x2c
mov ebx, eax
jmp 0x10012dbd
mul ebx
movaps xmm0, xmmword [0x100c8680]
movups xmmword [ebp - 0x50], xmm0
movaps xmm0, xmmword [0x100c9320]
mov eax, ebx
mov dword [ebp - 0x30], 0x6569753f
shr edx, 3
movups xmmword [ebp - 0x40], 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
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012d90
sub esp, 0x18
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10002940
lea eax, [ebp - 0x74]
push eax
call fcn.1000f610
add esp, 0x2c
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x10012df4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10012dd9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10005d60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x10012e0d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.10002720
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x10012e20
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002400
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10012f2f
mov ebx, dword [eax + 0x48]
test ebx, ebx
je 0x10012f2f
mov eax, 0x12e0be83
mov byte [ebp - 0x2c], 0
mul edi
mov eax, 0xcccccccd
sub edi, edx
shr edi, 1
add edi, edx
mul ebx
mov eax, ebx
shr edi, 0x1d
shr edx, 3
dec edi
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
xor ecx, ecx
push edx
mul ebx
shr edx, 0x16
push edx
cmp edi, 2
jbe 0x10012ebf
movaps xmm0, xmmword [0x100c8c70]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0xc105a
movaps xmm0, xmmword [0x100c8450]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012eb0
jmp 0x10012eed
movaps xmm0, xmmword [0x100c9450]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0x3d312d67
movaps xmm0, xmmword [0x100c88b0]
movups xmmword [ebp - 0x40], xmm0
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x23
jb 0x10012ee0
sub esp, 0x18
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10002940
lea eax, [ebp - 0x74]
push eax
call fcn.1000f610
add esp, 0x2c
lea ecx, [ebp - 0x28]
push eax
call fcn.10007a40
lea ecx, [ebp - 0x74]
call fcn.100022f0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x10012f2f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002400
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10012f44
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10002720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e175
mov esp, ebp
pop ebp
ret