Function at 0x409870
Capabilities:
Encode data using xor
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4621cd
push eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x1b0
push ebp
push esi
push edi
push 0x4793c8
call fcn.00457855
mov eax, dword [esp + 0x1d0]
mov edi, str._Alyur_Suit
or ecx, 0xffffffff
lea edx, [esp + 0x70]
mov dword [eax], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x472508
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x75]
push ecx
call fcn.00401010
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4098ec
mov byte [ebp], 0
inc ebp
lea edx, [esp + 0x71]
push ebp
push edx
lea eax, [esp + 0xc0]
push str.Software_s_s
push eax
call fcn.0042dba5
xor ecx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x20], ecx
push edx
push 0x20019
lea eax, [esp + 0xc0]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], ecx
call esi
test eax, eax
je 0x40996d
lea ecx, [esp + 0x10]
lea edx, [esp + 0xb8]
push ecx
push 0x20019
push 0
push edx
push SysReAllocStringLen
call esi
test eax, eax
je 0x40996d
mov dword [esp + 0x10], 0
jmp 0x409a22
mov edx, dword [esp + 0x10]
test edx, edx
je 0x409a22
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push ecx
push eax
push 0
push 0x47253c
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x31
call esi
test eax, eax
jne 0x4099cc
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1d0]
call fcn.00457855
lea edx, [esp + 0xc]
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.sign
push edx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x24], 9
call esi
test eax, eax
jne 0x409a17
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x3c]
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1cc]
push 0x4793c8
mov eax, dword [edx]
push eax
call fcn.0042e21c
add esp, 8
test eax, eax
jne 0x409c6f
push str.APPDATA
mov byte [esp + 0xbc], al
call fcn.0042e84b
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 4
mov edi, eax
lea eax, [esp + 0xb8]
push 1
push 0x23
push eax
push 0
call esi
mov al, byte [esp + 0xb8]
test al, al
jne 0x409ac1
test edi, edi
je 0x409aa2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x409ab2
push 1
lea ecx, [esp + 0xbc]
push 0x1a
push ecx
push 0
call esi
mov al, byte [esp + 0xb8]
test al, al
je 0x409c6f
lea edx, [esp + 0xb8]
lea ecx, [esp + 0xc]
push edx
call fcn.0045773a
push 0x47231c
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1cc], 0
push eax
call fcn.004578fb
lea ecx, [esp + 0x71]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x1d0], 1
call fcn.004578fb
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c4], 4
call fcn.00457710
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c4], 3
call fcn.00457710
push 0x47231c
lea ecx, [esp + 0x2c]
call fcn.0045773a
push ebp
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x1cc], 5
push eax
call fcn.004578fb
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 6
call fcn.00457a0a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c4], 5
call fcn.00457710
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c4], 3
call fcn.00457710
push 0x47231c
lea ecx, [esp + 0x30]
call fcn.0045773a
push str.act_key.ini
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x1d0], 7
call fcn.004578fb
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c8], 8
call fcn.00457a0a
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c4], 7
call fcn.00457710
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c4], 3
call fcn.00457710
mov edx, dword [esp + 0x18]
push 0x472344
push edx
call fcn.0042e838
mov esi, eax
add esp, 8
test esi, esi
je 0x409c5b
xor eax, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0xc0]
push eax
push ecx
push str._s___u___u___u
push esi
mov dword [esp + 0x48], 0
call fcn.0042e925
mov ecx, dword [esp + 0x1e4]
add esp, 0x18
lea edx, [esp + 0xb8]
push edx
call fcn.00457855
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.0042e78a
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.00457710
mov esi, dword [esp + 0x1cc]
push 0x4793c8
mov eax, dword [esi]
push eax
call fcn.0042e21c
add esp, 8
test eax, eax
jne 0x409c8e
xor al, al
jmp 0x409ce3
mov eax, 7
mov cl, byte [esp + eax + 0x1c]
mov dl, byte [esp + 0x24]
sub dl, cl
mov byte [esp + 0x24], dl
mov dl, byte [esp + eax + 0x1c]
xor dl, 0xcc
mov byte [esp + eax + 0x1c], dl
dec eax
jns 0x409c93
mov eax, dword [esp + 0x1d0]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1d4]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409ce1
mov al, byte [esp + 0x24]
test al, al
jne 0x409ce1
mov eax, 1
jmp 0x409ce3
xor eax, eax
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1bc
ret