Function at 0x1400037e0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6c8]
sub rsp, 0x7a0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov rsi, rcx
xor eax, eax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
lea r8, str.DSDFunctionKeyCtlServiceProc::OpenSvcWindowAsUser
mov qword [rbp + 0x30], r8
lea r15, str.DSDFunctionKeyCtlServiceProc.cpp
mov qword [rbp + 0x38], r15
mov dword [rbp + 0x40], 0xd2
lea r12, str.__DSDFunctionKeyCtlServiceProc::OpenSvcWindowAsUser_
mov qword [rbp + 0x48], r12
lea r13, [0x14004b4ac]
mov qword [rbp + 0x50], r13
mov dword [rbp + 0x58], 3
lea rdx, str.ENTER__s
lea rcx, [rbp + 0x38]
call fcn.1400028a0
nop
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], r14
mov word [rbp + 0x60], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x62]
call fcn.140032580
mov word [rbp + 0x480], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x482]
call fcn.140032580
mov word [rbp + 0x270], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x272]
call fcn.140032580
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 0xdf
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], 3
mov r9d, eax
lea r8, str.nActiveSessionId
lea rdx, str._s___d
lea rcx, [rsp + 0x60]
call fcn.1400028a0
lea ecx, [rdi + 1]
test ecx, 0xfffffffe
jne 0x140003969
mov dword [rsp + 0x68], 0xe0
mov qword [rsp + 0x60], r15
mov ebx, 0x80004005
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], r14d
mov r8d, ebx
lea rdx, str.Error_Code:_0x_X
lea rcx, [rsp + 0x60]
call fcn.1400028a0
jmp 0x140003c14
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.140032580
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000399c
mov dword [rsp + 0x68], 0xe3
jmp 0x140003938
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x480]
call fcn.140032580
lea rax, str._user
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
lea r8, str.__s___s
mov rdx, rbx
lea rcx, [rbp + 0x480]
call fcn.140030850
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x270]
call fcn.140032580
lea rcx, [rbp + 0x270]
lea rdx, [rbp + 0x60]
lea rax, [rbp + 0x270]
sub rdx, rax
nop
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x140003a23
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140003a23
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x140003a00
jmp 0x140003a28
test rbx, rbx
jne 0x140003a2c
sub rcx, 2
mov word [rcx], r14w
lea rcx, [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 0xec
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], 3
lea r9, [rbp + 0x60]
lea r8, str.szUserApp
lea rdx, str._s___s
lea rcx, [rsp + 0x60]
call fcn.1400028a0
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 0xed
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], 3
lea r9, [rbp + 0x480]
lea r8, str.szUserAppParamter
lea rdx, str._s___s
lea rcx, [rsp + 0x60]
call fcn.1400028a0
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], 0xee
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], 3
lea r9, [rbp + 0x270]
lea r8, str.szUserAppPath
lea rdx, str._s___s
lea rcx, [rsp + 0x60]
call fcn.1400028a0
lea rdx, [rbp - 0x68]
mov ecx, edi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140003b0e
mov dword [rsp + 0x68], 0xf0
jmp 0x140003938
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140003b48
mov dword [rsp + 0x68], 0xf1
jmp 0x140003938
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x60]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140003b6a
mov dword [rsp + 0x68], 0xf2
jmp 0x140003938
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rbp - 0x40]
call fcn.140032580
mov dword [rbp - 0x40], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x30], rax
mov dword [rbp - 4], 1
mov word [rbp], r14w
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x480]
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140003c07
mov dword [rsp + 0x68], 0x105
jmp 0x140003938
mov edx, edi
mov rcx, rsi
call fcn.140003db0
mov ebx, r14d
mov rcx, qword [rbp - 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003c2c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x68], r14
mov rcx, qword [rbp - 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003c44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x70], r14
cmp qword [rbp - 0x58], r14
je 0x140003c5e
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140003c6e
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop
mov r8, qword [rbp + 0x30]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x38]
call fcn.1400028a0
mov eax, ebx
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret