Function at 0x100cd7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017feec
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [0x1027c0b4]
mov ebx, edx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 1]
cmp eax, ecx
jbe 0x100cd83a
xor al, al
jmp 0x100cd84e
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov al, byte [eax]
inc edi
movzx eax, al
mov dword [esi + 8], edi
sub eax, 1
je 0x100cd9d7
sub eax, 1
jne 0x100cda27
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100cd878
xor cl, cl
jmp 0x100cd88c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [edi + 1]
mov dword [esi + 8], eax
cmp dword [ebx + 0x474], 0
je 0x100cda27
mov eax, dword [edx + 0x4dc]
test eax, eax
je 0x100cda27
cmp cl, 1
je 0x100cd9cc
mov ecx, eax
call fcn.10065360
movaps xmm0, xmmword [str.x9ee]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x3e581d0e
mov dword [ebp - 0x18], 0x1d141119
mov word [ebp - 0x14], 0x1c
nop
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100cd8e0
sub esp, 0x1c
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x48]
push eax
call fcn.1004a7a0
add esp, 0x20
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x50], ecx
jb 0x100cd923
mov ecx, dword [ecx]
mov dword [ebp - 0x50], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100cd928
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10120ea0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x4c], edi
call fcn.10123240
push ebx
push dword [ebp - 0x50]
lea esi, [edi + 0x20]
push esi
call fcn.10122ae0
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xa30000
push dword [ebp - 0x4c]
mov eax, dword [0x101ba6ac]
call eax
push edi
call fcn.10120260
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100cd9a3
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
add esp, 8
mov eax, dword [ebp - 0x48]
push 8
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.10048ea0
add esp, 8
jmp 0x100cda27
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100cda27
push 0
jmp 0x100cda21
cmp dword [ebx + 0x474], 0
je 0x100cda27
mov eax, dword [edx + 0x4dc]
test eax, eax
jne 0x100cda18
push 0x2c
call fcn.10120560
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10064110
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x1027c0b4]
mov dword [ecx + 0x4dc], eax
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100cda27
push 1
call dword [0x101ba7a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10120250
mov esp, ebp
pop ebp
ret 4