Function at 0x1000cd1f
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x100229c5
call fcn.100215d1
mov esi, ecx
mov al, byte [esi + 0x20]
mov dword [ebp - 0x58], 0xe10
push 0x3c
pop ecx
push 0x13
pop ebx
test al, al
je 0x1000cef7
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x1000cd50
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x1000cee9
mov eax, edi
mov dword [ebp - 0x18], 0xf
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
cdq
idiv ecx
mov ecx, eax
mov eax, edi
cdq
pop edi
idiv edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push 0xa
pop edi
mov dword [ebp - 4], eax
push edx
push ecx
cmp ecx, edi
jae 0x1000cde6
cmp edx, edi
mov edx, eax
jae 0x1000cdbd
mov cl, 0x14
mov dword [ebp - 0x38], 0x70312414
mov dword [ebp - 0x34], 0x7031242e
mov byte [ebp - 0x30], al
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 7
jae 0x1000cdb7
mov cl, byte [ebp - 0x38]
jmp 0x1000cda4
mov byte [ebp - 0x30], 0
jmp 0x1000ce3b
mov cl, 0x65
mov dword [ebp - 0x38], 0x1405565
mov dword [ebp - 0x34], 0x1405f
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 6
jae 0x1000cde0
mov cl, byte [ebp - 0x38]
jmp 0x1000cdcd
mov byte [ebp - 0x31], 0
jmp 0x1000ce3b
mov ecx, eax
cmp edx, edi
jae 0x1000ce16
mov dl, 0x36
mov byte [ebp - 0x37], bl
mov byte [ebp - 0x38], dl
mov word [ebp - 0x36], 0xc52
mov byte [ebp - 0x34], 6
mov byte [ebp - 0x33], bl
mov word [ebp - 0x32], 0x52
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x1000cde0
mov dl, byte [ebp - 0x38]
jmp 0x1000ce07
mov dl, 0x39
mov dword [ebp - 0x38], 0x35d1c39
mov word [ebp - 0x34], 0x5d1c
mov byte [ebp - 0x32], al
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x1000ce37
mov dl, byte [ebp - 0x38]
jmp 0x1000ce28
mov byte [ebp - 0x32], 0
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x54]
push eax
call fcn.10003b75
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10006dde
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.10003f3c
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x1002a4f0]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x321c4a34
mov byte [ebp - 0x40], 0
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, ebx
jb 0x1000ce8e
sub esp, 0x18
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x70]
push eax
call fcn.10003b75
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 8]
call fcn.100092aa
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.10003f3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10003f3c
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x1000cef7
and dword [esi + 0x24], 0
mov byte [esi + 0x20], 0
mov al, byte [esi + 0x21]
test al, al
je 0x1000d0af
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x1000cf10
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x1000d09e
cwde
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
mov dword [ebp - 0x18], 0xf
cdq
idiv ecx
movzx ecx, ax
mov eax, edi
cwde
cdq
pop edi
idiv edi
movzx eax, dx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x2c], dl
push 0xa
pop edi
mov dword [ebp - 4], 2
push eax
push ecx
cmp cx, di
jae 0x1000cfae
cmp ax, di
jae 0x1000cf86
mov byte [ebp - 0x38], bl
mov ecx, edx
mov dword [ebp - 0x37], 0x29773623
mov dword [ebp - 0x33], 0x773623
xor byte [ebp + ecx - 0x37], bl
inc ecx
cmp ecx, 7
jae 0x1000cf7f
mov bl, byte [ebp - 0x38]
jmp 0x1000cf70
xor ebx, ebx
mov byte [ebp - 0x30], bl
jmp 0x1000cffa
xor ebx, ebx
mov dword [ebp - 0x38], 0x415464
mov dl, 0x64
mov dword [ebp - 0x34], 0x415e
mov ecx, ebx
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x1000cfa9
mov dl, byte [ebp - 0x38]
jmp 0x1000cf9a
mov byte [ebp - 0x31], bl
jmp 0x1000cffa
xor ebx, ebx
mov ecx, ebx
cmp ax, di
jae 0x1000cfd6
mov dl, 0x67
mov dword [ebp - 0x38], 0x5d034267
mov dword [ebp - 0x34], 0x34257
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x1000cfa9
mov dl, byte [ebp - 0x38]
jmp 0x1000cfc7
mov dl, 0x20
mov dword [ebp - 0x38], 0x1a440520
mov word [ebp - 0x34], 0x4405
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x1000cff7
mov dl, byte [ebp - 0x38]
jmp 0x1000cfe8
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x70]
push eax
call fcn.10003b75
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10006dde
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10003f3c
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x1002a1a0]
mov edx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x6c3a443f
mov word [ebp - 0x40], 0x42
mov cl, byte [ebp - 0x54]
xor byte [ebp + edx - 0x53], cl
inc edx
cmp edx, 0x14
jb 0x1000d04e
sub esp, 0x18
mov byte [ebp - 0x3f], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004090
lea eax, [ebp - 0x70]
push eax
call fcn.10003b75
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0xc]
call fcn.100092aa
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10003f3c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003f3c
jmp 0x1000d0a0
xor ebx, ebx
cmp word [esi + 0x28], bx
jg 0x1000d0af
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.1002157b
ret