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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e41b
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 5
ja case.default.0x10068f41
jmp dword [eax*4 + 0x100690f8]
push str.Common_Desktop
lea ecx, [ebp - 0x430]
call fcn.100085e0
jmp case.default.0x10068f41
lea eax, [ebp - 0x450]
push 1
push eax
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::filepath::getFolder_enum_elex::filepath::LinkType_
add esp, 8
mov ecx, esi
push eax
call fcn.1000d090
lea ecx, [ebp - 0x450]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp case.default.0x10068f41
push str.Common_Startup
lea ecx, [ebp - 0x430]
call fcn.100085e0
jmp case.default.0x10068f41
push str.Common_Programs
lea ecx, [ebp - 0x430]
call fcn.100085e0
jmp case.default.0x10068f41
lea eax, [ebp - 0x438]
push 0
push eax
call sym.iImportLib.dll_int___cdecl_elex::os::ISAFE_GetOSVersion_unsigned_long_int___unsigned_long_int__
add esp, 8
test eax, eax
je 0x10069002
mov eax, dword [ebp - 0x438]
and eax, 0xff00
cmp eax, 0x1300
sete al
test al, al
je 0x10069002
lea eax, [ebp - 0x468]
push 4
push eax
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::filepath::getFolder_enum_elex::filepath::LinkType_
add esp, 8
mov ecx, esi
push eax
call fcn.1000d090
lea ecx, [ebp - 0x468]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
jmp 0x100690c4
push str.Common_Start_Menu
lea ecx, [ebp - 0x430]
call fcn.100085e0
jmp case.default.0x10068f41
push esi
push 0
call sym.iImportLib.dll_void___cdecl_elex::filepath::getShortcutPath_enum_elex::filepath::LinkType__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 8
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10069083
cmp dword [ebp - 0x41c], 8
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x418]
push ecx
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
push 0
push eax
push dword [ebp - 0x434]
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x410], 0
jne 0x1006909d
xor ecx, ecx
jmp 0x100690b5
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100690a6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.100089b0
cmp dword [ebp - 0x41c], 8
jb 0x100690dc
push dword [ebp - 0x430]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret