Function at 0x14002ed40
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 ebp, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r13, qword [rsp + 0x1f0]
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rcx, rdx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [rdi + 0x50]
mov qword [rdi + 0x50], rax
test rcx, rcx
jne 0x14002f0ad
mov r14, qword [rsp + 0x200]
mov rcx, rsi
call qword [sym.imp.mozglue.dll__wcsdup]
mov qword [rsp + 0x60], rax
xor esi, esi
cmp qword [r13 + 0x70], 0
setne sil
shl esi, 0x13
or esi, 0x40c
cmp qword [rdi + 0x30], 0
je 0x14002eddf
call fcn.14001fc00
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovge ecx, esi
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r12, rax
lea r15, [rsp + 0xb8]
mov rcx, r15
mov rdx, rax
mov r8, r14
call fcn.14000c4a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [r15 + 0x18], 8
jb 0x14002ee16
mov r15, qword [rsp + 0xb8]
xor eax, eax
lea rdx, [rsp + 0x90]
mov qword [rdx + 0x10], rax
xorps xmm6, xmm6
movaps xmmword [rdx], xmm6
add r13, 8
movzx r8d, bpl
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r13, qword [rsp + 0x60]
mov r8, r13
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14002f0b8
lea rcx, [rsp + 0x70]
movaps xmmword [rcx], xmm6
mov qword [rcx + 0x10], 0
lea rdx, [rsp + 0x90]
call fcn.14000bcc0
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14002eead
mov rdx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14002f0d2
mov rbx, qword [rdi + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14002efc6
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0xd8]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002ef92
mov rdx, qword [rsp + 0xd8]
lea r14, [rsp + 0xa8]
mov qword [r14], 0
mov rcx, r14
call fcn.140001b90
mov r14, qword [r14]
mov ecx, 0x4c
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x3c], xmm0
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov edx, 0x1f
mov r8, r15
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002ef61
mov r12, qword [r15]
test r12, r12
jne 0x14002f1dc
xor r14d, r14d
xor esi, esi
mov edx, 0x4c
mov rcx, r15
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
lea rcx, [rsp + 0xa8]
call fcn.1400092e0
test sil, sil
jne 0x14002f0f9
test r14, r14
jne 0x14002f21b
mov rax, qword [rsp + 0x78]
lea rcx, [rsp + 0xd8]
mov qword [rcx], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14002f157
lea rcx, [rdi + 0x20]
call fcn.1400092e0
lea rcx, [rsp + 0x68]
call fcn.1400092e0
mov rcx, qword [rsp + 0x1f8]
lea rdx, [rsp + 0x70]
call fcn.14002f230
test al, al
je 0x14002f188
mov rcx, qword [rsp + 0x70]
call fcn.14002f280
mov qword [rdi + 0x48], rax
test rax, rax
je 0x14002f1af
lea rcx, [rsp + 0x70]
lea rbx, [rsp + 0xd8]
mov rdx, rbx
call fcn.140009600
mov rcx, rdi
mov rdx, rbx
call fcn.14000bcc0
xor edi, edi
lea rcx, [rsp + 0x70]
call fcn.140009690
mov rax, qword [rsp + 0xd0]
cmp rax, 8
jb 0x14002f071
mov rcx, qword [rsp + 0xb8]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002f06c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002f1d6
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
test r13, r13
je 0x14002f07f
mov rcx, r13
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14002c610
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
call qword [sym.imp.mozglue.dll_free]
jmp 0x14002ed9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x208]
mov dword [rcx], eax
mov edi, 0x12
jmp 0x14002f023
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x208]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14002f019
lea r8, [rdi + 0x58]
lea r15, [rsp + 0xd8]
mov rcx, r15
mov rdx, r14
call fcn.14004d760
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8, r15
xor r9d, r9d
call fcn.14004ba40
mov ebp, eax
mov rcx, r15
call fcn.14004dac0
mov rcx, r14
call fcn.140051c60
test ebp, ebp
jne 0x14002f14d
mov rbx, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
jmp 0x14002ef92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x208]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x68]
call fcn.1400092e0
mov edi, 0x15
jmp 0x14002f019
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x208]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14002f019
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x208]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14002f019
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, 0x44
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov dword [rax + 0x40], 0
mov ecx, 0x44
mov rdx, rax
mov r8, r12
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov sil, 1
jmp 0x14002ef66
mov rcx, r14
call fcn.140051c60
jmp 0x14002ef92