Function at 0x4079a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x32c]
push edi
mov edi, esi
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x4079cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
mov edx, dword [str._Common_Desktop_]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
mov byte [esp + 0x20], al
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407a37
mov edx, dword [str._Common_Desktop_]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
inc edx
push ecx
lea eax, [esp + 0x128]
push edx
push eax
call fcn.0041c580
add esp, 0xc
mov ebx, 2
jmp 0x407bff
mov edx, dword [str._Common_Programs_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407a87
mov edx, dword [str._Common_Programs_]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
inc edx
push ecx
lea ecx, [esp + 0x128]
push edx
push ecx
call fcn.0041c580
add esp, 0xc
mov ebx, 2
jmp 0x407bff
mov edx, dword [str._Common_Start_Menu_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407ad7
mov edx, dword [str._Common_Start_Menu_]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
inc edx
push ecx
push edx
lea edx, [esp + 0x12c]
push edx
call fcn.0041c580
add esp, 0xc
mov ebx, 2
jmp 0x407bff
mov edx, dword [str._Common_Startup_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407b03
mov edx, dword [str._Common_Startup_]
jmp 0x407a0c
mov edx, dword [str._Desktop_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407b2f
mov edx, dword [str._Desktop_]
jmp 0x407bd9
mov edx, dword [str._Programs_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407b72
mov edx, dword [str._Programs_]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
inc edx
push ecx
push edx
lea edx, [esp + 0x12c]
push edx
jmp 0x407bf2
mov edx, dword [str._Start_Menu_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407bb2
mov edx, dword [str._Start_Menu_]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
inc edx
push ecx
lea eax, [esp + 0x128]
push edx
push eax
jmp 0x407bf2
mov edx, dword [str._Startup_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407bff
mov edx, dword [str._Startup_]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
inc edx
push ecx
lea ecx, [esp + 0x128]
push edx
push ecx
call fcn.0041c580
add esp, 0xc
mov ebx, 1
xor ebp, ebp
cmp ebx, 1
je 0x407c0f
cmp ebx, 2
jne 0x407dc9
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, 1
lea edx, [ecx + esi + 2]
mov dword [esp + 0x18], edx
jne 0x407cd7
test ebp, ebp
mov ebx, 2
mov dword [esp + 0x14], VariantInit
jle 0x407ce4
mov edi, str.Common
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x124]
push ecx
push str.Common
push eax
call fcn.00424410
add esp, 0xc
test eax, eax
jne 0x407ce4
mov edi, str.Common
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x228]
lea edi, [esp + ecx + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x330]
jmp 0x407ce4
mov ebx, 1
mov dword [esp + 0x14], reloc.OLEAUT32.dll_SysReAllocString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407d69
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x130]
push 0
push eax
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407d58
cmp dword [esp + 0x1c], 1
jne 0x407d58
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x407d7d
test ebp, ebp
jg 0x407e5b
mov esi, dword [esp + 0x330]
jmp 0x407d71
test ebp, ebp
jg 0x407e5b
inc ebp
cmp ebp, 2
jl 0x407c01
jmp 0x407dc9
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
mov al, byte [esp + ecx + 0x1f]
cmp al, 0x5c
je 0x407dc9
cmp al, 0x2f
je 0x407dc9
mov edi, 0x450680
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov al, byte [edi]
cmp al, 0x5c
je 0x407dd7
cmp al, 0x2f
jne 0x407dd8
inc edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
mov dword [esp + 0x10], ecx
jae 0x407e21
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
lea eax, [ecx - 1]
test eax, eax
jl 0x407e6e
mov dl, byte [esp + eax + 0x20]
cmp dl, 0x5c
je 0x407e3b
cmp dl, 0x2f
je 0x407e3b
dec eax
jns 0x407e28
jmp 0x407e6e
mov bl, byte [esp + eax + 0x20]
lea esi, [esp + eax + 0x20]
test esi, esi
mov byte [esi], 0
je 0x407e6a
lea eax, [esp + 0x20]
push eax
call fcn.004066b0
add esp, 4
test eax, eax
jne 0x407e68
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov byte [esi], bl
mov ecx, dword [esp + 0x10]
lea eax, [esp + ecx + 0x1c]
push str..lnk
push eax
call fcn.00421a60
add esp, 8
test eax, eax
je 0x407eb2
mov edi, str..lnk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x338]
mov ecx, dword [esp + 0x334]
push 0
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00407840
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret