Function at 0x10012fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov edx, ecx
lea eax, [ebx - 1]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov ecx, edi
sar eax, 1
mov esi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp edi, eax
jge 0x10013061
mov ebx, eax
nop
add esi, esi
lea ecx, [esi + 2]
shl ecx, 5
add ecx, edx
lea eax, [ecx - 0x20]
push eax
push ecx
call fcn.1000c290
mov edx, dword [ebp - 4]
movzx eax, al
xor eax, 1
shl edi, 5
inc eax
add edi, edx
add esi, eax
mov ecx, esi
shl ecx, 5
add ecx, edx
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov al, byte [ecx + 0x10]
mov byte [edi + 0x10], al
mov al, byte [ecx + 0x11]
mov byte [edi + 0x11], al
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov al, byte [ecx + 0x18]
mov byte [edi + 0x18], al
mov al, byte [ecx + 0x19]
mov byte [edi + 0x19], al
mov al, byte [ecx + 0x1a]
mov byte [edi + 0x1a], al
mov al, byte [ecx + 0x1b]
mov byte [edi + 0x1b], al
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x1c], eax
mov edi, esi
cmp esi, ebx
jl 0x10012fe0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, eax
jne 0x100130c8
test bl, 1
jne 0x100130c8
shl ebx, 5
shl edi, 5
add edi, edx
mov eax, dword [ebx + edx - 0x20]
mov dword [edi], eax
mov eax, dword [ebx + edx - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebx + edx - 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebx + edx - 0x14]
mov dword [edi + 0xc], eax
mov al, byte [ebx + edx - 0x10]
mov byte [edi + 0x10], al
mov al, byte [ebx + edx - 0xf]
mov byte [edi + 0x11], al
mov eax, dword [ebx + edx - 0xc]
mov dword [edi + 0x14], eax
mov al, byte [ebx + edx - 8]
mov byte [edi + 0x18], al
mov al, byte [ebx + edx - 7]
mov byte [edi + 0x19], al
mov al, byte [ebx + edx - 6]
mov byte [edi + 0x1a], al
mov al, byte [ebx + edx - 5]
mov byte [edi + 0x1b], al
mov eax, dword [ebx + edx - 4]
mov dword [edi + 0x1c], eax
mov edi, dword [ebp - 0x10]
cmp ecx, edi
jge 0x1001313e
nop dword [eax]
push dword [ebp + 0xc]
lea ebx, [edi - 1]
sar ebx, 1
mov esi, ebx
shl esi, 5
add esi, edx
push esi
call fcn.1000c290
mov edx, dword [ebp - 4]
test al, al
je 0x1001313e
mov eax, dword [esi]
shl edi, 5
add edi, edx
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov al, byte [esi + 0x10]
mov byte [edi + 0x10], al
mov al, byte [esi + 0x11]
mov byte [edi + 0x11], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov al, byte [esi + 0x18]
mov byte [edi + 0x18], al
mov al, byte [esi + 0x19]
mov byte [edi + 0x19], al
mov al, byte [esi + 0x1a]
mov byte [edi + 0x1a], al
mov al, byte [esi + 0x1b]
mov byte [edi + 0x1b], al
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov edi, ebx
cmp dword [ebp - 0xc], ebx
jl 0x100130d0
mov ecx, dword [ebp + 0xc]
shl edi, 5
add edi, edx
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov al, byte [ecx + 0x10]
mov byte [edi + 0x10], al
mov al, byte [ecx + 0x11]
mov byte [edi + 0x11], al
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov al, byte [ecx + 0x18]
mov byte [edi + 0x18], al
mov al, byte [ecx + 0x19]
mov byte [edi + 0x19], al
mov al, byte [ecx + 0x1a]
mov byte [edi + 0x1a], al
mov al, byte [ecx + 0x1b]
mov byte [edi + 0x1b], al
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret