Function at 0x1400304f4
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf8
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rax, qword [rbp + 0x77]
mov rsi, rcx
mov r13, qword [rbp + 0x6f]
mov rcx, rdx
mov r14, qword [rbp + 0x87]
mov rbx, r8
mov qword [rbp - 0x69], rax
mov r12, rdx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x71], rax
mov byte [rsp + 0x60], r9b
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], rax
test rcx, rcx
je 0x140030560
call qword [sym.imp.mozglue.dll_free]
mov rcx, rbx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rbx, rax
mov rax, qword [r13 + 0x68]
neg rax
sbb edi, edi
and edi, 0x80000
add edi, 0x40c
cmp qword [rsi + 0x30], 0
mov r15d, edi
je 0x14003059a
call fcn.1400161e0
cmp dword [rax], 5
jge 0x14003059a
bts r15d, 0x18
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r8, qword [rbp - 0x71]
lea rcx, [rbp - 0x31]
mov rdx, rax
mov rdi, rax
call fcn.140011b00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [rbp - 0x19], 8
lea rdx, [rbp - 0x61]
mov qword [rsp + 0x50], rdx
lea rcx, [rbp - 0x31]
cmovae rcx, qword [rbp - 0x31]
mov r8, rbx
mov qword [rsp + 0x48], r13
xor eax, eax
xor r13d, r13d
mov qword [rbp - 0x61], rax
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov rdx, r12
mov rcx, qword [rsi + 0x18]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
movzx eax, byte [rsp + 0x60]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14003062f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
lea edi, [r13 + 0x12]
jmp 0x140030755
xorps xmm0, xmm0
mov qword [rbp - 0x79], r13
lea rdx, [rbp - 0x61]
lea rcx, [rsp + 0x68]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.140015bb8
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140030682
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140030682
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
xor edx, edx
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14003074b
mov rdx, qword [rsi + 0x20]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400306d0
mov rax, qword [rsp + 0x70]
lea rcx, [rbp - 0x71]
mov qword [rbp - 0x71], rax
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1400306c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
xor edx, edx
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x15
jmp 0x14003074b
lea rcx, [rsi + 0x20]
call fcn.140001760
mov rcx, qword [rbp - 0x69]
lea rdx, [rsp + 0x68]
call fcn.140015b4c
test al, al
jne 0x1400306ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
xor edx, edx
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14003074b
mov rcx, qword [rsp + 0x68]
call fcn.140031774
mov qword [rsi + 0x48], rax
test rax, rax
jne 0x14003072f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
xor edx, edx
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14003074b
lea rdx, [rbp - 0x49]
lea rcx, [rsp + 0x68]
call fcn.140015c84
mov rdx, rax
mov rcx, rsi
call fcn.140015bb8
mov edi, r13d
lea rcx, [rsp + 0x68]
call fcn.140015a74
lea rcx, [rbp - 0x31]
call fcn.140004cb0
test rbx, rbx
je 0x14003076c
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov eax, edi
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140005a70
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret