Function at 0x100ce99b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
lea eax, [ecx + 1]
cmp eax, edx
jbe 0x100ce767
xor al, al
jmp 0x100ce772
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov al, byte [eax]
mov edx, dword [esi + 8]
mov ecx, dword [0x10297f7c]
inc edx
mov dword [esi + 8], edx
cmp byte [ecx + 0x432], 0
je 0x100ce8e9
cmp dword [ecx + 0x474], 0
je 0x100ce8e9
movzx eax, al
cmp eax, 0x17
ja case.0x100ce7ac.4
movzx eax, byte [eax + 0x100ce9bc]
jmp dword [eax*4 + 0x100ce9a4]
mov ecx, esi
pop esi
jmp fcn.100cd760
mov ecx, esi
pop esi
jmp fcn.100cd9d0
mov eax, dword [0x10297f7c]
mov esi, dword [eax + 0x478]
test esi, esi
je 0x100ce8e9
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x100ce7e8
push 0
call dword [0x101d64b8]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x100ce7fa
push 0
call dword [0x101d64b8]
mov eax, dword [0x10297f7c]
mov esi, dword [eax + 0x4e0]
test esi, esi
je 0x100ce8e9
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x100ce81c
push 0
call dword [0x101d64b8]
mov esi, dword [esi + 0x6c]
test esi, esi
je 0x100ce8e9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100ce8e9
mov dword [0x1027ede8], esi
mov dword [0x10297efc], 7
pop esi
jmp fcn.100e5070
mov ecx, dword [esi + 0x18]
lea eax, [edx + 4]
sub ecx, dword [esi + 0x14]
push ebp
cmp eax, ecx
jbe 0x100ce860
xor ebp, ebp
jmp 0x100ce86b
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov ebp, dword [eax]
mov eax, dword [0x10297f7c]
add dword [esi + 8], 4
mov esi, dword [eax + 0x51c]
test esi, esi
je 0x100ce8e8
push edi
mov edi, dword [esi + 0x50]
test edi, edi
je 0x100ce8a8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100ce8a8
mov dword [0x1027ede8], edi
mov dword [0x10297efc], 2
call fcn.100e5070
mov edi, dword [esi + 0x4c]
test edi, edi
je 0x100ce8d1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100ce8d1
mov dword [0x1027ede8], edi
mov dword [0x10297efc], 7
call fcn.100e5070
mov ecx, dword [0x10297f7c]
mov byte [esi + 0x58], 0
push ebp
mov ecx, dword [ecx + 0x51c]
call fcn.1007d6b0
pop edi
pop ebp
pop esi
ret
mov ecx, dword [esi + 0x18]
lea eax, [edx + 4]
sub ecx, dword [esi + 0x14]
cmp eax, ecx
jbe 0x100ce8fe
add dword [esi + 8], 4
jmp 0x100ce911
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov eax, dword [eax]
add dword [esi + 8], 4
test eax, eax
jne 0x100ce94b
mov eax, dword [0x10297f7c]
mov ecx, dword [eax + 0x478]
test ecx, ecx
je 0x100ce8e9
call fcn.10063e80
mov eax, dword [0x10297f7c]
mov esi, dword [eax + 0x4d8]
test esi, esi
je 0x100ce8e9
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100ce943
push 0
call dword [0x101d64b8]
mov esi, dword [esi + 0x38]
jmp 0x100ce81f
mov eax, dword [0x10297f7c]
mov esi, dword [eax + 0x4d8]
test esi, esi
je 0x100ce8e9
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100ce969
push 1
call dword [0x101d64b8]
mov esi, dword [esi + 0x38]
test esi, esi
je 0x100ce8e9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100ce8e9
mov dword [0x1027ede8], esi
mov dword [0x10297efc], 2
pop esi
jmp fcn.100e5070
pop esi
jmp fcn.100cdc40