Function at 0x140046c40
Capabilities:
Enumerate gui resources
Execute command
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rbp + 0x108], rax
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
lea rax, [rbp + 0x148]
movabs r13, 0xff00ff00ff00ff00
mov qword [rbp + 0xf8], r13
mov qword [rbp + 0x100], rax
mov r15, qword [rax]
xor r15, r13
mov qword [rbp + 0xf0], r15
mov qword [rax], r12
mov r14d, r12d
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x48]
call fcn.140050fe0
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400472c0
nop
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
cmp rdx, rax
je 0x140046d46
mov esi, r12d
sub rax, rdx
sar rax, 2
test rax, rax
je 0x140046d46
mov edi, r12d
mov r8d, dword [rdi + rdx]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
lea rdi, [rdi + 4]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
sub rcx, rdx
sar rcx, 2
movsxd rax, esi
cmp rax, rcx
jb 0x140046d01
lea rcx, str.start_notepad.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rax
lea rdx, str.notepad.exe
lea rcx, [rbp + 0xd0]
call fcn.140050fe0
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.1400472c0
nop
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
cmp rcx, rax
je 0x1400470cb
sub rax, rcx
sar rax, 2
cmp rax, 1
ja 0x1400470cb
mov dword [rbp + 0x40], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
xor r8d, r8d
lea rdx, [0x140077d1e]
lea rcx, [rbp + 0x48]
call fcn.140001a50
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], r12
xor r8d, r8d
lea rdx, [0x140077d1e]
lea rcx, [rbp + 0x68]
call fcn.140001a50
mov qword [rbp + 0x88], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0x10000000
mov qword [rbp + 0xb8], r12
movdqa xmmword [rbp + 0xc0], xmm0
mov rax, qword [rbp - 8]
mov ebx, dword [rax]
mov dword [rbp + 0x40], ebx
mov byte [rbp + 0xb0], 1
xorps xmm6, xmm6
movdqu xmmword [rbp + 0x28], xmm6
mov rdi, r12
mov qword [rbp + 0x38], r12
mov esi, r12d
test r14, r14
je 0x140046e55
cmp esi, 0x32
jle 0x140046fe6
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x68], ebx
lea rdx, [rbp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1400514a0
nop
lea rdx, [rbp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.1400514a0
nop
movups xmm0, xmmword [rbp + 0x88]
movups xmmword [rbp - 0x50], xmm0
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x40], rax
movss xmm0, dword [rbp + 0xa0]
movss dword [rbp - 0x38], xmm0
movss xmm1, dword [rbp + 0xa4]
movss dword [rbp - 0x34], xmm1
mov eax, dword [rbp + 0xa8]
mov dword [rbp - 0x30], eax
mov eax, dword [rbp + 0xac]
mov dword [rbp - 0x2c], eax
movzx eax, byte [rbp + 0xb0]
mov byte [rbp - 0x28], al
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x20]
call fcn.14004f050
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xd8], r13
lea rcx, [rbp + 0x148]
mov qword [rbp + 0xe0], rcx
mov rbx, qword [rcx]
mov rax, rbx
xor rax, r13
mov qword [rbp + 0xd0], rax
mov qword [rcx], r12
lea rdx, [rsp + 0x68]
lea rcx, [0x140047520]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.14004f050
nop
lea rax, [rbp + 0x148]
mov qword [rax], rbx
lea rcx, [rsp + 0x68]
call fcn.1400471b0
movq rcx, xmm6
test rcx, rcx
je 0x140046f9c
sub rdi, rcx
sar rdi, 3
lea rdx, [rdi*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046f97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400470af
call fcn.1400707f4
movups xmm6, xmmword [rsp + 0x48]
movdqu xmmword [rbp + 0x28], xmm6
movsd xmm0, qword [rsp + 0x58]
movsd qword [rbp + 0x38], xmm0
movdqa xmm1, xmm6
psrldq xmm1, 8
movq rax, xmm1
movq rcx, xmm6
sub rax, rcx
sar rax, 3
mov rdi, qword [rbp + 0x38]
cmp rax, 1
ja 0x14004706e
mov r14, qword [rcx]
inc esi
mov ebx, dword [rbp + 0x40]
jmp 0x140046e47
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_SetMenu]
mov edx, 0xfffffff0
mov r8d, 0x10000000
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 0xffffffec
mov r8d, 0x80020
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowPos]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x14016aa94], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x14016aa98], eax
movq rcx, xmm6
test rcx, rcx
je 0x1400470bc
sub rdi, rcx
sar rdi, 3
lea rdx, [rdi*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400470b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400470b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400707f4
nop
lea rcx, [rbp + 0x40]
call fcn.1400471b0
mov rcx, qword [rbp - 8]
jmp 0x1400470ce
mov r14, r12
test rcx, rcx
je 0x14004711f
mov rax, qword [rbp + 8]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004710e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004710e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400707f4
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r12
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140047169
mov rax, qword [rbp + 0x20]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047163
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047163
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400707f4
nop
xor r15, r13
lea rax, [rbp + 0x148]
mov qword [rax], r15
mov rax, r14
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.140070670
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret