Function at 0x1000ac90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
movzx ebx, byte [eax]
shl ebx, 0x18
inc eax
push edi
mov edi, ecx
movzx ecx, byte [eax]
shl ecx, 0x10
or ebx, ecx
mov dword [ebp - 0x14], eax
inc eax
movzx ecx, byte [eax]
shl ecx, 8
or ebx, ecx
inc eax
movzx ecx, byte [eax]
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
inc eax
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
shl edx, 8
or edx, eax
or ecx, edx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff8
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], edx
js 0x1000adaf
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp - 8], eax
imul eax, eax, 0xfffffff8
add edx, eax
mov dword [ebp + 0xc], edx
movzx eax, byte [esi]
shl eax, 0x18
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
inc esi
movzx eax, byte [esi]
shl eax, 0x18
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
inc esi
call fcn.1000c852
mov eax, dword [ebp - 0x1c]
xor eax, ebx
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
shr edx, 0x10
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 4]
inc edi
mov byte [edi], dl
mov edx, eax
inc edi
shr edx, 8
mov byte [edi], dl
mov ebx, dword [ebp - 0xc]
inc edi
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [ebp - 0x10]
inc edi
mov byte [edi], cl
inc edi
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x1000ad03
mov ecx, eax
cmp dword [ebp + 0xc], 0xfffffff8
je 0x1000ae5f
movzx eax, byte [esi]
shl eax, 0x18
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
mov dword [ebp - 0x1c], eax
inc esi
movzx eax, byte [esi]
shl eax, 0x18
inc esi
movzx ecx, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or ecx, edx
or ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call fcn.1000c852
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 0x1c]
lea edi, [edi + edx + 8]
add edx, 7
xor ecx, ebx
cmp edx, 7
ja case.default.0x1000ae23
jmp dword [edx*4 + 0x1000aea0]
dec edi
mov byte [edi], al
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
shr eax, 0x18
mov byte [edi], al
dec edi
mov byte [edi], cl
dec edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
shr ecx, 0x18
mov byte [edi - 1], cl
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 0x18
mov byte [edx], al
mov eax, dword [ebp - 0x14]
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov byte [eax], bl
inc eax
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
mov edx, ecx
pop edi
shr edx, 8
pop esi
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
leave
ret