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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44f88e
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.00433f60
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
mov ebp, 1
mov dword [esp + 0x107c], ebp
call fcn.00446d37
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
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 ecx, [esp + 0x70]
mov byte [esp + 0x107c], 2
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], 0x104
sub ecx, eax
mov dl, byte [eax]
mov byte [eax + ecx], dl
inc eax
test dl, dl
jne 0x404363
cmp byte [esp + 0x70], 0x5b
je 0x404393
mov esi, dword [esp + 0x1084]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.00421500
mov dword [esp + 0x14], ebp
lea eax, [ebx - 0x10]
jmp 0x404baa
call fcn.00402e80
mov dl, byte [esp + 0x70]
mov ebp, eax
mov cl, 0x5d
xor eax, eax
cmp dl, cl
je 0x4043af
mov dl, byte [esp + eax + 0x71]
inc eax
cmp dl, cl
jne 0x4043a6
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 cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4043e0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.0041dfc0
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 3
call fcn.00421590
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.00421500
call fcn.00420b10
add esp, 0xc
cmp eax, 8
ja case.default.0x40443c
jmp dword [eax*4 + 0x404bf8]
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 0x4044b0
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x4044b0
lea eax, [esp + 0x458]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044d0
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4044e0
jmp 0x404988
mov ecx, 0x4766d0
call fcn.00421230
cmp eax, 3
je 0x404513
mov eax, dword [0x4766d4]
lea edx, [esp + 0x70]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x404507
jmp 0x40454a
mov ecx, 0x4766d0
call fcn.00421230
dec eax
push eax
push 1
lea edx, [esp + 0x54]
push edx
mov ecx, 0x4766d0
call fcn.00421710
mov ecx, dword [eax + 4]
lea edx, [esp + 0x70]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x404537
lea ecx, [esp + 0x4c]
call fcn.00421240
lea eax, [esp + 0x458]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404553
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404561
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]
inc eax
test cl, cl
jne 0x404580
sub eax, edx
cmp eax, 3
jae case.default.0x40443c
lea edi, [esp + 0x70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404597
mov ax, word [0x455828]
mov word [edi], ax
jmp case.default.0x40443c
xor eax, eax
nop
mov cl, byte [esp + eax + 0x458]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x4045b0
jmp case.default.0x40443c
push 0x118
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x4045e0
lea eax, [esp + 0x458]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404600
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404610
jmp 0x404988
push 0x118
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404632
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404650
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404650
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404660
jmp 0x404988
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4046da
mov esi, dword [esp + 0x1084]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.00421500
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.00421240
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041dfe0
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 0x404bbf
lea eax, [esp + 0x1c]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4046f4
lea ecx, [esp + 0x70]
push ecx
jmp 0x404729
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40476f
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.00421500
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.00421240
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041dfe0
lea ecx, [esp + 0x10]
call fcn.004023c0
jmp 0x404bc9
xor eax, eax
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404771
lea eax, [esp + 0x458]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404790
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4047a0
jmp 0x404988
lea eax, [esp + 0x264]
push eax
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x264]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047d0
sub eax, edx
cmp byte [esp + eax + 0x263], 0x5c
jne 0x404800
lea eax, [esp + 0x264]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047f0
sub eax, edx
mov byte [esp + eax + 0x263], cl
xor eax, eax
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404802
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404820
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404820
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404830
jmp 0x404988
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.00404270
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1080], 5
call fcn.00402890
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 0x4048d0
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
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4048e0
push 0x118
lea eax, [esp + 0xb64]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0xb60]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404905
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 0x404949
cmp ebp, ebx
jne 0x404960
xor eax, eax
jmp 0x404950
mov cl, byte [esp + eax + 0xb60]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404950
lea eax, [esp + 0x458]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404970
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404980
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.0x40443c
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.0041de20
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x455a48
call fcn.00421470
lea ecx, [esp + 0x38]
call fcn.0041e000
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Common_Startup
call fcn.00421470
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041e4f0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1080], 6
call fcn.00421440
lea ecx, [esp + 0x64]
mov byte [esp + 0x107c], bl
call fcn.00421240
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x96c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x404a20
lea ecx, [esp + 0x28]
call fcn.0041df30
lea eax, [esp + 0x96c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a40
sub eax, edx
mov dl, byte [esp + eax + 0x96c]
mov cl, 0x5c
cmp dl, cl
je 0x404a62
mov dl, byte [esp + eax + 0x96b]
dec eax
cmp dl, cl
jne 0x404a56
inc eax
lea edx, [esp + eax + 0x96c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x404a81
inc edx
mov byte [esp + ecx + 0xc8c], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x404a72
mov edx, dword [str._Start_Menu__]
mov eax, dword [0x455a28]
mov dword [esp + 0x64c], edx
mov dx, word [0x455a30]
mov byte [esp + ecx + 0xc8c], 0
mov ecx, dword [0x455a2c]
mov dword [esp + 0x650], eax
lea eax, [esp + 0xc8c]
mov word [esp + 0x658], dx
mov dword [esp + 0x654], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ac7
lea edi, [esp + 0x64c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ad8
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 + 0x458]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404b00
lea edi, [esp + 0x64c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404b13
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.00421500
lea ecx, [esp + 0x64]
push ecx
call fcn.004042e0
mov ecx, dword [eax + 4]
add esp, 0x10
lea edx, [esp + 0x70]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x404b53
lea ecx, [esp + 0x58]
call fcn.00421240
mov esi, dword [esp + 0x1084]
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.00421500
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.00421240
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.0041dfe0
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 0x404bc9
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.00421240
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