Function at 0x1400015d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x140036038]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov qword [rbp - 0x70], rdx
mov r15, rcx
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
xor edi, edi
mov qword [rbp - 0x80], rdi
mov r12d, edi
mov r13d, edi
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], dil
lea r8d, [rdi + 0xc]
lea rdx, str.explorer.exe
lea rcx, [rbp + 0x50]
call fcn.140004420
nop dword [rax]
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rcx, qword [rbp + 0x50]
call fcn.140002080
cmp eax, 1
je 0x140001691
lea rcx, str.waiting_for_login_user.
call fcn.14000a500
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001660
lea rcx, str.Exit_login_user.
call fcn.14000a500
test rsi, rsi
je 0x14000171a
test r14, r14
je 0x14000178c
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.WTSQueryUserToken
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x80], rax
lea rdx, str.WTSEnumerateSessionsA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.WTSFreeMemory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test r12, r12
je 0x14000170e
test rbx, rbx
je 0x14000170e
cmp qword [rbp - 0x80], 0
je 0x14000170e
test rax, rax
jne 0x14000178c
lea rcx, str.GetProcAddress_pointer_is_NULL
call fcn.14000a590
mov rdx, qword [rbp - 0x70]
mov rcx, r15
call fcn.140001390
mov edi, eax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x140001763
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000175e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a74
call fcn.14000d4b4
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000d490
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x60], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call r12
cmp eax, 1
je 0x1400017bf
lea rcx, str.WTSEnumerateSessions_failed.
call fcn.14000a590
jmp 0x140001a57
mov ebx, edi
mov ecx, edi
mov r8, qword [rbp - 0x68]
mov r9d, dword [rsp + 0x60]
test r9d, r9d
je 0x1400017ef
mov edx, ecx
lea rax, [rdx + rdx*2]
cmp dword [r8 + rax*8 + 0x10], ebx
je 0x1400017e7
inc ecx
cmp ecx, r9d
jb 0x1400017d1
jmp 0x1400017ef
lea rax, [rdx + rdx*2]
mov ebx, dword [r8 + rax*8]
mov rcx, r8
call r13
mov edx, ebx
lea rcx, str.SessionId:__d
call fcn.14000a500
test ebx, ebx
je 0x140001a43
lea rdx, [rsp + 0x70]
mov ecx, ebx
call qword [rbp - 0x80]
cmp eax, 1
jne 0x140001a43
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x78], edi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x68]
lea edx, [r9 + 0xb]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
je 0x140001874
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTokenInformation_failed__GetLastError___d.
call fcn.14000a590
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a57
mov qword [rbp - 0x78], rdi
mov r8d, 1
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x78]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, 1
je 0x1400018b9
lea rcx, str.CreateEnvironmentBlock___fail.
call fcn.14000a590
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a57
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x40]
call fcn.14000f580
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
lea rax, str.winsta0default
mov qword [rbp - 0x30], rax
movdqa xmm0, xmmword [0x140030c50]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x140001900
mov rdx, r15
lea rcx, [rbp + 0x30]
call fcn.140004420
nop
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebx, eax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
je 0x1400019b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERR:_CreateProcessAsUser_error..._d
call fcn.14000a620
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001a03
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
lea r8, [0x14002e740]
lea rcx, str.Run__s_and__s_wait__SUC...
call fcn.14000a500
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, 1
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140001728
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001a6e
call fcn.14000d4b4
jmp 0x140001728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WTSQueryUserToken_error__GetLastError___d.
call fcn.14000a590
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001728
call fcn.14001179c
nop
call fcn.14001179c
int3