Function at 0x10069960
Capabilities:
Check if file exists
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009e301
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x474], eax
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
mov edi, edx
xor eax, eax
push 0x3fe
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
push eax
mov dword [esp + 0x4a0], eax
lea eax, [esp + 0x1c]
push eax
call sym.iImportLib.dll_int___cdecl_elex::os::ISAFE_GetOSVersion_unsigned_long_int___unsigned_long_int__
add esp, 0x14
xor esi, esi
call sym.iImportLib.dll_bool___cdecl_elex::os::IsX64System_void_
test al, al
mov ecx, 0x200
cmovne esi, ecx
lea eax, [esp + 0x40]
push eax
or esi, 0x20019
push esi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10069a68
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x68]
push eax
push 0
push str.Common_Start_Menu
push dword [esp + 0x54]
mov dword [esp + 0x74], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10069a7f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x40], 0
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
cmp word [esp + 0x7c], ax
jne 0x10069aa1
xor ecx, ecx
jmp 0x10069abf
lea ecx, [esp + 0x7c]
lea edx, [ecx + 2]
jmp 0x10069ab0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069ab0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x6c]
call fcn.100089b0
push 0x100a21f4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x494], 1
call fcn.10011cb0
push edi
mov edx, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x498], 2
call fcn.100169d0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [esp + 0x4c]
add esp, 8
cmp eax, edi
je 0x10069b43
cmp dword [esp + 0x58], 8
jb 0x10069b22
push dword [esp + 0x44]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.1000d5d0
cmp dword [esp + 0x24], 8
jb 0x10069b53
push dword [esp + 0x10]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
jb 0x10069b7a
push dword [esp + 0x28]
call esi
add esp, 4
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10069ba8
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x78], 8
jb 0x10069bb8
push dword [esp + 0x64]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x58], 8
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
jb 0x10069bdf
push dword [esp + 0x44]
call esi
add esp, 4
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret