Function at 0x100078f6
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x1003ea01
call fcn.1003dd2e
call fcn.1000757d
mov bl, al
call fcn.1000740b
mov edi, eax
call fcn.1000740b
mov esi, eax
cmp bl, 1
je 0x10007932
cmp bl, 2
je 0x10007932
mov edx, dword [0x10057868]
mov ecx, dword [0x10057860]
jmp 0x1000795c
mov edx, dword [0x10057868]
test edx, edx
je 0x1000794f
mov ecx, dword [edx + 0x58]
test ecx, ecx
je 0x1000794f
push esi
call fcn.1002dc14
mov edx, dword [0x10057868]
mov ecx, dword [0x10057860]
test ecx, ecx
je 0x1000795c
mov dword [ecx + 0x4c], esi
cmp bl, 3
je 0x10007966
cmp bl, 4
jne 0x10007986
test edx, edx
je 0x1000797f
cmp dword [edx + 0x58], 0
je 0x1000797f
mov ecx, dword [edx + 0x58]
push esi
call fcn.1002dc6b
mov ecx, dword [0x10057860]
test ecx, ecx
je 0x10007986
mov dword [ecx + 0x50], esi
movzx eax, bl
sub eax, 1
je 0x10007b20
sub eax, 1
je 0x10007ab7
sub eax, 1
je 0x10007a3a
sub eax, 1
jne 0x10007ba3
movaps xmm0, xmmword [0x1004d500]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x7e1c485a
mov dword [ebp - 0x38], 0x525d505d
mov dword [ebp - 0x34], 0x12595f
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x1a
jb 0x100079d0
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4b]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x98]
push eax
call fcn.100039e2
add esp, 0x20
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x10007a0d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10003d99
mov edx, 0xffff3b3b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
call fcn.10007c20
lea ecx, [ebp - 0x80]
call fcn.10003b97
lea ecx, [ebp - 0x98]
jmp 0x10007b9e
movaps xmm0, xmmword [0x1004cd00]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
push edi
movaps xmm0, xmmword [0x1004ca30]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x1e
jb 0x10007a53
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x68]
push eax
call fcn.100039e2
add esp, 0x20
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x10007a8d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003d99
mov edx, 0xff6565ff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.10007c20
lea ecx, [ebp - 0x2c]
call fcn.10003b97
lea ecx, [ebp - 0x68]
jmp 0x10007b9e
movaps xmm0, xmmword [0x1004d1f0]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x766d7f5d
mov word [ebp - 0x14], 0x30
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10007ad2
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x48]
push eax
call fcn.100039e2
add esp, 0x20
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x10007b0c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10003d99
mov byte [ebp - 4], 3
mov edx, 0xffff3b3b
jmp 0x10007b8b
movaps xmm0, xmmword [0x1004d0c0]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x7b2f333c
mov dword [ebp - 0x18], 0x33283a18
mov word [ebp - 0x14], 0x75
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x10007b42
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0x48]
push eax
call fcn.100039e2
add esp, 0x20
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x10007b79
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10003d99
mov byte [ebp - 4], 1
mov edx, 0xff6565ff
lea ecx, [ebp - 0x68]
call fcn.10007c20
lea ecx, [ebp - 0x68]
call fcn.10003b97
lea ecx, [ebp - 0x48]
call fcn.10003b97
call fcn.1003dd0b
ret