Function at 0x14000a5f0
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 rbx, r8
mov r14, rdx
mov r13, rcx
mov rdi, qword [rsp + 0x1d0]
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rcx, rdx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [r13 + 0x50]
mov qword [r13 + 0x50], rax
test rcx, rcx
jne 0x14000aabf
mov r15, qword [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.mozglue.dll__wcsdup]
mov qword [rsp + 0x58], rax
xor esi, esi
cmp qword [rdi + 0x70], 0
setne sil
shl esi, 0x13
or esi, 0x40c
cmp qword [r13 + 0x30], 0
je 0x14000a68e
call fcn.140011280
mov rax, qword [0x140044ab0]
cmp dword [rax], 5
lea eax, [rsi + 0x1000000]
cmovge eax, esi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbp, rax
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, rax
mov r8, r15
call fcn.14000af90
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [rbx + 0x18], 8
jb 0x14000a6c5
mov rbx, 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 rdi, 8
movzx ebp, r12b
mov rcx, qword [r13 + 0x18]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rdi, qword [rsp + 0x58]
mov r8, rdi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14000aaca
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.14000ac70
mov rcx, qword [r13 + 0x30]
test rcx, rcx
je 0x14000a758
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14000aadd
mov r15, qword [r13 + 0x20]
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14000a89e
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xd0]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000a84d
mov rdx, qword [rsp + 0xd0]
lea rsi, [rsp + 0xa0]
mov qword [rsi], 0
mov rcx, rsi
call fcn.1400098a0
mov rsi, qword [rsi]
mov ecx, 0x4c
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, 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 + 0xac]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov edx, 0x1f
mov r8, rbx
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000ab04
mov rbp, qword [rbx]
test rbp, rbp
jne 0x14000ab0e
xor esi, esi
test rbp, rbp
setne r12b
mov edx, 0x4c
mov rcx, rbx
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov rax, qword [rsp + 0xa0]
inc rax
cmp rax, 2
jae 0x14000a9c1
test r12b, r12b
jne 0x14000ab2b
test rsi, rsi
jne 0x14000ab89
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0xd0]
mov qword [rcx], rax
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov esi, eax
test eax, eax
je 0x14000ab96
lea rbx, [r13 + 0x20]
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14000aa36
mov rax, qword [rsp + 0x60]
inc rax
cmp rax, 2
jae 0x14000a961
test esi, esi
je 0x14000abb8
mov rcx, qword [rsp + 0x1d8]
lea rdx, [rsp + 0x68]
call fcn.14000ac20
test al, al
je 0x14000abc2
mov rcx, qword [rsp + 0x68]
call fcn.14000ade0
mov qword [r13 + 0x48], rax
test rax, rax
je 0x14000abe9
lea rcx, [rsp + 0x68]
lea rsi, [rsp + 0xd0]
mov rdx, rsi
call fcn.140006f30
mov rcx, r13
mov rdx, rsi
call fcn.14000ad70
xor esi, esi
lea rcx, [rsp + 0x68]
call fcn.140007010
mov rax, qword [rsp + 0xc8]
cmp rax, 8
jae 0x14000a93d
test rdi, rdi
je 0x14000a917
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14001d580
mov eax, esi
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xb0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14000aa98
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
jmp 0x14000a909
call fcn.1400099a0
mov r12, rax
mov r15, qword [rsp + 0x1a8]
lea r14, [rsp + 0x60]
mov rbp, qword [r14]
call fcn.1400099b0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, rbp
mov r8, r14
mov r9, r15
mov rax, rbx
call qword [case.0x14001ca4e.0]
mov rbx, qword [r14]
call fcn.1400099b0
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, rbp
call qword [case.0x14001ca4e.0]
jmp 0x14000a896
call fcn.1400099a0
mov r14, rax
mov rdi, qword [rsp + 0x1a8]
lea rax, [rsp + 0xa0]
mov rbp, qword [rax]
call fcn.1400099b0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, rbp
lea r8, [rsp + 0xa0]
mov r9, rdi
mov rdi, qword [rsp + 0x58]
mov rax, rbx
call qword [case.0x14001ca4e.0]
lea rax, [rsp + 0xa0]
mov rbx, qword [rax]
call fcn.1400099b0
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, rax
mov rdx, rbx
mov rax, rbp
call qword [case.0x14001ca4e.0]
jmp 0x14000a83b
call fcn.1400099a0
mov r12, rax
mov r14, qword [rsp + 0x1a8]
mov r15, qword [rbx]
call fcn.1400099b0
mov rcx, qword [rax]
mov rbp, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rbx
mov r9, r14
mov rax, rbp
call qword [case.0x14001ca4e.0]
mov r14, qword [rbx]
call fcn.1400099b0
mov rcx, qword [rax]
mov rbp, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbp
call qword [case.0x14001ca4e.0]
mov qword [rbx], 0
jmp 0x14000a884
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14000ac10
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbp
jmp 0x14000a95a
call qword [sym.imp.mozglue.dll_free]
jmp 0x14000a643
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov esi, 0x12
jmp 0x14000a8fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x14
jmp 0x14000a8f1
xor esi, esi
xor r12d, r12d
jmp 0x14000a819
mov ecx, 0x44
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov rcx, rax
mov rdx, rbp
call fcn.14001bd50
jmp 0x14000a812
lea r8, [r13 + 0x58]
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov rdx, rsi
call fcn.140035630
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, r15
xor edx, edx
mov r8, rbx
xor r9d, r9d
call fcn.140033a80
mov ebp, eax
mov rcx, rbx
call fcn.1400357c0
mov rcx, rsi
call fcn.140039950
test ebp, ebp
jne 0x14000ab7f
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
jmp 0x14000a84d
mov rcx, rsi
call fcn.140039950
jmp 0x14000a84d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000a884
mov esi, 0x15
jmp 0x14000a8f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x17
jmp 0x14000a8f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 0x2b
jmp 0x14000a8f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3