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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r13d, r9d
mov rsi, r8
mov rbx, rdx
mov r12, rcx
mov r15, qword [rsp + 0x1d0]
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rcx, rdx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [r12 + 0x50]
mov qword [r12 + 0x50], rax
test rcx, rcx
je 0x14003e4c7
call qword [sym.imp.mozglue.dll_free]
mov rcx, rsi
call qword [sym.imp.mozglue.dll__wcsdup]
mov rbp, rax
xor r14d, r14d
cmp qword [r15 + 0x68], 0
setne r14b
shl r14d, 0x13
or r14d, 0x40c
cmp qword [r12 + 0x30], 0
je 0x14003e505
call fcn.14001e7a0
lea ecx, [r14 + 0x1000000]
cmp eax, 5
cmovl r14d, ecx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdi, rax
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rax
mov r8, qword [rsp + 0x1e0]
call fcn.140016ff0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp qword [rsp + 0xc8], 7
jbe 0x14003e545
mov rsi, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x1e8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
movzx eax, r13b
mov rcx, qword [r12 + 0x18]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, rbp
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14003e5c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov edi, 0x12
jmp 0x14003e68c
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.14001dc60
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x14003e60b
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14003e60b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14003e682
mov rbx, qword [r12 + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jae 0x14003e6cd
mov rcx, qword [rsp + 0x1d8]
lea rdx, [rsp + 0x68]
call fcn.14001dd60
test al, al
je 0x14003e668
mov rcx, qword [rsp + 0x68]
call fcn.140040ed0
mov qword [r12 + 0x48], rax
test rax, rax
jne 0x14003e741
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14003e682
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
lea rcx, [rsp + 0x68]
call fcn.14001dd00
lea rcx, [rsp + 0xb0]
call fcn.14000ba00
test rbp, rbp
je 0x14003e6a7
mov rcx, rbp
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140045f60
mov eax, edi
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14003e768
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xd0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14003e877
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, [rsp + 0x60]
call fcn.140017ad0
mov edi, 0x15
jmp 0x14003e682
lea rcx, [rsp + 0x68]
lea rsi, [rsp + 0xd0]
mov rdx, rsi
call fcn.14001de60
mov rcx, r12
mov rdx, rsi
call fcn.14001dc90
xor edi, edi
jmp 0x14003e682
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x98]
call fcn.140017a40
mov r14, qword [rsp + 0x98]
mov ecx, 0x4c
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0xd0], rax
add rax, 0x4c
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x3c], xmm0
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov edx, 0x1f
mov r8, rsi
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14003e804
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14003e8b2
xor r15d, r15d
xor esi, esi
lea rcx, [rsp + 0xd0]
call fcn.1400147f0
lea rcx, [rsp + 0x98]
call fcn.140017ad0
test sil, sil
je 0x14003e890
lea r8, [r12 + 0x58]
lea r14, [rsp + 0xd0]
mov rcx, r14
mov rdx, r15
call fcn.14003b6c0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8, r14
xor r9d, r9d
call fcn.140038ad0
test eax, eax
sete sil
mov rcx, r14
call fcn.14003b860
test r15, r15
jne 0x14003e897
jmp 0x14003e89f
lea rcx, [r12 + 0x20]
call fcn.140017ad0
lea rcx, [rsp + 0x60]
call fcn.140017ad0
jmp 0x14003e61e
xor esi, esi
test r15, r15
je 0x14003e89f
mov rcx, r15
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
test sil, sil
je 0x14003e6f2
mov rbx, qword [rsp + 0x60]
jmp 0x14003e6f2
mov ecx, 0x44
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14003c930
mov sil, 1
jmp 0x14003e809