Function at 0x100129c7
Capabilities:
Encode data using xor

Disassembly:
push 0x6c
mov eax, 0x1006d26b
call fcn.100177a1
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
call fcn.1000c2db
push eax
lea ecx, [ebp - 0x30]
call fcn.1000c110
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.1000c2db
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000c110
mov byte [ebp - 4], 1
call fcn.1000c2db
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000c110
mov byte [ebp - 4], 2
call fcn.1000c2db
push eax
lea ecx, [ebp - 0x34]
call fcn.1000c110
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.10010206
mov edi, dword [ebp - 0x2c]
cmp dword [edi - 0xc], ebx
jne 0x10012a6f
mov ecx, dword [ebp - 0x40]
push 0x1006e380
call fcn.1000f01f
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.1000c45e
lea ecx, [edi - 0x10]
call fcn.1000c45e
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.1000c45e
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
jmp 0x10012be5
cmp dword [ebp + 0x10], 0
je 0x10012ae7
push ebx
push 0x3f
lea ecx, [ebp - 0x2c]
call fcn.100128fd
lea ecx, [ebp - 0x2c]
cmp eax, 0xffffffff
jne 0x10012a8f
push 0x10070178
jmp 0x10012a94
push 0x1007017c
call fcn.100127d3
push 0x14
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.1000e466
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x10012ab5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x34]
push 0x10070180
push eax
call fcn.10012931
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.100069a0
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push dword [esi - 0xc]
push esi
call fcn.10012819
mov edi, dword [ebp - 0x2c]
jmp 0x10012aea
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x78]
call fcn.1000c173
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 5
call fcn.1000c476
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x78]
call fcn.1000c345
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.10012730
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.1000c45e
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], ebx
jne 0x10012b5c
mov ecx, dword [ebp - 0x40]
push 0x1006e380
call fcn.1000f01f
lea ecx, [ebp - 0x78]
call fcn.1000c1b9
lea ecx, [esi - 0x10]
call fcn.1000c45e
lea ecx, [edi - 0x10]
call fcn.1000c45e
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
jmp 0x10012bda
push 0x10070184
call fcn.1004d350
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
pop ecx
mov dword [ebp - 0x38], ebx
cmp dword [eax - 0xc], ebx
jle 0x10012bab
mov edi, eax
mov esi, ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.10012bf3
xor al, byte [ebx + 0x10070184]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x38], al
push dword [ebp - 0x38]
call fcn.1000c229
inc ebx
xor eax, eax
cmp ebx, dword [ebp - 0x44]
cmovge ebx, eax
inc esi
cmp esi, dword [edi - 0xc]
jl 0x10012b79
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x3c]
add ebx, 0xfffffff0
push ebx
call fcn.100128a2
pop ecx
mov ecx, dword [ebp - 0x40]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebp - 0x78]
call fcn.1000c1b9
lea ecx, [esi - 0x10]
call fcn.1000c45e
lea ecx, [edi - 0x10]
call fcn.1000c45e
mov ecx, ebx
call fcn.1000c45e
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.1000c45e
mov eax, dword [ebp - 0x40]
call fcn.1001775c
ret