Function at 0x1400082e0
Capabilities:
Enumerate process modules
Execute command
Read file via mapping
Schedule task via at
Terminate process

Disassembly:
push rbx
push rbp
push r15
mov eax, 0x13c0
call fcn.1400093e0
sub rsp, rax
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
lea rcx, str.May_15_2024
call fcn.140007460
lea rcx, [0x14000aa6c]
call fcn.140007460
lea rcx, str.07:26:36
call fcn.140007460
lea rcx, [0x14000ab74]
call fcn.140007460
lea rcx, str.Enter_Your_Name:
call fcn.140007460
mov r8d, 0x64
lea rdx, [0x14000d760]
lea rcx, [0x14000aa84]
call fcn.1400074c0
lea rcx, [0x14000aa6c]
mov byte [0x14000d76b], 0
call fcn.140007460
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8d, dword [rsp + 0x44]
mov r9d, 0x1e0
mov edx, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x113
call qword [sym.imp.USER32.dll_MoveWindow]
xor ebp, ebp
lea r8, [rsp + 0x38]
mov edx, 0x1000
lea rcx, [rsp + 0x50]
lea r15d, [rbp - 1]
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
mov eax, dword [rsp + 0x38]
shr eax, 2
test eax, eax
je 0x14000864a
mov qword [rsp + 0x13e0], rsi
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x13f0], r14
mov r14d, eax
mov qword [rsp + 0x13e8], rdi
mov ebx, dword [rsi]
test ebx, ebx
je 0x14000846b
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000846b
lea r9, [rsp + 0x3c]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14000846b
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x11a0]
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
cmp dword [rsp + 0x11a0], 0x6b637564
jne 0x14000846b
cmp dword [rsp + 0x11a4], 0x74617473
jne 0x14000846b
inc ebp
mov r15d, ebx
add rsi, 4
sub r14, 1
jne 0x1400083f5
mov r14, qword [rsp + 0x13f0]
mov rdi, qword [rsp + 0x13e8]
mov rsi, qword [rsp + 0x13e0]
test ebp, ebp
je 0x14000864a
cmp ebp, 1
jle 0x1400084da
lea rcx, str.Multiple_ducks_detected_n
call fcn.140007460
lea rcx, str.Please_use_PID_manually_n_n
call fcn.140007460
lea rcx, str.Enter_DuckStation_PID:
call fcn.140007460
mov r8d, select
lea rdx, [rsp + 0x1050]
lea rcx, [0x14000aa84]
call fcn.1400074c0
jmp 0x1400084f6
mov r9d, r15d
lea r8, [0x14000ac00]
mov edx, 0x64
lea rcx, [rsp + 0x1050]
call fcn.140007520
lea r9, [rsp + 0x1050]
mov edx, 0x64
lea r8, str.duckstation__s
lea rcx, [rsp + 0x1060]
call fcn.140007520
lea r9, [rsp + 0x1060]
mov edx, 0x64
lea r8, [0x14000ac18]
lea rcx, [rsp + 0x10d0]
call fcn.1400073b0
xor edx, edx
lea r8, [rsp + 0x10d0]
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], 0x800000
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x14000d7d8], rax
test rax, rax
jne 0x1400085a5
lea rcx, str.Error:_Failed_to_open_DuckStation_nTry_again_n
call fcn.140007460
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14000ac50]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call main
mov rax, qword [0x14000d7d8]
lea rcx, [rax + 0xc000]
mov qword [0x14000d7d0], rcx
call fcn.140001000
test eax, eax
je 0x1400085f7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_initialize_ENet._n
call fcn.140007460
mov eax, 1
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400086d0
add rsp, 0x13c0
pop r15
pop rbp
pop rbx
ret
lea rcx, [0x140001060]
call fcn.140008a94
lea rbx, [0x14000ac90]
nop word [rax + rax]
mov rax, qword [0x14000d7d0]
inc byte [rax + 0x10]
mov edx, dword [rax]
cmp edx, dword [0x14000d738]
je 0x14000863d
lea rcx, str.changed_state_to__i_n
mov dword [0x14000d738], edx
call fcn.140007460
mov rax, qword [0x14000d7d0]
movsxd rcx, dword [rax]
call qword [rbx + rcx*8]
call 0x140008670
jmp 0x140008610
lea rcx, str.DuckStation_not_found_n
call fcn.140007460
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3