Function at 0x1000a6f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x1001a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x10]
add eax, 7
push ebx
shr eax, 3
push esi
push edi
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc0], eax
lea esi, [eax - 0x21]
cmp eax, 0x42
jae 0x1000a742
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f5b7
mov esp, ebp
pop ebp
ret
push 0x48
push 1
call fcn.1000f718
mov edi, eax
push esi
push 1
mov dword [ebp - 0xb8], edi
call fcn.1000f718
push esi
push 1
mov dword [ebp - 0x90], eax
call fcn.1000f718
push 0x21
mov dword [ebp - 0x8c], eax
call fcn.1000f600
add esp, 0x1c
mov ebx, eax
test edi, edi
je 0x1000a93d
cmp dword [ebp - 0x90], 0
je 0x1000a93d
cmp dword [ebp - 0x8c], 0
je 0x1000a93d
test ebx, ebx
je 0x1000a93d
cmp dword [ebp + 0x14], 0
je 0x1000a80f
push 0x20
lea edx, [ebp - 0xb4]
push edx
push ebx
mov dword [ebp - 0xb4], 0x42c560c6
mov dword [ebp - 0xb0], 0x9ab89d4b
mov dword [ebp - 0xac], 0xcf5d3078
mov dword [ebp - 0xa8], 0xfe8ffe7
mov dword [ebp - 0xa4], 0xd9a69287
mov dword [ebp - 0xa0], 0xd1356868
mov dword [ebp - 0x9c], 0x828062af
mov dword [ebp - 0x98], 0x85801c1c
call fcn.10013090
add esp, 0xc
jmp 0x1000a82d
push ebx
mov edi, 0x20
call fcn.10004940
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000a942
mov edi, dword [ebp - 0xb8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x94]
push 0x20
push eax
push ecx
lea ecx, [ebp - 0x88]
call fcn.10001000
add esp, 0xc
test eax, eax
je 0x1000a856
mov edi, 0x1700
jmp 0x1000a942
push 0x20
lea edx, [ebp - 0x88]
push edx
lea eax, [edi + 8]
push eax
call fcn.10013090
add esp, 0xc
push 0x20
lea ecx, [edi + 0x28]
push ebx
push ecx
call fcn.10013090
add esp, 0xc
push 0x20
push 0x48
push edi
lea ecx, [ebp - 0x88]
call fcn.10001000
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000a942
mov edx, dword [ebp - 0x90]
push 0x20
lea eax, [esi + edx - 0x20]
push ebx
push eax
mov byte [eax - 1], 1
call fcn.10013090
mov eax, dword [ebp - 0x8c]
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0x88]
push 0x20
push ecx
call fcn.100085e0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1000a942
test esi, esi
je 0x1000a902
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0xbc]
sub edi, eax
sub ecx, eax
mov dword [ebp - 0x94], esi
mov dl, byte [edi + eax]
xor dl, byte [eax]
inc eax
dec dword [ebp - 0x94]
mov byte [ecx + eax - 1], dl
jne 0x1000a8f0
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0xbc]
neg ecx
and ecx, 7
mov eax, 0xff
sar eax, cl
push 0x20
lea ecx, [ebp - 0x88]
push ecx
and byte [edi], al
lea edx, [edi + esi]
push edx
call fcn.10013090
mov eax, dword [ebp - 0xc0]
add esp, 0xc
mov byte [edi + eax - 1], 0xbc
xor edi, edi
jmp 0x1000a942
mov edi, 1
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x1000a968
push 0x48
push 0
push eax
call fcn.10012fe0
mov ecx, dword [ebp - 0xb8]
add esp, 0xc
push ecx
call fcn.1000f5c6
add esp, 4
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x1000a98d
push esi
push 0
push eax
call fcn.10012fe0
mov edx, dword [ebp - 0x90]
add esp, 0xc
push edx
call fcn.1000f5c6
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x1000a9b2
push esi
push 0
push eax
call fcn.10012fe0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
push eax
call fcn.1000f5c6
add esp, 4
test ebx, ebx
je 0x1000a9db
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
push ebx
mov byte [ebx + 0x20], al
call fcn.1000f5c6
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f5b7
mov esp, ebp
pop ebp
ret