Function at 0x100012f0
Capabilities:
Create directory
Encode data using xor
Get common file path
Get disk information
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
lea eax, [ebp - 0x214]
push edi
push 0x200
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001318
sub ecx, edx
jne 0x1000133f
mov ecx, dword [ebp + 8]
movups xmm0, xmmword [str.Input_your_name.]
pop edi
movups xmmword [ecx], xmm0
mov al, byte [0x100020d8]
mov byte [ecx + 0x10], al
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001348
sub ecx, edx
push esi
cmp ecx, 0x11
jne 0x100016fa
mov al, byte [ebx]
xor esi, esi
test al, al
je 0x10001381
cmp al, 0x2d
je 0x10001379
movsx eax, al
push eax
call dword [sym.imp.msvcrt.dll_toupper]
add esp, 4
mov byte [ebp + esi - 0x14], al
inc esi
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x10001363
lea ecx, [ebp - 0x14]
mov byte [ebp + esi - 0x14], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001390
sub ecx, edx
cmp ecx, 0xf
jne 0x100016fa
xor eax, eax
mov cl, byte [ebp + eax - 0x14]
cmp cl, 0x4f
jne 0x100013b4
mov byte [ebp + eax - 0x14], 0x30
jmp 0x100013c3
cmp cl, 0x49
je 0x100013be
cmp cl, 0x4c
jne 0x100013c3
mov byte [ebp + eax - 0x14], 0x31
inc eax
cmp eax, 0xc
jb 0x100013a4
push 0x43985601
push 0xc
lea eax, [ebp - 0x14]
push eax
call section..text
mov ebx, eax
xor edx, edx
and ebx, 0x7fff
xor esi, esi
mov cl, byte [ebp + esi - 8]
shl edx, 5
xor eax, eax
nop
cmp cl, byte [eax + 0x10002080]
je 0x10001400
inc eax
cmp eax, 0x20
jb 0x100013f0
jmp 0x10001402
or edx, eax
inc esi
cmp esi, 3
jb 0x100013e5
cmp bx, dx
jne 0x100016fa
push 0
push 0x23
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x318]
dec ecx
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10001430
mov eax, dword [str.MOTU]
mov dword [ecx], eax
mov ax, word [0x100020fc]
mov word [ecx + 4], ax
lea eax, [ebp - 0x318]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x318]
push str.DigitalPerformer
push eax
push str._sAuth__s__s
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov esi, edi
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001480
sub esi, ecx
lea eax, [ebp - 0x214]
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 1]
movups xmm0, xmmword [str.DigitalPerformer]
mov esi, ecx
add esp, 0xc
movups xmmword [ebp + ebx - 0x214], xmm0
add ebx, 0x11
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100014b7
sub esi, edx
lea eax, [ebp - 0x214]
push esi
push ecx
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0x10]
add ebx, esi
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x100
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp + 0x14]
push eax
push 0
push str.MachineGuid
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x418]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10001528
sub edx, ecx
xor esi, esi
xor ecx, ecx
test edx, edx
je 0x10001551
nop dword [eax]
movsx eax, byte [ebp + esi - 0x418]
inc esi
rol ecx, 1
xor ecx, eax
cmp esi, edx
jb 0x10001540
mov eax, ecx
mov byte [ebp + ebx - 0x210], cl
shr eax, 0x18
mov byte [ebp + ebx - 0x213], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + ebx - 0x212], al
mov eax, ecx
shr eax, 8
mov byte [ebp + ebx - 0x211], al
lea eax, [ebp - 0x51c]
push 0x104
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + ebx - 0x20f], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + ebx - 0x20e], al
mov eax, ecx
shr eax, 8
mov byte [ebp + ebx - 0x20d], al
lea eax, [ebp - 0x214]
mov byte [ebp + ebx - 0x20c], cl
add ebx, 0xd
push 0xf1e27391
push ebx
push eax
call section..text
mov ecx, eax
mov byte [ebp + ebx - 0x211], al
shr ecx, 0x18
mov byte [ebp + ebx - 0x214], cl
mov ecx, eax
shr ecx, 0x10
mov byte [ebp + ebx - 0x213], cl
mov ecx, eax
shr ecx, 8
mov byte [ebp + ebx - 0x212], cl
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001625
sub ecx, edx
lea edx, [edi + 1]
imul ecx, ecx, 0xd370ddb
inc ecx
mov al, byte [edi]
inc edi
test al, al
jne 0x10001638
sub edi, edx
lea edx, [edi + 1]
cmp edx, 0x200
jae 0x1000166c
nop dword [eax]
imul ecx, ecx, 0x6d25
inc ecx
mov eax, ecx
shr eax, 0x16
xor byte [ebp + edx - 0x214], al
inc edx
cmp edx, 0x200
jb 0x10001650
lea eax, [ebp - 0x318]
push 0x10002110
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100016b0
movups xmm0, xmmword [str.Failed_writing_license_to_the_file.]
mov ecx, dword [ebp + 8]
pop esi
pop ebx
pop edi
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x10002124]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [0x10002134]
mov dword [ecx + 0x20], eax
mov esp, ebp
pop ebp
ret 0x10
push esi
push 1
lea eax, [ebp - 0x214]
push 0x200
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push esi
call dword [sym.imp.msvcrt.dll_fclose]
movups xmm0, xmmword [str.Successfully_registered.]
mov ecx, dword [ebp + 8]
add esp, 0x14
movups xmmword [ecx], xmm0
pop esi
movq xmm0, qword [0x10002148]
movq qword [ecx + 0x10], xmm0
mov al, byte [0x10002150]
pop ebx
mov byte [ecx + 0x18], al
pop edi
mov esp, ebp
pop ebp
ret 0x10
movups xmm0, xmmword [str.Serial_Number_is_invalid.]
mov ecx, dword [ebp + 8]
pop esi
pop ebx
pop edi
movups xmmword [ecx], xmm0
movq xmm0, qword [0x100020ec]
movq qword [ecx + 0x10], xmm0
mov ax, word [0x100020f4]
mov word [ecx + 0x18], ax
mov esp, ebp
pop ebp
ret 0x10