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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44b64e
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.0042fe20
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
mov ebx, 1
mov dword [esp + 0x107c], ebx
call fcn.00442b77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
xor eax, eax
mov word [esp + 0x840], si
mov ecx, 0x4a
lea edi, [esp + 0x842]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x108c]
lea edx, [esp + 0x70]
mov byte [esp + 0x107c], 2
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 0x104
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebx
test cl, cl
jne 0x404203
cmp byte [esp + 0x70], 0x5b
je 0x404234
mov esi, dword [esp + 0x1084]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.0041e110
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x10]
jmp 0x404acd
call fcn.00402cc0
mov ebp, eax
mov cl, 0x5d
xor eax, eax
cmp byte [esp + 0x70], cl
je 0x40424d
add eax, ebx
cmp byte [esp + eax + 0x70], cl
jne 0x404245
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x70]
lea edi, [esp + 0x264]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x265], 0
lea eax, [esp + eax + 0x71]
lea edx, [esp + 0x458]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebx
test cl, cl
jne 0x404280
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.0041b420
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 3
call fcn.0041e1a0
sub esp, 0xc
lea eax, [esp + 0x270]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov ebx, 4
push eax
mov byte [esp + 0x108c], bl
call fcn.0041e110
call fcn.0041d8a0
add esp, 0xc
cmp eax, 8
ja case.default.0x4042dd
jmp dword [eax*4 + 0x404b1c]
push pe_nt_image_headers32
lea ecx, [esp + 0xe84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x451b00]
mov edx, dword [str.C:Program_Files]
mov ecx, dword [0x451b04]
mov dword [esp + 0x268], eax
mov al, byte [0x451b0c]
mov dword [esp + 0x264], edx
mov edx, dword [0x451b08]
mov dword [esp + 0x26c], ecx
mov cl, byte [esp + 0xe80]
mov byte [esp + 0x274], al
mov dword [esp + 0x270], edx
mov byte [esp + 0x264], cl
xor eax, eax
jmp 0x404350
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404350
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404370
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404370
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404382
jmp 0x40488c
mov ecx, 0x4793e8
call fcn.0041df60
cmp eax, 3
je 0x4043be
mov eax, dword [0x4793ec]
lea edx, [esp + 0x70]
sub edx, eax
jmp 0x4043b0
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4043b0
jmp 0x4043fb
mov ecx, 0x4793e8
call fcn.0041df60
sub eax, 1
push eax
push 1
lea edx, [esp + 0x54]
push edx
mov ecx, 0x4793e8
call fcn.0041e2e0
mov ecx, dword [eax + 4]
lea edx, [esp + 0x70]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4043e4
lea ecx, [esp + 0x4c]
call fcn.0041df70
lea eax, [esp + 0x458]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404404
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404416
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x70]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404437
sub eax, edx
cmp eax, 3
jae case.default.0x4042dd
lea edi, [esp + 0x70]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404452
mov ax, word [0x451828]
mov word [edi], ax
jmp case.default.0x4042dd
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x458]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404470
jmp case.default.0x4042dd
push pe_nt_image_headers32
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x4044a0
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x4044c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4044c0
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4044d2
jmp 0x40488c
push pe_nt_image_headers32
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
jmp 0x404500
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404500
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404520
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404520
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404532
jmp 0x40488c
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4045ae
mov esi, dword [esp + 0x1084]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.0041e110
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.0041df70
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041b440
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x107c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404ae2
lea eax, [esp + 0x1c]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4045c8
lea ecx, [esp + 0x70]
push ecx
jmp 0x4045fd
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x404643
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x70]
push edx
mov esi, dword [esp + 0x1088]
mov ecx, esi
call fcn.0041e110
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.0041df70
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041b440
lea ecx, [esp + 0x10]
call fcn.004018b0
jmp 0x404aec
xor eax, eax
jmp 0x404650
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404650
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404670
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404670
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404682
jmp 0x40488c
lea eax, [esp + 0x264]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x264]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4046b0
sub eax, edx
cmp byte [esp + eax + 0x263], 0x5c
jne 0x4046e2
lea eax, [esp + 0x264]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4046d0
sub eax, edx
mov byte [esp + eax + 0x263], cl
xor eax, eax
jmp 0x4046f0
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x4046f0
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404710
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404710
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404722
jmp 0x40488c
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x844]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push str.Common_Programs
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x840]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404100
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1080], 5
call fcn.00401ff0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x107c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x70]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4047d0
push pe_nt_image_headers32
lea eax, [esp + 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0xb60]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404800
cmp ebp, 3
mov ecx, dword [str.Start_MenuPrograms]
mov edx, dword [0x451a90]
mov eax, dword [0x451a94]
mov dword [edi], ecx
mov ecx, dword [0x451a98]
mov dword [edi + 4], edx
mov edx, dword [0x451a9c]
mov dword [edi + 8], eax
mov al, byte [0x451aa0]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov byte [edi + 0x14], al
je 0x404846
cmp ebp, ebx
jne 0x404862
xor eax, eax
jmp 0x404850
mov cl, byte [esp + eax + 0xb60]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404850
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404870
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404870
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404882
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x4042dd
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.0041b290
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x451a48
call fcn.0041e110
lea ecx, [esp + 0x38]
call fcn.0041b450
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Common_Startup
call fcn.0041e110
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041b980
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1080], 6
call fcn.0041e0f0
lea ecx, [esp + 0x64]
mov byte [esp + 0x107c], bl
call fcn.0041df70
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x96c]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x404920
lea ecx, [esp + 0x28]
call fcn.0041b3c0
lea eax, [esp + 0x96c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404940
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x96c], cl
je 0x40496c
jmp 0x404960
sub eax, 1
cmp byte [esp + eax + 0x96c], cl
jne 0x404960
add eax, 1
lea edx, [esp + eax + 0x96c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x404993
mov edi, edi
add edx, 1
mov byte [esp + ecx + 0xc8c], al
mov al, byte [edx]
add ecx, 1
test al, al
jne 0x404980
mov edx, dword [str._Start_Menu__]
mov eax, dword [0x451a28]
mov byte [esp + ecx + 0xc8c], 0
mov ecx, dword [0x451a2c]
mov dword [esp + 0x64c], edx
mov dx, word [0x451a30]
mov dword [esp + 0x650], eax
lea eax, [esp + 0xc8c]
mov dword [esp + 0x654], ecx
mov word [esp + 0x658], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4049e0
lea edi, [esp + 0x64c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4049f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x458]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404a18
lea edi, [esp + 0x64c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
nop
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404a30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
sub esp, 0xc
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x658]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.0041e110
lea ecx, [esp + 0x64]
push ecx
call fcn.00404180
mov ecx, dword [eax + 4]
add esp, 0x10
lea edx, [esp + 0x70]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x404a72
lea ecx, [esp + 0x58]
call fcn.0041df70
mov esi, dword [esp + 0x1084]
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.0041e110
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.0041df70
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041b440
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x107c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404aec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x1088]
mov byte [esp + 0x107c], 0
call fcn.0041df70
mov ecx, dword [esp + 0x1074]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1070
ret