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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm7
movaps xmmword [rsp + 0x120], xmm6
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov rax, qword [0x14012e028]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rcx, rdx
call fcn.140097090
mov rdx, qword [r12 + 0x48]
mov qword [r12 + 0x48], rax
test rdx, rdx
jne 0x14008d654
mov r13, qword [r14]
mov rcx, rdi
call fcn.140097090
xor edi, edi
cmp qword [r13 + 0xa0], 0
mov rbx, rax
setne r9b
xorps xmm6, xmm6
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], 0
mov rdx, qword [r14]
cmp byte [rdx + 0x21], 0
je 0x14008d25b
mov byte [rsp + 0x67], r9b
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14008d60a
xorps xmm7, xmm7
movaps xmmword [rsp + 0xc0], xmm7
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x78], rax
movzx eax, word [rax]
test ax, ax
je 0x14008d264
lea r12, [rsp + 0x100]
lea r15, str.Path
lea r13, [rsp + 0xc0]
lea rbx, str.Path
mov rbp, qword [rsp + 0x78]
jmp 0x14008d23d
movzx eax, word [rsi + rdi*2 + 2]
inc rdi
add rbp, 2
test ax, ax
je 0x14008d189
movzx eax, ax
cmp eax, 0x3d
jne 0x14008d170
mov rcx, r12
mov rdx, rsi
mov r8, rdi
call fcn.14001c450
nop word [rax + rax]
inc rdi
cmp word [rbp], 0
lea rbp, [rbp + 2]
jne 0x14008d1a0
movzx r14d, byte [rsp + 0x117]
mov eax, r14d
and eax, 0x7f
test r14b, r14b
cmovs rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
cmovns rcx, r12
mov rdx, r15
jmp 0x14008d1e9
add rdx, 0x10
cmp rdx, rbx
je 0x14008d222
cmp qword [rdx + 8], rax
jne 0x14008d1e0
test rax, rax
je 0x14008d214
mov r8, qword [rdx]
xor r9d, r9d
nop word [rax + rax]
movzx r10d, word [r8 + r9*2]
cmp r10w, word [rcx + r9*2]
jne 0x14008d1e0
inc r9
cmp rax, r9
jne 0x14008d200
mov rcx, r13
mov rdx, rsi
mov r8, rdi
call fcn.14001c560
test r14b, r14b
jns 0x14008d234
mov rcx, qword [rsp + 0x100]
call fcn.14009614c
movzx eax, word [rbp]
test ax, ax
je 0x14008d264
mov rsi, rbp
movaps xmmword [rsp + 0x100], xmm7
mov qword [rsp + 0x110], 0
xor edi, edi
jmp 0x14008d17c
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x14008d2dc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
xor edx, edx
call fcn.14006aca0
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xf0], rax
movaps xmm0, xmmword [rdi]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov r14, qword [rsp + 0x70]
mov rdx, qword [r14]
mov r8b, byte [rsp + 0xf7]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
xor edi, edi
mov r9b, byte [rsp + 0x67]
mov r15, qword [rsp + 0x1b8]
mov dil, r9b
shl edi, 0x13
or edi, 0x40c
movzx edx, byte [rdx + 0x20]
xor r9d, r9d
lea r10, [rsp + 0xc0]
mov qword [r10 + 0x10], r9
add r13, 0x38
mov r11d, r8d
and r11b, 0x7f
test r8b, r8b
movzx r8d, r11b
cmovs r8, rcx
movaps xmmword [r10], xmm6
lea r11, [rsp + 0xe0]
cmovs r11, rax
test r8, r8
cmove r11, r8
mov rcx, qword [r12 + 0x18]
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
mov rdx, rsi
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14008d61e
xorps xmm0, xmm0
lea rdi, [rsp + 0xa0]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.140016fd0
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x98]
mov qword [rcx], rax
mov rdx, qword [r12 + 0x20]
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14008d5ff
mov rdx, qword [rsp + 0xa8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x100]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401148f0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.14001c720
cmp byte [rdi], 0
je 0x14008d5c4
lea rdi, [rsp + 0x108]
mov rcx, rdi
call fcn.14001c7f0
mov ebp, eax
cmp byte [rdi - 8], 0
je 0x14008d414
mov rcx, rdi
call fcn.14001dff0
test bpl, bpl
jne 0x14008d5c4
mov rdi, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0xa0]
mov rdx, rdi
call fcn.1400176d0
test al, al
je 0x14008d5a1
lea rdx, [rdi + 8]
mov rcx, qword [rsp + 0xa8]
call fcn.1400176d0
test al, al
je 0x14008d5a1
mov eax, dword [rsp + 0xb0]
mov dword [rdi + 0x10], eax
mov eax, dword [rsp + 0xb4]
mov dword [rdi + 0x14], eax
mov rcx, qword [rsp + 0xa0]
call fcn.14001c8e0
mov qword [r12 + 0x40], rax
test rax, rax
je 0x14008d631
lea rcx, [0x140000000]
cmp rax, rcx
jne 0x14008d5e5
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14008d4b8
call fcn.1400614f0
mov qword [rsp + 0x100], rsi
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14008d4e3
call fcn.1400614f0
lea rdx, [rsp + 0x100]
mov qword [rdx + 8], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rdx + 0x10], rax
mov qword [rsp + 0xb0], 0
mov rcx, r12
call fcn.140016fd0
xor edi, edi
lea rcx, [rsp + 0xa0]
call fcn.14001afd0
cmp byte [rsp + 0xf7], 0
jns 0x14008d535
mov rcx, qword [rsp + 0xe0]
call fcn.14009614c
test rbx, rbx
je 0x14008d54c
lea rcx, fcn.140066130
mov rdx, rbx
xor r8d, r8d
call fcn.14006ae20
mov rbx, qword [r14]
mov qword [r14], 0
test rbx, rbx
je 0x14008d56b
mov rcx, rbx
call fcn.14001c650
mov rcx, rbx
call fcn.14009614c
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140098480
mov eax, edi
movaps xmm6, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14008d511
mov dword [r15], 0x542
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x15
jmp 0x14008d511
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x14008d511
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
jmp 0x14008d5cb
mov edi, 0x46
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x14008d535
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov edi, 0x12
jmp 0x14008d51e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14008d511
lea rcx, fcn.140066130
xor r8d, r8d
call fcn.14006ae20
jmp 0x14008d09c