Function at 0x1001cda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x15
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0
rep stosd dword es:[edi], eax
mov ecx, 0x2b
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], al
mov ebx, dword [ebp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x16
xor eax, eax
lea edi, [ebp - 0x58]
cmp ebx, 0x3a
rep stosd dword es:[edi], eax
ja 0x1001cfa9
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001cfa9
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1001cfa9
cmp dword [ebp + 0x20], 0x50
jb 0x1001cfa9
push esi
jmp 0x1001ce30
test ebx, ebx
lea esi, [ebp - 0x158]
je 0x1001ce3d
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x4a]
push 2
push eax
mov byte [ebp - 0x50], 7
call fcn.1001b970
mov cl, byte [ebp + 8]
mov dl, byte [ebp + 0xc]
mov al, byte [esi]
mov byte [ebp - 0x48], cl
mov cl, byte [esi + 1]
mov byte [ebp - 0x47], dl
mov dl, byte [esi + 2]
mov byte [ebp - 0x45], cl
mov byte [ebp - 0x46], al
mov al, byte [esi + 3]
lea ecx, [ebp - 0x42]
push 2
push ecx
mov byte [ebp - 0x44], dl
mov byte [ebp - 0x43], al
call fcn.1001b970
cmp ebx, 4
jbe 0x1001cea9
lea ecx, [ebx - 4]
add esi, 4
mov edx, ecx
lea edi, [ebp - 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, 0x39
mov ecx, edx
sub eax, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x1001ceb4
push eax
lea eax, [ebp + ebx - 0x44]
push eax
jmp 0x1001ceaf
lea ecx, [ebp - 0x40]
push 0x35
push ecx
call fcn.1001b970
cmp ebx, 4
jbe 0x1001cec1
sub bl, 4
mov byte [ebp - 0xb], bl
jmp 0x1001cec5
mov byte [ebp - 0xb], 0
mov dl, byte [ebp - 0x42]
mov ecx, dword [ebp + 0x18]
mov al, byte [ebp - 0x41]
mov byte [ebp - 0xa], dl
lea edx, [ebp - 0x108]
push ecx
push edx
mov byte [ebp - 9], al
call fcn.1001b9a0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.1001bcc0
add esp, 0x10
xor eax, eax
mov dl, byte [ebp + eax - 0x28]
mov bl, byte [ebp + eax - 0x18]
xor bl, dl
mov byte [ebp + eax - 0x18], bl
inc eax
cmp eax, 0x10
jb 0x1001cef6
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.1001bcc0
add esp, 8
xor eax, eax
mov dl, byte [ebp + eax - 0x38]
mov bl, byte [ebp + eax - 0x28]
xor bl, dl
mov byte [ebp + eax - 0x28], bl
inc eax
cmp eax, 0x10
jb 0x1001cf1f
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.1001bcc0
add esp, 8
xor eax, eax
mov dl, byte [ebp + eax - 0x48]
mov bl, byte [ebp + eax - 0x38]
xor bl, dl
mov byte [ebp + eax - 0x38], bl
inc eax
cmp eax, 0x10
jb 0x1001cf48
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.1001bcc0
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.1001b9a0
lea ecx, [ebp - 0x50]
push ecx
call fcn.10029040
mov edi, dword [ebp + 0x1c]
mov ecx, 0x14
lea esi, [ebp - 0x50]
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
jmp 0x1001cf9f
pop esi
pop edi
xor ax, ax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov ax, 0x1d10
pop ebx
mov esp, ebp
pop ebp
ret