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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
cmp dword [rbp + 0x18], 0x111
je 0x402c85
cmp dword [rbp + 0x18], 0x111
ja 0x402df1
cmp dword [rbp + 0x18], 0x110
je 0x402a61
cmp dword [rbp + 0x18], 0x110
ja 0x402df1
cmp dword [rbp + 0x18], 0x10
je 0x402db4
cmp dword [rbp + 0x18], 0x100
je 0x402dcd
jmp 0x402df1
lea rax, [rbp - 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_GetWindowRect]
call rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov ecx, dword [rbp - 0x18]
mov edx, dword [rbp - 0x20]
sub ecx, edx
mov edx, ecx
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [rbp - 4], eax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov ecx, dword [rbp - 0x14]
mov edx, dword [rbp - 0x1c]
sub ecx, edx
mov edx, ecx
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [rbp - 8], eax
mov edx, dword [rbp - 8]
mov eax, dword [rbp - 4]
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, edx
mov r8d, eax
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_SetWindowPos]
call rax
mov edx, 0x3e9
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_GetDlgItem]
call rax
mov qword [0x004e40e0], rax
mov rax, qword [0x004e40e0]
mov rcx, rax
call sym.PopulateWindowsList_HWND___
mov rax, qword [0x004e40e0]
mov r9d, 4
mov r8d, 0
mov edx, 0x1036
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SendMessageA]
call rax
mov dword [rbp - 0x50], 0xe
lea rax, str.Window_Title
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x48], 0x12c
lea rdx, [rbp - 0x50]
mov rax, qword [0x004e40e0]
mov r9, rdx
mov r8d, 0
mov edx, 0x101b
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SendMessageA]
call rax
mov edx, 0x3ef
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_GetDlgItem]
call rax
mov qword [0x004e40e8], rax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x402c0d
mov rdx, qword [0x004b6018]
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
test eax, eax
jne 0x402c0d
mov eax, 1
jmp 0x402c12
mov eax, 0
mov byte [rbp - 9], al
cmp byte [rbp - 9], 0
je 0x402c22
mov edx, 1
jmp 0x402c27
mov edx, 0
mov rax, qword [0x004e40e8]
mov r9d, 0
mov r8, rdx
mov edx, 0xf1
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SendMessageA]
call rax
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x402c61
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_SetFocus]
call rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_SetForegroundWindow]
call rax
mov eax, 1
jmp 0x402df6
mov rax, qword [rbp + 0x20]
movzx eax, ax
sub eax, 0x3ea
cmp eax, 5
ja case.default.0x402cba
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x004b82d0]
mov eax, dword [rdx + rax]
cdqe
lea rdx, [0x004b82d0]
add rax, rdx
jmp rax
mov rax, qword [0x004e40e0]
mov rcx, rax
call sym.CloseSelectedWindows_HWND___
mov rax, qword [0x004e40e0]
mov rcx, rax
call sym.PopulateWindowsList_HWND___
mov rax, qword [rbp + 0x20]
movzx eax, ax
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_EndDialog]
call rax
mov eax, 1
jmp 0x402df6
mov rax, qword [0x004e40e0]
mov rcx, rax
call sym.ForceCloseSelectedWindows_HWND___
mov rax, qword [0x004e40e0]
mov rcx, rax
call sym.PopulateWindowsList_HWND___
mov rax, qword [rbp + 0x20]
movzx eax, ax
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_EndDialog]
call rax
mov eax, 1
jmp 0x402df6
mov rax, qword [0x004e40e0]
mov rcx, rax
call sym.SelectAllItems_HWND___
jmp 0x402db2
mov rax, qword [rbp + 0x20]
movzx eax, ax
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_EndDialog]
call rax
mov eax, 1
jmp 0x402df6
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_PostQuitMessage]
call rax
jmp 0x402db2
mov rax, qword [0x004e40e8]
mov r9d, 0
mov r8d, 0
mov edx, 0xf0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SendMessageA]
call rax
cmp rax, 1
sete al
movzx eax, al
mov ecx, eax
call sym.SetAutoStart_bool_
nop
jmp case.default.0x402cba
mov edx, 0x3ed
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_EndDialog]
call rax
mov eax, 1
jmp 0x402df6
cmp qword [rbp + 0x20], 0x1b
jne 0x402df0
mov edx, 0x3ed
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.USER32.dll_EndDialog]
call rax
mov eax, 1
jmp 0x402df6
nop
jmp 0x402df1
nop
mov eax, 0
add rsp, 0x90
pop rbp
ret