Function at 0x14002b5f4
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 [0x14003a010]
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 0x14002b660
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 0x14002b69a
call fcn.1400112e0
cmp dword [rax], 5
jge 0x14002b69a
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.14000cc00
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 0x14002b72f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
lea edi, [r13 + 0x12]
jmp 0x14002b855
xorps xmm0, xmm0
mov qword [rbp - 0x79], r13
lea rdx, [rbp - 0x61]
lea rcx, [rsp + 0x68]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.140010cb8
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14002b782
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14002b782
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 0x14002b84b
mov rdx, qword [rsi + 0x20]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002b7d0
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 0x14002b7c7
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 0x14002b84b
lea rcx, [rsi + 0x20]
call fcn.140001760
mov rcx, qword [rbp - 0x69]
lea rdx, [rsp + 0x68]
call fcn.140010c4c
test al, al
jne 0x14002b7ff
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 0x14002b84b
mov rcx, qword [rsp + 0x68]
call fcn.14002c874
mov qword [rsi + 0x48], rax
test rax, rax
jne 0x14002b82f
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 0x14002b84b
lea rdx, [rbp - 0x49]
lea rcx, [rsp + 0x68]
call fcn.140010d84
mov rdx, rax
mov rcx, rsi
call fcn.140010cb8
mov edi, r13d
lea rcx, [rsp + 0x68]
call fcn.140010b74
lea rcx, [rbp - 0x31]
call fcn.140004bb0
test rbx, rbx
je 0x14002b86c
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov eax, edi
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1400057b0
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret