Function at 0x406b17
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1470
call fcn.00412030
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x145c]
mov ebx, ecx
mov dword [ebp - 0x1460], edx
push eax
mov dword [ebp - 0x1470], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jns 0x406b5b
xor eax, eax
jmp 0x406df2
push edi
lea eax, [ebp - 0x1458]
xor edi, edi
push eax
push 0x23
push edi
mov dword [ebp - 0x1458], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x406bba
push ebx
push dword [ebp - 0x1458]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406db4
mov eax, dword [ebp - 0x145c]
push dword [ebp - 0x1458]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x414220]
call esi
mov esi, dword [ebp - 0x1460]
mov dword [ebp - 0x1458], edi
jmp 0x406d9c
lea eax, [ebp - 0x1458]
push eax
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
lea eax, [ebp - 0x41c]
js 0x406c0d
push eax
push dword [ebp - 0x1458]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406db4
mov eax, dword [ebp - 0x145c]
push dword [ebp - 0x1458]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x414220]
call esi
mov dword [ebp - 0x1458], edi
jmp 0x406c1f
push 0x104
push eax
push 0x1f5
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x1458]
mov ebx, edi
push eax
push 0x19
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x406c79
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x1458]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406c4f
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x145c]
push dword [ebp - 0x1458]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x414220]
call esi
mov dword [ebp - 0x1458], edi
test ebx, ebx
jne 0x406d36
lea eax, [ebp - 0x1464]
push eax
push 0x20019
push edi
push 0x401690
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406d08
lea eax, [ebp - 0x1468]
mov dword [ebp - 0x1468], 0x104
push eax
lea eax, [ebp - 0x210]
xor esi, esi
push eax
lea eax, [ebp - 0x146c]
inc esi
push eax
push edi
push 0x401714
push dword [ebp - 0x1464]
mov dword [ebp - 0x146c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406cf8
mov eax, dword [ebp - 0x1468]
and eax, 0xfffffffe
cmp eax, 0x20c
jae 0x406e04
xor ecx, ecx
mov ebx, esi
mov word [ebp + eax - 0x210], cx
push dword [ebp - 0x1464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x406d36
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x406d36
sub esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x106
push 0x401734
call fcn.00410f31
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x1454]
call fcn.0040eb66
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0xc38]
call fcn.0040eb66
mov esi, dword [ebp - 0x1460]
lea eax, [ebp - 0xe3c]
push eax
mov ebx, dword [ebp - 0x1470]
lea eax, [ebp - 0x103e]
push eax
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0xa2e]
push eax
push 0x401748
push 0x900
push edi
push edi
push esi
push ebx
call fcn.00410f98
add esp, 0x28
test eax, eax
js 0x406db4
sub esp, 0xc
mov edx, esi
mov ecx, ebx
push 0x401760
call fcn.00410f31
test eax, eax
js 0x406db4
xor edi, edi
inc edi
cmp dword [ebp - 0x1458], 0
je 0x406dd9
mov eax, dword [ebp - 0x145c]
push dword [ebp - 0x1458]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x414220]
call esi
mov ecx, dword [ebp - 0x145c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x414220]
call esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411980
mov esp, ebp
pop ebp
ret 4
call fcn.00411ad9
int3