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

Disassembly:
mov eax, 0x45744c
call fcn.004324bc
sub esp, 0x2c0
mov al, byte [0x4747d0]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x1c8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x41f40b
cmp dword [ebp - 0xb4], 1
jne 0x41f3dc
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 0x10
jmp 0x41f3f0
cmp dword [ebp - 0xb4], 2
jne 0x41f40b
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 0x19
push ebx
call eax
test eax, eax
jne 0x41f40b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.004483c4
jmp 0x41f573
lea edi, [esi + 0x4c]
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41f573
cmp dword [ebp - 0xb4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
jne 0x41f434
push 0x10
jmp 0x41f436
push 0x19
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x41f46d
lea eax, [ebp - 0x1c8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41f560
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.004483c4
jmp 0x41f560
push 0x4747d0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x24], ebx
call fcn.004482f5
cmp dword [ebp - 0xb4], 1
mov dword [ebp - 4], ebx
jne 0x41f49f
mov edi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x41f4a9
mov edi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x14]
call fcn.004483c4
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f505
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Desktop
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f4fa
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2cc]
push eax
call fcn.004483c4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f551
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Desktop
call fcn.004482f5
push ecx
add esi, 0x20
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
mov byte [ebp - 4], 1
call fcn.00447ffc
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], bl
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448287
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4