Function at 0x10078840
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082430
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [0x1008fde0]
mov esi, 0x44
movups xmmword [ebp - 0x74], xmm0
xor eax, eax
mov dword [ebp - 0x78], esi
movaps xmm0, xmmword [0x1008f9e0]
movups xmmword [ebp - 0x64], xmm0
mov word [ebp - 0x2f], ax
movaps xmm0, xmmword [0x1008fdf0]
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x2d], al
lea eax, [esi + 1]
movaps xmm0, xmmword [0x1008fe00]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x41514546
mov byte [ebp - 0x30], 0x44
call fcn.1007cdb0
mov edi, esp
lea ecx, [esi - 1]
lea eax, [ebp + esi - 0x74]
xor edx, edx
add ecx, edi
cmp edi, eax
ja 0x100788e6
lea eax, [ebp - 0x73]
cmp ecx, eax
jae 0x10078965
movsx eax, byte [ebp - 0x74]
mov ecx, esi
and ecx, 0xffffffc0
lea esi, [ebp - 0x73]
mov dword [ebp - 0x84], ecx
sub esi, edi
lea ecx, [ebp - 0x63]
movd xmm0, eax
sub ecx, edi
punpcklbw xmm0, xmm0
lea eax, [edi + 0x20]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x7c]
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
nop
movups xmm0, xmmword [ebp + edx - 0x73]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [ebp + edx - 0x63]
add edx, 0x40
pxor xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
cmp edx, ecx
jb 0x10078920
mov edi, esp
mov esi, 0x44
cmp edx, esi
jae 0x1007898d
lea ecx, [edx + edi]
lea edi, [ebp - 0x73]
sub edi, esp
sub esi, edx
mov dl, byte [ebp - 0x74]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, dl
mov byte [ecx - 1], al
sub esi, 1
jne 0x10078976
mov edi, esp
mov esi, 0x44
mov eax, 0x10
mov byte [edi + esi], 0
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x20], 0x2227284b
mov dword [ebp - 0x1c], 0x653f252e
mov dword [ebp - 0x18], 0x27272f
call fcn.1007cd80
mov eax, esp
lea esi, [ebp - 0x1f]
mov ecx, eax
sub esi, eax
mov edx, 0xa
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x4b
mov byte [ecx - 1], al
sub edx, 1
jne 0x100789c5
mov esi, esp
mov ecx, edi
sub esp, 0x18
mov dword [ebp - 0x84], esp
mov byte [esi + 0xa], dl
lea eax, [ecx + 1]
mov edx, esp
mov dword [ebp - 0x7c], eax
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078a01
sub ecx, dword [ebp - 0x7c]
push ecx
push edi
mov ecx, edx
call fcn.100109d0
sub esp, 0x18
mov dword [ebp - 4], 0
mov edx, esp
mov ecx, esi
mov dword [edx], 0
lea edi, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078a40
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.100109d0
mov dword [ebp - 4], 0xffffffff
call fcn.10078060
add esp, 0x30
lea esp, [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret