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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44f1ee
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.004338c0
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.00446697
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 0x4043f3
cmp byte [esp + 0x70], 0x5b
je 0x404424
mov esi, dword [esp + 0x1084]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.00420ec0
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x10]
jmp 0x404cbd
call fcn.00402eb0
mov ebp, eax
mov cl, 0x5d
xor eax, eax
cmp byte [esp + 0x70], cl
je 0x40443d
add eax, ebx
cmp byte [esp + eax + 0x70], cl
jne 0x404435
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 0x404470
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.0041d930
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 3
call fcn.00420f50
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.00420ec0
call fcn.00420500
add esp, 0xc
cmp eax, 8
ja case.default.0x4044cd
jmp dword [eax*4 + 0x404d0c]
push 0x118
lea ecx, [esp + 0xe84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x455b00]
mov edx, dword [str.C:Program_Files]
mov ecx, dword [0x455b04]
mov dword [esp + 0x268], eax
mov al, byte [0x455b0c]
mov dword [esp + 0x264], edx
mov edx, dword [0x455b08]
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 0x404540
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404540
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404560
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404560
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404572
jmp 0x404a7c
mov ecx, 0x476680
call fcn.00420bf0
cmp eax, 3
je 0x4045ae
mov eax, dword [0x476684]
lea edx, [esp + 0x70]
sub edx, eax
jmp 0x4045a0
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4045a0
jmp 0x4045eb
mov ecx, 0x476680
call fcn.00420bf0
sub eax, 1
push eax
push 1
lea edx, [esp + 0x54]
push edx
mov ecx, 0x476680
call fcn.004210d0
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 0x4045d4
lea ecx, [esp + 0x4c]
call fcn.00420c00
lea eax, [esp + 0x458]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4045f4
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404606
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 0x404627
sub eax, edx
cmp eax, 3
jae case.default.0x4044cd
lea edi, [esp + 0x70]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404642
mov ax, word [0x455828]
mov word [edi], ax
jmp case.default.0x4044cd
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 0x404660
jmp case.default.0x4044cd
push 0x118
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 0x404690
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x4046b0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4046b0
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4046c2
jmp 0x404a7c
push 0x118
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
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 0x404a7c
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x40479e
mov esi, dword [esp + 0x1084]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.00420ec0
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.00420c00
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041d950
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 0x404cd2
lea eax, [esp + 0x1c]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4047b8
lea ecx, [esp + 0x70]
push ecx
jmp 0x4047ed
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x404833
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.00420ec0
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.00420c00
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041d950
lea ecx, [esp + 0x10]
call fcn.00402550
jmp 0x404cdc
xor eax, eax
jmp 0x404840
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404840
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404860
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404860
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404872
jmp 0x404a7c
lea eax, [esp + 0x264]
push eax
push 0x118
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 0x4048a0
sub eax, edx
cmp byte [esp + eax + 0x263], 0x5c
jne 0x4048d2
lea eax, [esp + 0x264]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4048c0
sub eax, edx
mov byte [esp + eax + 0x263], cl
xor eax, eax
jmp 0x4048e0
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x4048e0
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404900
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404900
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404912
jmp 0x404a7c
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.004042f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1080], 5
call fcn.004028c0
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 0x4049b4
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 0x4049c0
push 0x118
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 0x4049f0
cmp ebp, 3
mov ecx, dword [str.Start_MenuPrograms]
mov edx, dword [0x455a90]
mov eax, dword [0x455a94]
mov dword [edi], ecx
mov ecx, dword [0x455a98]
mov dword [edi + 4], edx
mov edx, dword [0x455a9c]
mov dword [edi + 8], eax
mov al, byte [0x455aa0]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov byte [edi + 0x14], al
je 0x404a36
cmp ebp, ebx
jne 0x404a52
xor eax, eax
jmp 0x404a40
mov cl, byte [esp + eax + 0xb60]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404a40
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404a60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404a60
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404a72
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.0x4044cd
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.0041d790
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x455a48
call fcn.00420e30
lea ecx, [esp + 0x38]
call fcn.0041d970
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Common_Startup
call fcn.00420e30
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041de90
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1080], 6
call fcn.00420e00
lea ecx, [esp + 0x64]
mov byte [esp + 0x107c], bl
call fcn.00420c00
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 0x404b10
lea ecx, [esp + 0x28]
call fcn.0041d8a0
lea eax, [esp + 0x96c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404b30
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x96c], cl
je 0x404b5c
jmp 0x404b50
sub eax, 1
cmp byte [esp + eax + 0x96c], cl
jne 0x404b50
add eax, 1
lea edx, [esp + eax + 0x96c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x404b83
mov edi, edi
add edx, 1
mov byte [esp + ecx + 0xc8c], al
mov al, byte [edx]
add ecx, 1
test al, al
jne 0x404b70
mov edx, dword [str._Start_Menu__]
mov eax, dword [0x455a28]
mov byte [esp + ecx + 0xc8c], 0
mov ecx, dword [0x455a2c]
mov dword [esp + 0x64c], edx
mov dx, word [0x455a30]
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 0x404bd0
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 0x404be7
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 0x404c08
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 0x404c20
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.00420ec0
lea ecx, [esp + 0x64]
push ecx
call fcn.00404370
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 0x404c62
lea ecx, [esp + 0x58]
call fcn.00420c00
mov esi, dword [esp + 0x1084]
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.00420ec0
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.00420c00
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041d950
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 0x404cdc
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.00420c00
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