Function at 0x100103d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
xor eax, eax
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
cmp eax, 1
push esi
push edi
mov edi, ecx
jne 0x100104bd
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp eax, 8
mov dword [esp + 0x1c], ecx
jb 0x10010600
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0xc], eax
jmp 0x10010420
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.10010350
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ecx
push edx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.1000ffd0
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
add esi, 8
mov dword [esp + 0x1c], edx
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 + 0x14], 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 + 0x10], eax
mov byte [esi + 1], cl
shr eax, 0x18
add ebx, 8
sub dword [esp + 0xc], 1
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x10010420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 2
jne 0x10010585
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp eax, 8
mov dword [esp + 0x1c], ecx
jb 0x10010600
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0xc], eax
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.10010350
add esp, 8
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.1000fc50
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
xor eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
xor ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esi, 8
mov dword [esp + 0x1c], edx
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 + 0x14], 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 + 0x10], eax
mov byte [esi + 1], cl
shr eax, 0x18
add ebx, 8
sub dword [esp + 0xc], 1
mov byte [esi], dl
mov byte [esi - 1], al
jne 0x100104f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 8
jb 0x10010600
mov ebx, dword [ebp + 8]
shr eax, 3
lea esi, [ebx - 7]
mov dword [esp + 0xc], eax
lea ebx, [ebx]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.10010350
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.1000ffd0
mov eax, dword [esp + 0x14]
add esi, 8
mov byte [esi + 6], al
mov edx, eax
mov ecx, eax
shr edx, 8
mov byte [esi + 5], dl
shr ecx, 0x10
mov byte [esi + 4], cl
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [esp + 0x10]
mov edx, eax
mov byte [esi + 2], al
mov ecx, eax
shr edx, 8
shr ecx, 0x10
mov byte [esi + 1], dl
shr eax, 0x18
add ebx, 8
sub dword [esp + 0xc], 1
mov byte [esi], cl
mov byte [esi - 1], al
jne 0x100105a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc