Function at 0x1002799e
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x1007433a
call fcn.1003bfa0
mov ebx, ecx
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x29], 0
jmp 0x10027be3
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10027be0
mov ecx, eax
call fcn.10008e31
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10027aea
lea eax, [ebp - 0x33]
mov word [ebp - 0x34], 0x51
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x33], 0
call fcn.10004179
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10008e51
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10027a18
cmp dword [eax + 0x40], 0
je 0x10027a18
push dword [ebp - 0x38]
xor edx, edx
push eax
jmp 0x10027a20
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x54]
call fcn.10008f15
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9c
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.1000402e
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 0x10027ad5
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000b242
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 0x10027aa2
movsx eax, word [eax + 0x4e]
mov dword [ebp - 0x3c], eax
movsx eax, word [ecx + 0x5e]
mov ecx, dword [ebp - 0x3c]
add ecx, eax
jmp 0x10027aa6
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 0x10027ad5
lea edx, [ebp - 0x28]
call fcn.1000dac7
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.1000d60f
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1000402e
jmp 0x10027bdd
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x30], ecx
cmp dword [eax + ecx*4], 0
je 0x10027bdd
movaps xmm0, xmmword [0x1008ae20]
xor edx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x15b4a5d
mov dword [ebp - 0x14], 0x5b574b
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x16
jb 0x10027b19
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10004179
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.1000b242
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.1000402e
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x10027bdd
movaps xmm0, xmmword [str.q_8_]
xor edx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x5f051403
mov dword [ebp - 0x14], 0x50915
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x16
jb 0x10027b87
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10004179
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.1000dac7
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.1000402e
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.1000d60f
inc byte [ebp - 0x29]
add esi, 4
cmp esi, edi
jne 0x100279bf
mov ecx, dword [ebx]
call fcn.1000d750
test al, al
jne 0x10027c2b
mov eax, dword [0x10099bc8]
test eax, eax
je 0x10027c22
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x10027c22
mov ecx, dword [ecx]
call fcn.1000d52b
mov ecx, dword [ebx]
add edx, 0xffffff4c
push edx
lea edx, [eax + 0x208]
call fcn.1000d5c6
pop ecx
mov ecx, dword [ebx]
mov dl, 1
call fcn.1000d60f
lea ecx, [ebp + 8]
call fcn.1000e0ba
call fcn.1003bf4a
ret 0xc