Function at 0x10001090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x18
add edx, 4
push esi
push edi
lea esi, [ebp - 0x17]
mov edi, 4
movzx eax, byte [edx - 4]
lea edx, [edx + 1]
mov byte [esi - 1], al
lea esi, [esi + 4]
movzx eax, byte [edx - 1]
mov byte [esi - 4], al
movzx eax, byte [edx + 3]
mov byte [esi - 3], al
movzx eax, byte [edx + 7]
mov byte [esi - 2], al
sub edi, 1
jne 0x100010a6
push ebx
mov ebx, dword [ecx + 4]
mov edi, 4
mov ecx, dword [ebp + 0x10]
mov eax, ebx
shl eax, 4
lea edx, [ecx + 0xc]
lea esi, [ecx + 4]
add edx, eax
add esi, eax
lea ecx, [ebp - 0x17]
nop dword [eax + eax]
movzx eax, byte [esi - 4]
lea esi, [esi + 1]
xor byte [ecx - 1], al
lea edx, [edx + 1]
movzx eax, byte [esi - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 5]
xor byte [ecx - 3], al
movzx eax, byte [edx - 1]
xor byte [ecx - 2], al
sub edi, 1
jne 0x100010f0
lea edi, [ebx - 1]
mov ebx, dword [ebp + 0x10]
cmp edi, 1
jb 0x100011ee
mov eax, edi
lea esi, [ebx + 4]
shl eax, 4
add esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.100014c0
movzx eax, byte [ebp - 0x11]
mov byte [ebp + 0x10], al
movzx eax, byte [ebp - 0x14]
mov byte [ebp + 0x11], al
movzx eax, byte [ebp - 0x13]
mov byte [ebp + 0x12], al
movzx eax, byte [ebp - 0x12]
mov byte [ebp + 0x13], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0xe]
mov byte [ebp + 8], al
movzx eax, byte [ebp - 0xd]
mov byte [ebp + 9], al
movzx eax, byte [ebp - 0x10]
mov byte [ebp + 0xa], al
movzx eax, byte [ebp - 0xf]
mov byte [ebp + 0xb], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0xb]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 3], al
movzx eax, byte [ebp - 9]
mov byte [ebp - 2], al
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 1], al
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movzx ecx, byte [esi + eax - 4]
xor byte [ebp + eax*4 - 0x18], cl
movzx ecx, byte [esi + eax]
xor byte [ebp + eax*4 - 0x17], cl
movzx ecx, byte [esi + eax + 4]
xor byte [ebp + eax*4 - 0x16], cl
movzx ecx, byte [esi + eax + 8]
xor byte [ebp + eax*4 - 0x15], cl
inc eax
cmp eax, 4
jb 0x100011b0
lea eax, [ebp - 0x18]
push eax
call fcn.10001540
sub esi, 0x10
sub edi, 1
jne 0x10001133
lea eax, [ebp - 0x18]
push eax
call fcn.100014c0
movzx eax, byte [ebp - 0x11]
lea edx, [ebx + 4]
mov byte [ebp + 0x10], al
lea ecx, [ebp - 0x17]
movzx eax, byte [ebp - 0x14]
mov esi, 4
mov byte [ebp + 0x11], al
movzx eax, byte [ebp - 0x13]
mov byte [ebp + 0x12], al
movzx eax, byte [ebp - 0x12]
mov byte [ebp + 0x13], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0xe]
mov byte [ebp + 0x10], al
movzx eax, byte [ebp - 0xd]
mov byte [ebp + 0x11], al
movzx eax, byte [ebp - 0x10]
mov byte [ebp + 0x12], al
movzx eax, byte [ebp - 0xf]
mov byte [ebp + 0x13], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0xb]
mov byte [ebp + 0x10], al
movzx eax, byte [ebp - 0xa]
mov byte [ebp + 0x11], al
movzx eax, byte [ebp - 9]
mov byte [ebp + 0x12], al
movzx eax, byte [ebp - 0xc]
mov byte [ebp + 0x13], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
pop ebx
nop dword [eax]
movzx eax, byte [edx - 4]
lea edx, [edx + 1]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 1]
xor byte [ecx - 4], al
movzx eax, byte [edx + 3]
xor byte [ecx - 3], al
movzx eax, byte [edx + 7]
xor byte [ecx - 2], al
sub esi, 1
jne 0x10001270
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x17]
add ecx, 4
mov esi, 4
movzx eax, byte [edx - 1]
lea ecx, [ecx + 1]
mov byte [ecx - 5], al
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
mov byte [ecx - 1], al
movzx eax, byte [edx - 3]
mov byte [ecx + 3], al
movzx eax, byte [edx - 2]
mov byte [ecx + 7], al
sub esi, 1
jne 0x100012a5
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc