Function at 0x100cd980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018018c
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 0x100cd9ca
xor al, al
jmp 0x100cd9de
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100cdb67
sub eax, 1
jne 0x100cdbb7
mov ecx, dword [esi + 0x18]
lea eax, [edi + 1]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100cda08
xor cl, cl
jmp 0x100cda1c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100cdbb7
mov eax, dword [edx + 0x4dc]
test eax, eax
je 0x100cdbb7
cmp cl, 1
je 0x100cdb5c
mov ecx, eax
call fcn.100654c0
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 0x100cda70
sub esp, 0x1c
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x48]
push eax
call fcn.1004a910
add esp, 0x20
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x50], ecx
jb 0x100cdab3
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 0x100cdab8
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10121110
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x4c], edi
call fcn.101234b0
push ebx
push dword [ebp - 0x50]
lea esi, [edi + 0x20]
push esi
call fcn.10122d50
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.101204d0
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100cdb33
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
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.10049010
add esp, 8
jmp 0x100cdbb7
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100cdbb7
push 0
jmp 0x100cdbb1
cmp dword [ebx + 0x474], 0
je 0x100cdbb7
mov eax, dword [edx + 0x4dc]
test eax, eax
jne 0x100cdba8
push 0x2c
call fcn.101207d0
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10064270
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x1027c0b4]
mov dword [ecx + 0x4dc], eax
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100cdbb7
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.101204c0
mov esp, ebp
pop ebp
ret 4