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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44fa8e
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.00434160
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.00446f37
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 0x404413
cmp byte [esp + 0x70], 0x5b
je 0x404444
mov esi, dword [esp + 0x1084]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.00421760
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x10]
jmp 0x404cdd
call fcn.00402eb0
mov ebp, eax
mov cl, 0x5d
xor eax, eax
cmp byte [esp + 0x70], cl
je 0x40445d
add eax, ebx
cmp byte [esp + eax + 0x70], cl
jne 0x404455
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 0x404490
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.0041e1c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 3
call fcn.004217f0
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.00421760
call fcn.00420da0
add esp, 0xc
cmp eax, 8
ja case.default.0x4044ed
jmp dword [eax*4 + 0x404d2c]
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 0x404560
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404560
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404580
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404580
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404592
jmp 0x404a9c
mov ecx, 0x4766d0
call fcn.00421490
cmp eax, 3
je 0x4045ce
mov eax, dword [0x4766d4]
lea edx, [esp + 0x70]
sub edx, eax
jmp 0x4045c0
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x4045c0
jmp 0x40460b
mov ecx, 0x4766d0
call fcn.00421490
sub eax, 1
push eax
push 1
lea edx, [esp + 0x54]
push edx
mov ecx, 0x4766d0
call fcn.00421970
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 0x4045f4
lea ecx, [esp + 0x4c]
call fcn.004214a0
lea eax, [esp + 0x458]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404614
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404626
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 0x404647
sub eax, edx
cmp eax, 3
jae case.default.0x4044ed
lea edi, [esp + 0x70]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x404662
mov ax, word [0x455828]
mov word [edi], ax
jmp case.default.0x4044ed
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 0x404680
jmp case.default.0x4044ed
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 0x4046b0
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x4046d0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4046d0
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4046e2
jmp 0x404a9c
push 0x118
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
jmp 0x404710
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404710
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404730
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404730
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404742
jmp 0x404a9c
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4047be
mov esi, dword [esp + 0x1084]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.00421760
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.004214a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041e1e0
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 0x404cf2
lea eax, [esp + 0x1c]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4047d8
lea ecx, [esp + 0x70]
push ecx
jmp 0x40480d
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x404853
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.00421760
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.004214a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041e1e0
lea ecx, [esp + 0x10]
call fcn.00402400
jmp 0x404cfc
xor eax, eax
jmp 0x404860
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404860
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404880
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404880
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404892
jmp 0x404a9c
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 0x4048c0
sub eax, edx
cmp byte [esp + eax + 0x263], 0x5c
jne 0x4048f2
lea eax, [esp + 0x264]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4048e0
sub eax, edx
mov byte [esp + eax + 0x263], cl
xor eax, eax
jmp 0x404900
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404900
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404920
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404920
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404932
jmp 0x404a9c
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
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.00404310
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 0x4049d4
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 0x4049e0
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 0x404a10
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 0x404a56
cmp ebp, ebx
jne 0x404a72
xor eax, eax
jmp 0x404a60
mov cl, byte [esp + eax + 0xb60]
mov byte [esp + eax + 0x70], cl
add eax, 1
test cl, cl
jne 0x404a60
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404a80
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404a80
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404a92
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.0x4044ed
push 0x80000002
lea ecx, [esp + 0x2c]
call fcn.0041e020
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x455a48
call fcn.004216d0
lea ecx, [esp + 0x38]
call fcn.0041e200
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Common_Startup
call fcn.004216d0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041e720
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1080], 6
call fcn.004216a0
lea ecx, [esp + 0x64]
mov byte [esp + 0x107c], bl
call fcn.004214a0
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 0x404b30
lea ecx, [esp + 0x28]
call fcn.0041e130
lea eax, [esp + 0x96c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404b50
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x96c], cl
je 0x404b7c
jmp 0x404b70
sub eax, 1
cmp byte [esp + eax + 0x96c], cl
jne 0x404b70
add eax, 1
lea edx, [esp + eax + 0x96c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x404ba3
mov edi, edi
add edx, 1
mov byte [esp + ecx + 0xc8c], al
mov al, byte [edx]
add ecx, 1
test al, al
jne 0x404b90
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 0x404bf0
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 0x404c07
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 0x404c28
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 0x404c40
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.00421760
lea ecx, [esp + 0x64]
push ecx
call fcn.00404390
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 0x404c82
lea ecx, [esp + 0x58]
call fcn.004214a0
mov esi, dword [esp + 0x1084]
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.00421760
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.004214a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041e1e0
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 0x404cfc
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.004214a0
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