Function at 0x10013cb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp dword [esi + 4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, eax
mov ebx, ecx
mov dword [esp + 0x10], 0
jne 0x10013cd8
pop edi
pop ebp
mov eax, 0x271f
pop ebx
add esp, 8
ret
test ebx, ebx
je 0x10013d41
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push eax
push 0
push ecx
call fcn.10033210
add esp, 0xc
cmp edi, dword [esi + 8]
jbe 0x10013d17
mov edx, dword [esi + 4]
push edx
call fcn.1000c410
mov eax, dword [esi + 4]
push edi
push ebx
push eax
call fcn.1000c600
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push edx
call fcn.1000c650
add esp, 0x18
jmp 0x10013d25
mov eax, dword [esi]
push edi
push ebx
push edi
push eax
call fcn.10033bd6
add esp, 0x10
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x10013d41
lea esp, [esp]
mov ecx, dword [esi]
xor dword [ecx + eax], 0x36363636
add eax, 4
cmp eax, dword [esi + 8]
jb 0x10013d30
mov edx, dword [esi + 4]
push edx
call fcn.1000c410
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call fcn.1000c600
add esp, 0x10
test ebx, ebx
jne 0x10013d6a
cmp dword [esi + 0x10], ebx
jne 0x10013e3e
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
shr eax, 1
and eax, 1
mov dword [esi + 0x20], eax
push 0
je 0x10013d8e
lea edx, [esp + 0x10]
push edx
push 0
push ecx
call fcn.10028570
jmp 0x10013d9b
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call fcn.1000c6a0
mov ecx, dword [esi + 0x10]
add esp, 0x10
lea edi, [esi + 0x10]
push ebp
push ecx
call fcn.10012e10
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x14]
push ebp
push edx
call fcn.10012e10
mov eax, dword [esp + 0x1c]
push 0
add eax, 7
and eax, 0xfffffff8
push ebp
push eax
push edi
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esp + 0x2c], eax
call fcn.10012e30
add esp, 0x20
test eax, eax
jne 0x10013ec3
push eax
mov eax, dword [esp + 0x10]
push ebp
push eax
push ebx
call fcn.10012e30
add esp, 0x10
test eax, eax
jne 0x10013ec3
cmp dword [esi + 0x20], 0
mov eax, dword [esp + 0xc]
push eax
mov dword [esi + 0x18], eax
push 0
je 0x10013e1f
mov ecx, dword [edi]
mov edx, dword [esi + 4]
push ecx
push edx
call fcn.10028570
mov edi, eax
jmp 0x10013e31
mov eax, dword [edi]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.1000c6a0
mov dword [esp + 0x20], eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10013ec1
jmp 0x10013e42
mov edi, dword [esp + 0x10]
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x10013e61
lea esp, [esp]
mov ecx, dword [esi]
xor dword [ecx + eax], 0x6a6a6a6a
add eax, 4
cmp eax, dword [esi + 8]
jb 0x10013e50
mov eax, dword [esi + 4]
push eax
call fcn.1000c410
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call fcn.1000c600
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 4]
add esp, 0x10
cmp dword [esi + 0x20], 0
push ecx
push 0
push edx
push eax
je 0x10013e98
call fcn.10028570
jmp 0x10013e9d
call fcn.1000c6a0
xor eax, eax
add esp, 0x10
cmp dword [esi + 8], eax
jbe 0x10013ec1
jmp 0x10013eb0
mov ecx, dword [esi]
xor dword [ecx + eax], 0x5c5c5c5c
add eax, 4
cmp eax, dword [esi + 8]
jb 0x10013eb0
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret