Function at 0x1002a574
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x10079f7d
call fcn.10040a5d
mov ebx, ecx
xor edx, edx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x29], dl
jmp 0x1002a7b9
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1002a7b6
mov ecx, eax
call fcn.1000ad11
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1002a6c0
lea eax, [ebp - 0x33]
mov word [ebp - 0x34], 0x35
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x33], 0
call fcn.10004181
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.1000ad31
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1002a5ee
cmp dword [eax + 0x40], 0
je 0x1002a5ee
push dword [ebp - 0x38]
xor edx, edx
push eax
jmp 0x1002a5f6
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x54]
call fcn.1000adf5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10007a5b
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.10004036
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x1002a6ab
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000d28d
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x60], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x64], ecx
mov eax, dword [ebx + 8]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x68], 1
mov eax, ecx
mov ecx, dword [ebp - 0x30]
test eax, eax
je 0x1002a678
movsx eax, word [eax + 0x4e]
mov dword [ebp - 0x3c], eax
movsx eax, word [ecx + 0x5e]
mov ecx, dword [ebp - 0x3c]
add ecx, eax
jmp 0x1002a67c
movsx ecx, word [ecx + 0x5e]
mov eax, dword [ebx + 8]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebx + 8]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002a6ab
lea edx, [ebp - 0x28]
call fcn.1000fb5c
mov eax, dword [ebx + 8]
mov dl, 1
mov ecx, dword [ebp - 0x38]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.1000f6a4
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10004036
jmp 0x1002a7b3
movzx ecx, byte [ebp - 0x29]
xor edx, edx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x30], ecx
cmp dword [eax + ecx*4], edx
je 0x1002a7b3
movaps xmm0, xmmword [0x10095a60]
mov ecx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xf554453
mov dword [ebp - 0x14], 0x555945
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x16
jb 0x1002a6f0
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], dl
push eax
lea ecx, [ebp - 0x54]
call fcn.10004181
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 8]
mov ecx, dword [eax + ecx*4]
add ecx, 4
call fcn.1000d28d
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
mov eax, dword [ebx + 8]
xor edx, edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + ecx*4]
cmp dword [eax], edx
je 0x1002a7b3
movaps xmm0, xmmword [str.p_9_]
mov ecx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x5e041502
mov dword [ebp - 0x14], 0x40814
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x16
jb 0x1002a75e
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], dl
push eax
lea ecx, [ebp - 0x54]
call fcn.10004181
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 8]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.1000fb5c
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
mov eax, dword [ebx + 8]
xor dl, dl
mov ecx, dword [ebp - 0x30]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.1000f6a4
inc byte [ebp - 0x29]
add esi, 4
cmp esi, edi
jne 0x1002a595
mov ecx, dword [ebx]
call fcn.1000f7e5
test al, al
jne 0x1002a801
mov eax, dword [0x100a6050]
test eax, eax
je 0x1002a7f8
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x1002a7f8
mov ecx, dword [ecx]
call fcn.1000f5c0
mov ecx, dword [ebx]
add edx, 0xffffff4c
push edx
lea edx, [eax + 0x208]
call fcn.1000f65b
pop ecx
mov ecx, dword [ebx]
mov dl, 1
call fcn.1000f6a4
lea ecx, [ebp + 8]
call fcn.1001014f
call fcn.10040a07
ret 0xc