Function at 0x14002b9a0
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, 0x168
mov r12d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r13, qword [rsp + 0x1d0]
mov rax, qword [0x14005f018]
xor rax, rsp
mov qword [rsp + 0x160], 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 0x14002bce3
mov r15, qword [rsp + 0x1e0]
mov rcx, rsi
call qword [sym.imp.mozglue.dll__wcsdup]
mov qword [rsp + 0x58], rax
xor r14d, r14d
cmp qword [r13 + 0x70], 0
setne r14b
shl r14d, 0x13
or r14d, 0x40c
cmp qword [rdi + 0x30], 0
je 0x14002ba3d
call fcn.140007560
lea ecx, [r14 + 0x1000000]
cmp eax, 5
cmovge ecx, r14d
mov r14d, ecx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbp, rax
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rax
mov r8, r15
call fcn.1400098a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [rsi + 0x18], 8
jb 0x14002ba74
mov rsi, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x1e8]
xor eax, eax
lea rdx, [rsp + 0x80]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movaps xmmword [rdx], xmm0
add r13, 8
movzx ebp, r12b
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r14, qword [rsp + 0x58]
mov r8, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14002bcee
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.14002be20
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14002bb08
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14002bcfe
mov rbx, qword [rdi + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14002bc45
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
je 0x14002bc11
mov rdx, qword [rsp + 0xa0]
lea rsi, [rsp + 0x98]
mov qword [rsi], 0
mov rcx, rsi
call fcn.140003400
mov rbp, qword [rsi]
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
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x3c], xmm0
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov edx, 0x1f
mov r8, rsi
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002bd1e
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14002bdef
xor ebp, ebp
test rsi, rsi
setne sil
lea rcx, [rsp + 0xd0]
call fcn.14002bea0
lea rcx, [rsp + 0x98]
call fcn.140005df0
test sil, sil
jne 0x14002bd27
test rbp, rbp
jne 0x14002be0c
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0xd0]
mov qword [rcx], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14002bd85
lea rcx, [rdi + 0x20]
call fcn.140005df0
lea rcx, [rsp + 0x60]
call fcn.140005df0
mov rcx, qword [rsp + 0x1d8]
lea rdx, [rsp + 0x68]
call fcn.14002be50
test al, al
je 0x14002bdaf
mov rcx, qword [rsp + 0x68]
call fcn.14002bf00
mov qword [rdi + 0x48], rax
test rax, rax
je 0x14002bdcf
lea rcx, [rsp + 0x68]
lea rsi, [rsp + 0xd0]
mov rdx, rsi
call fcn.1400061a0
mov rcx, rdi
mov rdx, rsi
call fcn.140008580
xor edi, edi
lea rcx, [rsp + 0x68]
call fcn.140006280
lea rcx, [rsp + 0xb0]
call fcn.140006560
test r14, r14
je 0x14002bcbd
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140027a90
mov eax, edi
add rsp, 0x168
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 0x14002b9f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov edi, 0x12
jmp 0x14002bca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14002bc98
xor ebp, ebp
xor esi, esi
jmp 0x14002bbe5
lea r8, [rdi + 0x58]
lea r12, [rsp + 0xd0]
mov rcx, r12
mov rdx, rbp
call fcn.14004bf30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8, r12
xor r9d, r9d
call fcn.14004a150
mov esi, eax
mov rcx, r12
call fcn.14004c0c0
mov rcx, rbp
call fcn.14004fca0
test esi, esi
jne 0x14002bd7b
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
jmp 0x14002bc11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x60]
call fcn.140005df0
mov edi, 0x15
jmp 0x14002bc98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14002bc98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14002bc98
mov ecx, 0x44
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbp, rax
mov rcx, rax
mov rdx, rsi
call fcn.140026450
jmp 0x14002bbde
mov rcx, rbp
call fcn.14004fca0
jmp 0x14002bc11