Function at 0x140002350
Capabilities:
Accept command line arguments
Enumerate processes
Get token membership
Impersonate user

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x208
mov ebp, r9d
mov rbx, rcx
lea rcx, [sym.GlobalExceptionHandler__EXCEPTION_POINTERS_]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edx, 0x500
xor r9d, r9d
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x88]
mov word [rsp + 0x86], dx
mov r8d, 0x12
mov edx, 1
lea rcx, [rsp + 0x82]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x82], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400027a0
mov r12, qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call r12
lea rdx, [rsp + 0x7c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov rsi, rax
je 0x1400025f0
mov rcx, qword [rax + 8]
lea rdx, [0x14002d196]
mov rdi, qword [sym.imp.msvcrt.dll__wcsicmp]
call rdi
mov rcx, rsi
test eax, eax
jne 0x1400025c8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x1400025f0
call sym.EnableDebugPrivilege__
xor edx, edx
mov ecx, 2
mov dword [rsp + 0xd0], 0x130
call sym.CreateToolhelp32Snapshot
lea rsi, [rsp + 0xd0]
mov rdx, rsi
mov rcx, rax
mov r14, rax
call sym.Process32First
test eax, eax
jne 0x1400027f0
xor edi, edi
mov rcx, r14
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r14
mov r8d, edi
xor edx, edx
mov r15, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x400
call r15
test rax, rax
mov rdi, rax
je 0x140002861
lea r8, [rsp + 0x90]
mov rcx, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r13, [rsp + 0xd4]
xor r8d, r8d
mov r9d, 1
lea rax, [rsp + 0x98]
mov edx, 0x2000000
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, rdi
mov rdi, r13
call r14
mov rcx, qword [rsp + 0x90]
call r14
xor eax, eax
mov ecx, 0xc
rep stosq qword [rdi], rax
mov rcx, rsi
mov dword [rdi], 0
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0xd0], 0x68
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call r12
xor r8d, r8d
mov edx, 2
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x98]
mov r9, rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x98]
mov dword [0x14002c028], eax
call r14
test edi, edi
jne 0x1400027ec
lea r8, [0x14002d1b9]
mov r9d, 0x10
xor ecx, ecx
lea rdx, [0x14002d1c8]
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140002600
mov rcx, qword [rsi + 8]
lea rdx, [0x14002d19c]
call rdi
mov rcx, rsi
test eax, eax
je 0x14000243a
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop word cs:[rax + rax]
lea rsi, [rsp + 0xd0]
lea r13, [rsp + 0xd4]
xor eax, eax
mov rdi, r13
mov ecx, 9
rep stosq qword [rdi], rax
lea rax, [sym.WndProc_HWND____unsigned_int__unsigned_long_long__long_long_]
mov edx, 0x7f00
lea r12, [0x14002d193]
lea r13, str.WindowClass
mov dword [rdi], 0
mov dword [rsp + 0xd0], 0x50
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], rbx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rdi, qword [sym.imp.USER32.dll_LoadIconA]
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], 5
mov qword [rsp + 0x110], r13
call rdi
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0xf0], rax
call rdi
mov rcx, rsi
mov qword [rsp + 0x118], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x1400027d0
mov edi, dword [0x14002c02c]
mov esi, dword [0x14002c030]
call sym.RandomWindowTitle__
mov ecx, 0x200
mov rdx, r13
mov qword [rsp + 0x58], 0
mov r8, rax
mov qword [rsp + 0x50], rbx
mov r9d, 0x10ca0000
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_CreateWindowExA]
test rax, rax
mov rcx, rax
mov qword [0x140038300], rax
je 0x140002840
lea rdi, [rsp + 0xa0]
mov edx, ebp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140038300]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [sym.imp.USER32.dll_GetMessageA]
mov rsi, qword [sym.imp.USER32.dll_IsDialogMessageA]
jmp 0x140002758
mov rcx, qword [0x140038300]
mov rdx, rdi
call rsi
test eax, eax
je 0x140002788
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call rbx
test eax, eax
jg 0x140002748
mov eax, dword [rsp + 0xb0]
add rsp, 0x208
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140002758
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1400023f7
lea r8, str.Error_
mov r9d, 0x30
xor ecx, ecx
lea rdx, str.Window_Registration_Failed_
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x140002770
mov rdi, qword [sym.imp.msvcrt.dll__stricmp]
lea r13, [rsp + 0xfc]
lea r15, str.lsass.exe
jmp 0x140002823
mov rdx, rsi
mov rcx, r14
call sym.Process32Next
test eax, eax
je 0x140002486
mov rdx, r15
mov rcx, r13
call rdi
test eax, eax
jne 0x140002810
mov edi, dword [rsp + 0xd8]
jmp 0x140002488
lea r8, str.Error_
mov r9d, 0x30
lea rdx, str.Window_Creation_Failed_
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x140002770
xor edx, edx
mov ecx, 2
mov dword [rsp + 0xd0], 0x130
call sym.CreateToolhelp32Snapshot
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x68], rax
call sym.Process32First
test eax, eax
je 0x1400028e5
mov rdi, qword [sym.imp.msvcrt.dll__stricmp]
lea r13, [rsp + 0xfc]
jmp 0x1400028b1
mov rcx, qword [rsp + 0x68]
mov rdx, rsi
call sym.Process32Next
test eax, eax
je 0x1400028e5
lea rdx, str.winlogon.exe
mov rcx, r13
call rdi
test eax, eax
jne 0x1400028a0
mov edi, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x68]
call r14
mov r8d, edi
xor edx, edx
mov ecx, 0x400
call r15
mov rdi, rax
jmp 0x1400024b5
xor edi, edi
jmp 0x1400028c8