Function at 0x1008dc00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
je 0x1008de10
test al, 7
jne 0x1008de10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jne 0x1008dce2
cmp eax, 8
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov dword [esp + 0x24], ecx
jb 0x1008de02
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr eax, 3
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esi + 7]
push eax
call fcn.1008db80
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
xor ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
add esp, 8
xor eax, ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.1008d460
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esi, 8
mov byte [esi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 4], dl
mov dword [esp + 0x24], ecx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
mov ebx, eax
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
mov byte [esi + 1], cl
mov byte [esi], dl
mov byte [esi - 1], al
dec dword [esp + 0x10]
jne 0x1008dc57
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 2
jne 0x1008dd96
cmp eax, 8
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jb 0x1008de02
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr eax, 3
mov ebx, eax
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.1008d460
lea ecx, [esp + 0x18]
push ecx
lea edx, [esi + 7]
push edx
call fcn.1008db80
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor eax, ecx
mov ecx, dword [esp + 0x24]
xor ecx, edx
add esi, 8
mov byte [esi + 6], cl
mov edx, ecx
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 4], dl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov byte [esi + 1], cl
shr eax, 0x18
add esp, 8
dec ebx
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x1008dd10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jb 0x1008de02
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr eax, 3
mov ebx, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 7]
push ecx
call fcn.1008db80
add esp, 8
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.1008d460
mov eax, dword [esp + 0x1c]
add esi, 8
mov byte [esi + 6], al
mov ecx, eax
mov edx, eax
shr ecx, 8
mov byte [esi + 5], cl
shr edx, 0x10
mov byte [esi + 4], dl
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [esp + 0x18]
mov ecx, eax
mov byte [esi + 2], al
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov byte [esi + 1], cl
shr eax, 0x18
dec ebx
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x1008dda6
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc