Function at 0x1400076d0
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 ebp, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r13, qword [rsp + 0x1d0]
mov rax, qword [0x140044028]
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 0x140007b7c
mov r14, qword [rsp + 0x1e0]
mov rcx, rsi
call qword [sym.imp.mozglue.dll__wcsdup]
mov qword [rsp + 0x58], rax
xor esi, esi
cmp qword [r13 + 0x70], 0
setne sil
shl esi, 0x13
or esi, 0x40c
cmp qword [rdi + 0x30], 0
je 0x14000776e
call fcn.140013850
mov rax, qword [0x140045ac0]
cmp dword [rax], 5
lea eax, [rsi + 0x1000000]
cmovge eax, esi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r12, rax
lea r15, [rsp + 0xb0]
mov rcx, r15
mov rdx, rax
mov r8, r14
call fcn.140008050
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [r15 + 0x18], 8
jb 0x1400077a5
mov r15, qword [rsp + 0xb0]
xor eax, eax
lea rdx, [rsp + 0x80]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movaps xmmword [rdx], xmm0
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 rbp, qword [rsp + 0x58]
mov r8, rbp
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140007b87
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.140007d30
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140007831
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140007ba1
mov rbx, qword [rdi + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000796f
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 0x14000791e
mov rdx, qword [rsp + 0xd0]
lea r14, [rsp + 0xa0]
mov qword [r14], 0
mov rcx, r14
call fcn.14000cc90
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 + 0xac]
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 0x1400078e5
mov r12, qword [r15]
test r12, r12
jne 0x140007ca6
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__
mov rax, qword [rsp + 0xa0]
inc rax
cmp rax, 2
jae 0x140007ab0
test sil, sil
jne 0x140007bc8
test r14, r14
jne 0x140007cc6
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0xd0]
mov qword [rcx], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x140007c26
lea r14, [rdi + 0x20]
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x140007b1a
mov rax, qword [rsp + 0x60]
inc rax
cmp rax, 2
jae 0x140007a4e
test ebx, ebx
je 0x140007c48
mov rcx, qword [rsp + 0x1d8]
lea rdx, [rsp + 0x68]
call fcn.140007ce0
test al, al
je 0x140007c52
mov rcx, qword [rsp + 0x68]
call fcn.140007ea0
mov qword [rdi + 0x48], rax
test rax, rax
je 0x140007c79
lea rcx, [rsp + 0x68]
lea rbx, [rsp + 0xd0]
mov rdx, rbx
call fcn.140004e70
mov rcx, rdi
mov rdx, rbx
call fcn.140007e30
xor edi, edi
lea rcx, [rsp + 0x68]
call fcn.140004fc0
mov rax, qword [rsp + 0xc8]
cmp rax, 8
jb 0x140007a1a
mov rcx, qword [rsp + 0xb0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140007a15
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140007ca0
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 rbp, rbp
je 0x140007a28
mov rcx, rbp
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14001cdf0
mov eax, edi
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14000cd90
mov r14, rax
mov r15, qword [rsp + 0x1a8]
lea r12, [rsp + 0x60]
mov r13, qword [r12]
call fcn.14000cda0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, r13
mov r8, r12
mov r9, r15
mov rax, r10
call qword [0x14004a010]
mov r14, qword [r12]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [0x14004a010]
jmp 0x140007967
call fcn.14000cd90
mov r15, rax
mov r12, qword [rsp + 0x1a8]
lea r13, [rsp + 0xa0]
mov rbp, qword [r13]
call fcn.14000cda0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r15
mov rcx, rax
mov rdx, rbp
mov rbp, qword [rsp + 0x58]
mov r8, r13
mov r9, r12
mov rax, r10
call qword [0x14004a010]
mov r15, qword [r13]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r15
mov rax, r8
call qword [0x14004a010]
jmp 0x14000790c
call fcn.14000cd90
mov r15, rax
mov r12, qword [rsp + 0x1a8]
mov r13, qword [r14]
call fcn.14000cda0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r15
mov rcx, rax
mov rdx, r13
mov r8, r14
mov r9, r12
mov rax, r10
call qword [0x14004a010]
mov r15, qword [r14]
call fcn.14000cda0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r15
mov rax, r8
call qword [0x14004a010]
mov qword [r14], 0
jmp 0x140007955
call qword [sym.imp.mozglue.dll_free]
jmp 0x140007723
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x1e8]
mov dword [rcx], eax
mov edi, 0x12
jmp 0x1400079cc
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 edi, 0x14
jmp 0x1400079c2
lea r8, [rdi + 0x58]
lea r15, [rsp + 0xd0]
mov rcx, r15
mov rdx, r14
call fcn.140035770
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.140033a90
mov ebp, eax
mov rcx, r15
call fcn.1400359f0
mov rcx, r14
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
test ebp, ebp
jne 0x140007c1c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
jmp 0x14000791e
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 0x140007955
mov edi, 0x15
jmp 0x1400079c2
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 edi, 0x17
jmp 0x1400079c2
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 edi, 0x2b
jmp 0x1400079c2
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
mov rcx, rax
mov rdx, r12
call fcn.14001b760
mov sil, 1
jmp 0x1400078ea
mov rcx, r14
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x14000791e