Function at 0x140070290
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, 0x158
mov ebp, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r12, qword [rsp + 0x1c0]
mov rax, qword [0x1401054a8]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, rdx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [rdi + 0x50]
mov qword [rdi + 0x50], rax
test rcx, rcx
je 0x1400702e7
call sub.mozglue.dll_free
mov r14, qword [rsp + 0x1d0]
mov rcx, rsi
call qword [sym.imp.mozglue.dll__wcsdup]
mov rsi, rax
xor r13d, r13d
cmp qword [r12 + 0x70], 0
setne r13b
shl r13d, 0x13
or r13d, 0x40c
cmp qword [rdi + 0x30], 0
je 0x140070330
call fcn.140047d90
lea ecx, [r13 + 0x1000000]
cmp eax, 5
cmovge ecx, r13d
mov r13d, ecx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r15, rax
lea rcx, [rsp + 0x98]
mov rdx, rax
mov r8, r14
call fcn.140025340
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
test byte [rsp + 0x98], 1
je 0x140070369
mov rax, qword [rsp + 0xa8]
jmp 0x140070371
lea rax, [rsp + 0x9a]
mov r14, qword [rsp + 0x1d8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov rcx, qword [rdi + 0x18]
movzx edx, bpl
add r12, 8
lea r8, [rsp + 0x80]
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400704e8
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.1400467e0
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140070413
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140070509
mov rbx, qword [rdi + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400706af
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xc0]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov r13, r14
je 0x1400705f1
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0xb0], 0
lea rcx, [rsp + 0xb0]
call fcn.1400235b0
mov r14, qword [rsp + 0xb0]
mov ecx, 0x4c
call fcn.1400d4140
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 + 0xbc]
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 0x140070529
cmp qword [r15], 0
je 0x140070529
mov ecx, 0x44
call fcn.1400d4140
mov r14, rax
mov rdx, qword [r15]
mov rcx, rax
call fcn.14006d140
mov r12b, 1
jmp 0x14007052f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov edi, 0x12
test byte [rsp + 0x98], 1
jne 0x14007074f
jmp 0x14007075c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14007073b
xor r14d, r14d
xor r12d, r12d
mov rcx, r15
call fcn.1400d4220
mov r15, qword [rsp + 0xb0]
lea rax, [r15 + 1]
cmp rax, 2
jae 0x1400705a8
test r12b, r12b
je 0x1400705e1
lea r8, [rdi + 0x58]
lea r15, [rsp + 0xc0]
mov rcx, r15
mov rdx, r14
call fcn.14006ba00
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.140067b90
mov ebp, eax
mov rcx, r15
call fcn.14006bc40
mov rcx, r14
call fcn.1400d4220
test ebp, ebp
jne 0x1400705ee
mov rbx, qword [rsp + 0x60]
jmp 0x1400705ee
mov rbp, qword [rsp + 0x198]
call fcn.140023340
lea rdx, [rsp + 0xb0]
mov rcx, r15
mov r8, rbp
mov r9, rax
call fcn.1400454e0
mov rcx, qword [rsp + 0xb0]
call fcn.140045470
test r12b, r12b
jne 0x140070552
test r14, r14
je 0x1400705ee
mov rcx, r14
call fcn.1400d4220
mov r14, r13
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0xc0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x140070655
lea r14, [rdi + 0x20]
mov r15, qword [r14]
lea rax, [r15 + 1]
cmp rax, 2
jb 0x14007066b
mov rbp, qword [rsp + 0x198]
call fcn.140023340
mov rcx, r15
mov rdx, r14
mov r8, rbp
mov r9, rax
call fcn.1400454e0
mov rcx, qword [r14]
call fcn.140045470
mov qword [r14], 0
jmp 0x14007066b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r14, qword [rsp + 0x60]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400706a4
mov r15, qword [rsp + 0x198]
call fcn.140023340
lea rdx, [rsp + 0x60]
mov rcx, r14
mov r8, r15
mov r9, rax
call fcn.1400454e0
mov rcx, qword [rsp + 0x60]
call fcn.140045470
test ebx, ebx
mov r14, r13
je 0x140070736
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x68]
call fcn.1400469e0
test al, al
je 0x1400706fc
mov rcx, qword [rsp + 0x68]
call fcn.1400739b0
mov qword [rdi + 0x48], rax
test rax, rax
je 0x140070719
lea rbx, [rsp + 0xc0]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140046af0
mov rcx, rdi
mov rdx, rbx
call fcn.140046830
xor edi, edi
jmp 0x14007073b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14007073b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14007073b
mov edi, 0x15
lea rcx, [rsp + 0x68]
call fcn.140046890
test byte [rsp + 0x98], 1
je 0x14007075c
mov rcx, qword [rsp + 0xa8]
call fcn.1400d4220
test rsi, rsi
je 0x140070769
mov rcx, rsi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x150]
xor rax, rsp
mov rcx, qword [0x1401054a8]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x140070799
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d58e0
int3