Function at 0x10021947
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi]
call fcn.1000d45e
mov ecx, dword [esi]
or eax, 0x20
mov edx, eax
call fcn.1000d47f
xor ebx, ebx
mov dword [ebp - 0x10], 0x7a607614
mov cl, 0x14
mov dword [ebp - 0xc], 0x7b78774b
mov word [ebp - 8], 0x7167
mov edx, ebx
mov byte [ebp - 6], bl
xor cl, byte [ebp + edx - 0xf]
mov byte [ebp + edx - 0xf], cl
inc edx
cmp edx, 9
jae 0x10021994
mov cl, byte [ebp - 0x10]
jmp 0x10021981
sub esp, 0x18
mov byte [ebp - 6], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
add esp, 0x18
mov dword [esi + 4], eax
mov dl, 0x11
mov dword [ebp - 0x14], 0x7f657311
mov dword [ebp - 0x10], 0x6370664e
mov ecx, ebx
mov dword [ebp - 0xc], 0x637e7863
mov byte [ebp - 8], bl
xor dl, byte [ebp + ecx - 0x13]
mov byte [ebp + ecx - 0x13], dl
inc ecx
cmp ecx, 0xb
jae 0x100219e1
mov dl, byte [ebp - 0x14]
jmp 0x100219ce
sub esp, 0x18
mov byte [ebp - 8], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
add esp, 0x18
mov dword [esi + 8], eax
mov cl, 0x6b
mov dword [ebp - 0x10], 0x51f096b
mov dword [ebp - 0xc], 0xc041934
mov edx, ebx
mov word [ebp - 8], 0xe1e
mov byte [ebp - 6], bl
xor cl, byte [ebp + edx - 0xf]
mov byte [ebp + edx - 0xf], cl
inc edx
cmp edx, 9
jae 0x10021a2d
mov cl, byte [ebp - 0x10]
jmp 0x10021a1a
sub esp, 0x18
mov byte [ebp - 6], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
add esp, 0x18
mov dword [esi + 0xc], eax
mov cl, 0x48
mov dword [ebp - 0x10], 0x263c2a48
mov dword [ebp - 0xc], 0x2f292517
mov edx, ebx
mov word [ebp - 8], 0x2d
xor cl, byte [ebp + edx - 0xf]
mov byte [ebp + edx - 0xf], cl
inc edx
cmp edx, 8
jae 0x10021a76
mov cl, byte [ebp - 0x10]
jmp 0x10021a63
sub esp, 0x18
mov byte [ebp - 7], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
add esp, 0x18
mov dword [esi + 0x10], eax
mov dl, 0x4a
mov dword [ebp - 0x10], 0x243e284a
mov dword [ebp - 0xc], 0x23383a15
mov ecx, ebx
mov dword [ebp - 8], 0x3e392f
xor dl, byte [ebp + ecx - 0xf]
mov byte [ebp + ecx - 0xf], dl
inc ecx
cmp ecx, 0xa
jae 0x10021ac0
mov dl, byte [ebp - 0x10]
jmp 0x10021aad
sub esp, 0x18
mov byte [ebp - 5], bl
lea eax, [ebp - 0xf]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
movaps xmm0, xmmword [0x10089f30]
add esp, 0x18
mov dword [esi + 0x14], eax
mov edx, ebx
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0x757d79
mov cl, byte [ebp - 0x18]
xor byte [ebp + edx - 0x17], cl
inc edx
cmp edx, 0x12
jb 0x10021af2
sub esp, 0x18
mov byte [ebp - 5], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
movaps xmm0, xmmword [0x10089990]
add esp, 0x18
mov dword [esi + 0x18], eax
mov edx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x19021814
mov word [ebp - 8], 3
mov cl, byte [ebp - 0x1c]
xor byte [ebp + edx - 0x1b], cl
inc edx
cmp edx, 0x14
jb 0x10021b37
sub esp, 0x18
mov byte [ebp - 7], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
movaps xmm0, xmmword [0x10089a10]
add esp, 0x18
mov dword [esi + 0x1c], eax
mov ecx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x2925192a
mov dword [ebp - 8], 0x322833
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x16
jb 0x10021b7d
sub esp, 0x18
mov byte [ebp - 5], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
add esp, 0x18
mov dword [esi + 0x20], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret