Function at 0x14002f2d0
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, 0x188
movaps xmmword [rsp + 0x170], xmm6
mov r12d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rbp, qword [rsp + 0x1f0]
mov rax, qword [0x14005c018]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rcx, rdx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [rdi + 0x50]
mov r13, rdi
mov qword [rdi + 0x50], rax
test rcx, rcx
je 0x14002f330
call qword [sym.imp.mozglue.dll_free]
mov rcx, rsi
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
xor r15d, r15d
cmp qword [rbp + 0x70], 0
setne r15b
shl r15d, 0x13
or r15d, 0x40c
cmp qword [r13 + 0x30], 0
je 0x14002f36d
call fcn.14002c2e0
lea ecx, [r15 + 0x1000000]
cmp eax, 5
cmovl r15d, ecx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdi, rax
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rax
mov r8, qword [rsp + 0x200]
call fcn.140028180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [rsi + 0x18], 7
jbe 0x14002f3a9
mov rsi, qword [rsp + 0xb0]
xor eax, eax
lea rdx, [rsp + 0x80]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movaps xmmword [rdx], xmm0
add rbp, 8
movzx edi, r12b
mov rcx, qword [r13 + 0x18]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rbp, r14
mov r8, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14002f4a1
mov r12, qword [rsp + 0x208]
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.14002bb30
mov rcx, qword [r13 + 0x30]
test rcx, rcx
je 0x14002f43b
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14002f592
mov rbx, qword [r13 + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
mov rdi, r12
jae 0x14002f525
mov rcx, qword [rsp + 0x1f8]
lea rdx, [rsp + 0x68]
call fcn.14002bc10
test al, al
je 0x14002f4b8
mov rcx, qword [rsp + 0x68]
call fcn.14004aab0
mov qword [r13 + 0x48], rax
test rax, rax
je 0x14002f5b3
lea rcx, [rsp + 0x68]
lea rsi, [rsp + 0xd0]
mov rdx, rsi
call fcn.14002bd10
mov rcx, r13
mov rdx, rsi
call fcn.14002bb60
xor edi, edi
jmp 0x14002f4d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x208]
mov dword [rcx], eax
mov edi, 0x12
jmp 0x14002f4dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
lea rcx, [rsp + 0x68]
call fcn.14002bbd0
lea rcx, [rsp + 0xb0]
call fcn.140002c90
test rbp, rbp
je 0x14002f4f7
mov rcx, rbp
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14001bc70
mov eax, edi
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14002f5e9
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0xd0]
mov qword [rcx], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov esi, eax
test eax, eax
je 0x14002f5d2
lea rcx, [r13 + 0x20]
call fcn.140009830
lea rcx, [rsp + 0x60]
call fcn.140009830
test esi, esi
jne 0x14002f450
mov edi, 0x15
jmp 0x14002f4d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14002f4d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14002f4d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14002f576
mov rdx, qword [rsp + 0xa0]
xor r14d, r14d
lea rsi, [rsp + 0x98]
mov qword [rsi], r14
mov rcx, rsi
call fcn.1400039a0
mov r15, qword [rsi]
mov qword [rsp + 0xe0], r14
xorps xmm6, xmm6
movaps xmmword [rsp + 0xd0], xmm6
mov ecx, 0x4c
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0xd0], rax
add rax, 0x4c
mov qword [rsp + 0xe0], rax
movups xmmword [rsi], xmm6
movups xmmword [rsi + 0x10], xmm6
movups xmmword [rsi + 0x20], xmm6
movups xmmword [rsi + 0x30], xmm6
movups xmmword [rsi + 0x3c], xmm6
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0x20], rax
mov rcx, r15
mov edx, 0x1f
mov r8, rsi
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r15d, 0
test eax, eax
je 0x14002f6b3
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14002f694
xor r14d, r14d
jmp 0x14002f6ac
mov ecx, 0x44
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
mov rcx, rax
mov rdx, rsi
call fcn.14002c5a0
test rsi, rsi
setne r15b
lea rcx, [rsp + 0xd0]
call fcn.140025f00
lea rcx, [rsp + 0x98]
call fcn.140009830
test r15b, r15b
je 0x14002f72f
lea r8, [r13 + 0x58]
lea r15, [rsp + 0xd0]
mov rcx, r15
mov rdx, r14
call fcn.14002cba0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8, r15
xor r9d, r9d
call fcn.14002ccd0
mov esi, eax
mov rcx, r15
call fcn.14002cfa0
mov rcx, r14
call fcn.14004ceb0
test esi, esi
jne 0x14002f54e
mov rbx, qword [rsp + 0x60]
jmp 0x14002f54e
test r14, r14
je 0x14002f54e
mov rcx, r14
call fcn.14004ceb0
jmp 0x14002f54e