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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
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 - 0x44c], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
xor edx, edx
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], eax
call fcn.0042dda0
xor esi, esi
call fcn.0042da20
test al, al
mov ecx, 0x200
cmovne esi, ecx
lea eax, [ebp - 0x44c]
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 0x42bf49
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.Common_Start_Menu
push dword [ebp - 0x44c]
mov dword [ebp - 0x42c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x42bf64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44c], 0
xor eax, eax
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
cmp word [ebp - 0x410], ax
jne 0x42bf8e
xor ecx, ecx
jmp 0x42bfa6
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bf97
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x448]
call fcn.00406c00
push 0x45ebf0
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 1
call fcn.00411480
push edi
mov edx, eax
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 2
call fcn.0042d7a0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [ebp - 0x428]
add esp, 8
cmp eax, edi
je 0x42c037
cmp dword [ebp - 0x414], 8
jb 0x42c00e
push dword [ebp - 0x428]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.004066d0
cmp dword [ebp - 0x454], 8
jb 0x42c04b
push dword [ebp - 0x468]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x46c], 8
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
jb 0x42c07c
push dword [ebp - 0x480]
call esi
add esp, 4
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c0b6
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x434], 8
jb 0x42c0ca
push dword [ebp - 0x448]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x414], 8
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
jb 0x42c0fb
push dword [ebp - 0x428]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret