Function at 0x1101cf30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
movzx ecx, byte [eax + 1]
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
shl ecx, 8
cmp dword [ebp + 0x1c], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x1101d118
movzx edx, byte [eax]
movzx ebx, byte [eax + 5]
or edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 3]
shl ecx, 0x18
or edx, ecx
movzx ecx, byte [eax + 4]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 7]
movzx eax, byte [eax + 6]
shl ebx, 8
or ebx, eax
shl ebx, 0x10
or ecx, ebx
mov ebx, dword [ebp + 0x10]
add ebx, 0xfffffff8
mov dword [ebp + 8], ecx
js 0x1101d058
lea eax, [ebx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
neg eax
lea ecx, [ebx + eax*8]
mov dword [ebp + 0x18], ecx
lea esp, [esp]
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx ebx, byte [esi + 5]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 4]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [esi + 6]
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [esi + 7]
xor eax, edx
mov edx, dword [ebp + 0x14]
shl ebx, 0x18
or ecx, ebx
xor ecx, dword [ebp + 8]
push 1
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 8]
push eax
add esi, 8
mov dword [ebp - 4], ecx
call fcn.11084380
mov eax, dword [ebp - 8]
mov byte [edi], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 1], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], cl
mov edx, eax
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 4]
mov byte [edi + 4], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 5], cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp + 8], eax
shr eax, 0x18
mov byte [edi + 6], cl
mov byte [edi + 7], al
add esp, 0xc
add edi, 8
dec dword [ebp + 0x10]
jne 0x1101cfb0
mov ebx, dword [ebp + 0x18]
cmp ebx, 0xfffffff8
je case.default.0x1101d29a
lea esi, [esi + ebx + 8]
add ebx, 7
xor ecx, ecx
xor eax, eax
cmp ebx, 7
ja case.default.0x1101d071
jmp dword [ebx*4 + 0x1101d2e0]
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 0x18
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
or ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 0x10
or eax, ebx
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 8
or eax, ebx
movzx esi, byte [esi - 1]
or eax, esi
xor ecx, dword [ebp + 8]
xor eax, edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x14]
push 1
push ecx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
call fcn.11084380
mov eax, dword [ebp - 8]
mov byte [edi], al
mov ecx, eax
mov edx, eax
shr ecx, 8
mov byte [edi + 1], cl
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 4]
mov byte [edi + 4], al
mov ecx, eax
add esp, 0xc
mov edx, eax
shr ecx, 8
mov byte [edi + 5], cl
shr edx, 0x10
mov byte [edi + 6], dl
shr eax, 0x18
mov byte [edi + 7], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ebx, byte [eax]
movzx edx, byte [eax + 2]
or ebx, ecx
movzx ecx, byte [eax + 3]
shl edx, 0x10
or ebx, edx
movzx edx, byte [eax + 5]
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 4]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 7]
movzx eax, byte [eax + 6]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 0x10]
shl edx, 0x10
or ecx, edx
add eax, 0xfffffff8
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x18], eax
js 0x1101d224
lea ecx, [eax + 8]
shr ecx, 3
mov dword [ebp + 0x10], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [ebp + 0x18], ecx
movzx edx, byte [esi + 1]
movzx ebx, byte [esi]
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
shl edx, 8
or ebx, edx
movzx edx, byte [esi + 5]
shl eax, 0x10
or ebx, eax
movzx eax, byte [esi + 4]
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
mov dword [ebp + 0x1c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push 0
push eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], ebx
add esi, 8
call fcn.11084380
mov eax, dword [ebp + 8]
xor eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor ecx, dword [ebp - 4]
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
shr eax, 8
mov edx, ecx
mov byte [edi + 5], al
mov eax, dword [ebp + 0x1c]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
add esp, 0xc
add edi, 8
dec dword [ebp + 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
jne 0x1101d174
mov eax, dword [ebp + 0x18]
cmp eax, 0xfffffff8
je case.default.0x1101d29a
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl ecx, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 7]
mov dword [ebp - 8], eax
movzx eax, byte [esi + 4]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.11084380
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
xor ebx, dword [ebp - 8]
xor eax, dword [ebp - 4]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x1101d29a
jmp dword [ecx*4 + 0x1101d300]
dec edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], al
dec edi
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret