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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44929e
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.0042da80
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.004407c7
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 0x403fd3
cmp byte [esp + 0x70], 0x5b
je 0x404003
mov esi, dword [esp + 0x1084]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.0041bcf0
mov dword [esp + 0x14], ebp
lea eax, [ebx - 0x10]
jmp 0x40481a
call fcn.00402af0
mov dl, byte [esp + 0x70]
mov ebp, eax
mov cl, 0x5d
xor eax, eax
cmp dl, cl
je 0x40401f
mov dl, byte [esp + eax + 0x71]
inc eax
cmp dl, cl
jne 0x404016
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 0x404050
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.00419420
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 3
call fcn.0041bd80
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.0041bcf0
call fcn.0041b460
add esp, 0xc
cmp eax, 8
ja case.default.0x4040ac
jmp dword [eax*4 + 0x404868]
push pe_nt_image_headers32
lea ecx, [esp + 0xe84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x44eab0]
mov edx, dword [str.C:Program_Files]
mov ecx, dword [0x44eab4]
mov dword [esp + 0x268], eax
mov al, byte [0x44eabc]
mov dword [esp + 0x264], edx
mov edx, dword [0x44eab8]
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 0x404120
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404120
lea eax, [esp + 0x458]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404140
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404150
jmp 0x4045f8
mov ecx, 0x4763e8
call fcn.0041bb30
cmp eax, 3
je 0x404183
mov eax, dword [0x4763ec]
lea edx, [esp + 0x70]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x404177
jmp 0x4041ba
mov ecx, 0x4763e8
call fcn.0041bb30
dec eax
push eax
push 1
lea edx, [esp + 0x54]
push edx
mov ecx, 0x4763e8
call fcn.0041bec0
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 0x4041a7
lea ecx, [esp + 0x4c]
call fcn.0041bb40
lea eax, [esp + 0x458]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4041c3
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4041d1
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 0x4041f0
sub eax, edx
cmp eax, 3
jae case.default.0x4040ac
lea edi, [esp + 0x70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404207
mov ax, word [0x44e828]
mov word [edi], ax
jmp case.default.0x4040ac
xor eax, eax
nop
mov cl, byte [esp + eax + 0x458]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404220
jmp case.default.0x4040ac
push pe_nt_image_headers32
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 0x404250
lea eax, [esp + 0x458]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404270
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404280
jmp 0x4045f8
push pe_nt_image_headers32
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 0x4042a2
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x4042c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042c0
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4042d0
jmp 0x4045f8
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x40434a
mov esi, dword [esp + 0x1084]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.0041bcf0
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.0041bb40
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.00419440
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 0x40482f
lea eax, [esp + 0x1c]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x404364
lea ecx, [esp + 0x70]
push ecx
jmp 0x404399
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x264]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4043df
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.0041bcf0
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.0041bb40
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.00419440
lea ecx, [esp + 0x10]
call fcn.00401840
jmp 0x404839
xor eax, eax
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x4043e1
lea eax, [esp + 0x458]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404400
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404410
jmp 0x4045f8
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]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404440
sub eax, edx
cmp byte [esp + eax + 0x263], 0x5c
jne 0x404470
lea eax, [esp + 0x264]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404460
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 0x404472
lea eax, [esp + 0x458]
mov edx, eax
jmp 0x404490
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404490
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4044a0
jmp 0x4045f8
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.00403ee0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1080], 5
call fcn.00401f80
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 0x404540
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 0x404550
push pe_nt_image_headers32
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 0x404575
cmp ebp, 3
mov ecx, dword [str.Start_MenuPrograms]
mov edx, dword [0x44ea40]
mov eax, dword [0x44ea44]
mov dword [edi], ecx
mov ecx, dword [0x44ea48]
mov dword [edi + 4], edx
mov edx, dword [0x44ea4c]
mov dword [edi + 8], eax
mov al, byte [0x44ea50]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov byte [edi + 0x14], al
je 0x4045b9
cmp ebp, ebx
jne 0x4045d0
xor eax, eax
jmp 0x4045c0
mov cl, byte [esp + eax + 0xb60]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x4045c0
lea eax, [esp + 0x458]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045e0
lea edi, [esp + 0x70]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4045f0
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.0x4040ac
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
call fcn.00419300
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x44e9f8
call fcn.0041bcf0
lea ecx, [esp + 0x38]
call fcn.00419460
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Common_Startup
call fcn.0041bcf0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x38]
call fcn.00419930
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1080], 6
call fcn.0041bcc0
lea ecx, [esp + 0x64]
mov byte [esp + 0x107c], bl
call fcn.0041bb40
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 0x404690
lea ecx, [esp + 0x28]
call fcn.00419400
lea eax, [esp + 0x96c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046b0
sub eax, edx
mov dl, byte [esp + eax + 0x96c]
mov cl, 0x5c
cmp dl, cl
je 0x4046d2
mov dl, byte [esp + eax + 0x96b]
dec eax
cmp dl, cl
jne 0x4046c6
inc eax
lea edx, [esp + eax + 0x96c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x4046f1
inc edx
mov byte [esp + ecx + 0xc8c], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x4046e2
mov edx, dword [str._Start_Menu__]
mov eax, dword [0x44e9dc]
mov dword [esp + 0x64c], edx
mov dx, word [0x44e9e4]
mov byte [esp + ecx + 0xc8c], 0
mov ecx, dword [0x44e9e0]
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 0x404737
lea edi, [esp + 0x64c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404748
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 0x404770
lea edi, [esp + 0x64c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404783
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.0041bcf0
lea ecx, [esp + 0x64]
push ecx
call fcn.00403f50
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 0x4047c3
lea ecx, [esp + 0x58]
call fcn.0041bb40
mov esi, dword [esp + 0x1084]
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.0041bcf0
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
mov byte [esp + 0x107c], 3
call fcn.0041bb40
lea ecx, [esp + 0x28]
mov byte [esp + 0x107c], 2
call fcn.00419440
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 0x404839
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.0041bb40
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