Function at 0x1000bec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x1000bedd
mov eax, dword [ebx + 0x2b8]
mov ecx, dword [eax + 0x10]
inc ecx
push ecx
call fcn.1002c5d7
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x1000bf0b
push eax
push 0x10
push str.Alloc_Fail
call fcn.1002fece
call fcn.10002ee0
jmp 0x1000bf1b
mov edx, dword [ebx + 0x2b8]
xor eax, eax
mov edi, esi
mov ecx, dword [edx + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x2b8]
mov edi, dword [0x100492a0]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 8]
add edx, edi
push ecx
push edx
push esi
call fcn.10019400
mov ecx, dword [ebx + 0x2b8]
add esp, 0xc
xor eax, eax
mov edx, dword [ecx + 8]
test edx, edx
jbe 0x1000bf79
mov cl, byte [eax + esi]
xor cl, 0x64
mov byte [eax + esi], cl
mov edx, dword [ebx + 0x2b8]
inc eax
cmp eax, dword [edx + 8]
jb 0x1000bf64
jmp 0x1000bf8b
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 8], ecx
lea edi, [ecx + 1]
push edi
call fcn.1002c5d7
mov edx, eax
mov ecx, edi
mov dword [ebp - 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [ebx + 0x190]
and ecx, 3
push 3
rep stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov ecx, 8
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 8]
lea eax, [ecx + esi + 1]
push eax
push edx
call fcn.10019400
mov ecx, dword [ebp - 4]
add esp, 0x10
push ecx
push 0x3e8
mov ecx, ebx
call fcn.1002be13
mov edx, dword [ebx + 0x2b8]
xor eax, eax
mov edi, esi
push esi
mov ecx, dword [edx + 0x10]
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1002c600
mov eax, dword [ebp - 4]
push eax
call fcn.1002c600
mov ecx, dword [ebx + 0x2b4]
mov edx, dword [ecx + 0x10]
inc edx
push edx
call fcn.1002c5d7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000c069
push eax
push 0x10
push str.Alloc_Fail
call fcn.1002fece
call fcn.10002ee0
mov eax, dword [ebx + 0x2b4]
mov edi, esi
mov ecx, dword [eax + 0x10]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x2b4]
mov edi, dword [0x100492a0]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 8]
add edx, edi
push ecx
push edx
push esi
call fcn.10019400
mov eax, dword [ebx + 0x2b4]
add esp, 0xc
mov ecx, dword [eax + 8]
push ecx
push esi
mov ecx, ebx
call fcn.1000c100
mov edx, dword [ebx + 0x2b4]
xor eax, eax
mov edi, esi
push esi
mov ecx, dword [edx + 0x10]
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1002c600
add esp, 4
jmp 0x1000c0ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret