Function at 0x100ce8d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0x1018e34e
push eax
mov eax, dword [esp + 0x3c]
mov dword fs:[0], esp
sub esp, 0x158
test ecx, ecx
push ebp
mov ebp, dword [esp + 0x174]
push esi
push edi
mov dword [eax], 0
je 0x100ceb4f
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
cmp eax, 0x20
jge 0x100ce949
mov ecx, eax
lea edi, [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x20
lea edi, [esp + eax + 0x14]
sub ecx, eax
mov esi, 0x101dec38
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100ce954
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push 0x20
push edx
call fcn.100cfdd0
mov edi, dword [esp + 0x184]
add esp, 0xc
cmp edi, 3
jne 0x100cea43
mov esi, 0x32
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push 0x10
push ecx
call fcn.100cfdd0
add esp, 0xc
dec esi
jne 0x100ce97d
mov edx, dword [esp + 0x180]
mov ecx, 8
lea edi, [esp + 0x34]
push ebx
mov esi, dword [edx + 4]
mov ebx, 0x13
rep movsd dword es:[edi], dword [esi]
xor eax, eax
test ebp, ebp
jle 0x100ce9c4
mov cl, byte [esp + eax + 0x18]
xor cl, bl
mov byte [esp + eax + 0x58], cl
inc eax
cmp eax, ebp
jl 0x100ce9b5
lea edx, [esp + 0x68]
lea eax, [esp + 0x58]
push edx
push ebp
push eax
call fcn.100cf210
add esp, 0xc
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
xor esi, esi
mov cl, byte [esp + esi + 0x38]
lea edx, [esp + 0x12]
push ecx
lea eax, [esp + 0x17]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.100cf290
add esp, 0x10
mov byte [esp + esi + 0x38], al
inc esi
cmp esi, 0x20
jl 0x100ce9e3
dec ebx
jns 0x100ce9af
mov edi, dword [esp + 0x17c]
pop ebx
push 8
call fcn.1005473e
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x16c], 0
je 0x100ceaa7
lea edx, [esp + 0x34]
push 0x20
push edx
mov ecx, eax
call fcn.1008f870
mov esi, eax
jmp 0x100ceaa9
cmp edi, 2
jne 0x100ce994
lea edx, [esp + 0x64]
lea eax, [esp + 0x14]
push edx
push ebp
push eax
call fcn.100cf210
add esp, 0xc
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
xor esi, esi
mov ecx, dword [esp + 0x180]
mov edx, dword [ecx + 4]
mov al, byte [edx + esi]
lea edx, [esp + 0xe]
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x13]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.100cf290
add esp, 0x10
mov byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x20
jl 0x100cea6b
jmp 0x100cea14
xor esi, esi
mov eax, dword [esp + 0x19c]
mov ecx, dword [esp + 0x198]
mov edx, dword [esp + 0x18c]
push eax
mov eax, dword [esp + 0x18c]
push ecx
mov ecx, dword [esp + 0x18c]
push esi
push edx
mov edx, dword [esp + 0x190]
push eax
mov eax, dword [esp + 0x188]
push ecx
push edx
push ebp
push edi
push eax
mov dword [esp + 0x194], 0xffffffff
call fcn.100cebc0
add esp, 0x28
test eax, eax
je 0x100ceb39
mov ecx, dword [esp + 0x1a0]
test esi, esi
mov dword [ecx], 1
je 0x100ceb1c
mov ecx, esi
call fcn.1008fbb0
push esi
call fcn.10054626
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
add esp, 0x164
ret
test esi, esi
je 0x100ceb56
mov ecx, esi
call fcn.1008fbb0
push esi
call fcn.10054626
add esp, 4
jmp 0x100ceb56
mov edi, dword [esp + 0x178]
mov edx, dword [esp + 0x19c]
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x194]
push edx
mov edx, dword [esp + 0x190]
push eax
mov eax, dword [esp + 0x190]
push ecx
mov ecx, dword [esp + 0x190]
push edx
mov edx, dword [esp + 0x190]
push eax
mov eax, dword [esp + 0x188]
push ecx
push edx
push ebp
push edi
push eax
call fcn.100cebc0
mov ecx, dword [esp + 0x18c]
add esp, 0x28
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x164
ret