Function at 0x1400e1b60
Capabilities:
Create process on windows
Find taskbar

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x328]
sub rsp, 0x428
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov r15, r9
mov r14, r8
mov r13, rdx
mov r12, rcx
mov rax, qword [rbp + 0x3a0]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x3a8]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x3b0]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x3b8]
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
mov cl, 0xf
call qword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
add eax, 0x2c
mov dword [rsp + 0x60], eax
mov ecx, eax
call fcn.1400854f0
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [rbp + 0x1b8], 1
mov r9d, 0x2000000
xor r8d, r8d
xor edx, edx
lea rcx, str.Default
call qword [sym.imp.USER32.dll_OpenDesktopA]
lea r8, str.WinSta0
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400e0fb0
nop
xor edx, edx
lea rcx, str.Progman
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400e1c6e
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x1400e1c6e
xor edx, edx
lea rcx, str.NDDEAgnt
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x1400e1d8d
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400e1d8d
lea r8, [rsp + 0x68]
mov edx, 0x200ef
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400e1d84
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, rsi
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400e1d79
mov dword [rsp + 0x74], 0x104
mov dword [rsp + 0x70], SafeArrayUnaccessData
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x74]
lea r8, [rbp + 0x200]
mov rdx, qword [rsi]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
mov r11, qword [rsp + 0x78]
mov qword [rsp + 0x50], r11
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x398]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x390]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9, r14
mov r8, r13
mov rdx, r12
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140085540
nop
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400e1dfc
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [rbp + 0x1b8], 0
je 0x1400e1de1
mov rcx, qword [rbp + 0x1d8]
test rcx, rcx
je 0x1400e1de1
cmp qword [rbp + 0x1d0], rcx
je 0x1400e1de1
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, qword [rbp + 0x1c8]
test rcx, rcx
je 0x1400e1dfc
cmp qword [rbp + 0x1c0], rcx
je 0x1400e1dfc
call qword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, ebx
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x428
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret