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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5511b6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x7f
lea eax, [ebp - 0x10f]
push 0
push eax
call fcn.0052f600
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edi, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
push 0x7f
lea ecx, [ebp - 0x8f]
push 0
push ecx
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x90], 0
call fcn.0052f600
add esp, 0x18
push str._DESKTOP
lea ecx, [ebp - 0x118]
call fcn.00401f50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x118]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4178a7
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
jl 0x4178a7
push eax
push ecx
call fcn.00530b86
add esp, 8
test eax, eax
je 0x4178a7
sub eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4178a7
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x11c], 0x80
call esi
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.Desktop
push ecx
call edi
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417871
sub eax, edx
mov ecx, ebx
jne 0x417885
call fcn.00401450
jmp 0x4178a7
lea eax, [ebp - 0x90]
push eax
push str._DESKTOP
call fcn.00403dc0
push 0x565058
push 0x565054
mov ecx, ebx
call fcn.00403dc0
push 9
push str._FAVORITE
lea ecx, [ebp - 0x118]
call fcn.004017f0
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x417996
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x417996
push ecx
push eax
call fcn.00530b86
add esp, 8
test eax, eax
je 0x417996
sub eax, dword [ebx]
cmp eax, 0xffffffff
je 0x417996
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push SysReAllocStringLen
mov dword [ebp - 0x11c], 0x80
call esi
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push 0
push str.Favorites
push eax
call edi
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x90]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417960
sub eax, edx
mov ecx, ebx
jne 0x417974
call fcn.00401450
jmp 0x417996
lea edx, [ebp - 0x90]
push edx
push str._FAVORITE
call fcn.00403dc0
push 0x565058
push 0x565054
mov ecx, ebx
call fcn.00403dc0
push 0xb
push str._CONNECTION
lea ecx, [ebp - 0x118]
call fcn.004017f0
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x417aa2
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x417aa2
push ecx
push eax
call fcn.00530b86
add esp, 8
test eax, eax
je 0x417aa2
sub eax, dword [ebx]
cmp eax, 0xffffffff
je 0x417aa2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push SysReAllocStringLen
mov dword [ebp - 0x11c], 0x80
call esi
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
push str.Favorites
push edx
call edi
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a48
sub eax, edx
jne 0x417a5c
mov ecx, ebx
call fcn.00401450
jmp 0x417aa2
lea eax, [ebp - 0x90]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417a63
mov ecx, dword [0x565d28]
mov dx, word [0x565d2c]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [ebp - 0x90]
push eax
push str._CONNECTION
mov ecx, ebx
call fcn.00403dc0
push 0x565058
push 0x565054
mov ecx, ebx
call fcn.00403dc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417acb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret