Function at 0x1400018c0
Capabilities:
Query environment variable
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x180
mov rbx, r8
mov rsi, rdx
mov edi, ecx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x58]
mov dl, 1
call qword [method.mozilla::TimeStamp.Now_bool_]
lea rcx, [rsp + 0x38]
call qword [method.mozilla::baseprofiler.profiler_init_void_]
call qword [method.mozilla::baseprofiler::AutoProfilerLabel.GetProfilingStack__]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001958
mov r14, rax
mov r12d, dword [rax + 0x10]
cmp r12d, dword [rax]
jae 0x140001f21
mov rax, qword [r14 + 8]
lea rcx, [r12 + r12*4]
lea rdx, str.nsBrowserApp_main
mov qword [rax + rcx*8], rdx
mov qword [rax + rcx*8 + 8], 0
lea rdx, [rsp + 0x30]
mov qword [rax + rcx*8 + 0x10], rdx
mov dword [rax + rcx*8 + 0x24], 0x10001
inc dword [r14 + 0x10]
cmp edi, 2
jl 0x140001984
lea r14, [rsi + 8]
mov rax, qword [rsi + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2f
je 0x14000199b
cmp ecx, 0x2d
jne 0x1400019b2
lea rcx, [rax + 1]
lea rdx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove rcx, rdx
jmp 0x1400019a1
call qword [method.CrashReporter.RegisterRuntimeExceptionModule__]
mov ecx, dword [0x140138578]
call qword [sym.imp.mozglue.dll_DllBlocklist_Initialize_unsigned_int_]
jmp 0x140001b1a
inc rax
mov rcx, rax
lea rdx, [0x1400f713f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400019f1
call qword [method.CrashReporter.RegisterRuntimeExceptionModule__]
mov ecx, dword [0x140138578]
call qword [sym.imp.mozglue.dll_DllBlocklist_Initialize_unsigned_int_]
mov rax, qword [r14]
movzx ecx, byte [rax]
cmp ecx, 0x2f
je 0x140001aeb
cmp ecx, 0x2d
jne 0x140001b1a
lea rcx, [rax + 1]
lea rdx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove rcx, rdx
jmp 0x140001af1
lea ebx, [rdi - 1]
mov rcx, qword [rsi + rbx*8]
call qword [method.mozilla.SetGeckoProcessType_char_const_]
call qword [method.CrashReporter.RegisterRuntimeExceptionModule__]
mov r8, qword [rsi + 8]
test r8, r8
je 0x140001c9a
lea rax, [rsi + 0x10]
lea rcx, str.win32klockeddown
jmp 0x140001a35
mov r8, qword [r14 + 8]
add r14, 8
add rax, 8
test r8, r8
je 0x140001c9a
movzx edx, byte [r8]
cmp edx, 0x2f
je 0x140001a60
cmp edx, 0x2d
jne 0x140001a20
lea rdx, [r8 + 1]
lea r9, [r8 + 2]
cmp byte [r8 + 1], 0x2d
cmove rdx, r9
jmp 0x140001a66
inc r8
mov rdx, r8
mov r9b, 0x77
xor r8d, r8d
nop dword [rax]
movzx r10d, byte [rdx + r8]
test r10b, r10b
je 0x140001a20
cmp r9b, 0x2d
je 0x140001a94
lea r11d, [r9 - 0x30]
cmp r11b, 0xa
jb 0x140001a94
lea r11d, [r9 - 0x61]
cmp r11b, 0x19
ja 0x140001a20
lea r11d, [r10 - 0x41]
movzx ebp, r10b
or r10b, 0x20
cmp r11b, 0x1a
movzx r10d, r10b
cmovae r10d, ebp
cmp r10b, r9b
jne 0x140001a20
movzx r9d, byte [r8 + rcx + 1]
inc r8
test r9b, r9b
jne 0x140001a70
cmp byte [rdx + r8], 0
jne 0x140001a20
nop
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x140001ad0
call qword [method.mozilla.SetWin32kLockedDownInPolicy__]
jmp 0x140001c9c
inc rax
mov rcx, rax
lea rdx, str.silentmode
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001b1a
lea rcx, str.MOZ_APP_SILENT_START1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
lea rcx, str.MOZ_APP_ALLOW_WINDOWLESS1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
call qword [method.mozilla.WindowsDpiInitialization__]
call fcn.140019830
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov edx, edi
mov r8, rsi
call qword [method.mozilla.CreateAndStorePreXULSkeletonUI_HINSTANCE____int__char_]
mov ecx, 1
call fcn.140002140
test eax, eax
js 0x140001f1a
mov rcx, qword [0x140138580]
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
mov rcx, qword [0x140138580]
mov rax, qword [rcx]
call qword [rax + 0x68]
lea rcx, str.XUL_APP_FILE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov r14, rax
test rax, rax
je 0x140001bb8
movzx eax, byte [r14]
cmp edi, 2
jl 0x140001ba6
test al, al
je 0x140001bc1
cmp edi, 1
jg 0x140001bff
test al, al
jne 0x140001c4e
jmp 0x140001e2a
cmp edi, 1
jle 0x140001e2a
mov rax, qword [rsi + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2f
je 0x140001be4
cmp ecx, 0x2d
jne 0x140001bff
lea rcx, [rax + 1]
lea rdx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove rcx, rdx
jmp 0x140001bea
inc rax
mov rcx, rax
lea rdx, [0x1400f7389]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001d94
mov rax, qword [rsi + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2f
je 0x140001c22
cmp ecx, 0x2d
jne 0x140001c39
lea rcx, [rax + 1]
lea rdx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove rcx, rdx
jmp 0x140001c28
inc rax
mov rcx, rax
lea rdx, str.xpcshell
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001c55
test r14, r14
je 0x140001e2a
movzx eax, byte [r14]
test al, al
je 0x140001e2a
xor eax, eax
jmp 0x140001e38
lea rcx, [rsi + 8]
lea rdx, [rsi + 0x10]
dec edi
lea r8, [rdi*8]
call sub.ntdll.dll_memmove
call fcn.140073b00
mov qword [rsp + 0x70], rax
mov rcx, qword [0x140138580]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
mov edx, edi
mov r8, rsi
mov r9, rbx
call qword [rax + 0x48]
jmp 0x140001e8b
mov ebx, edi
mov ecx, dword [0x140138578]
or ecx, 1
mov rax, qword [sym.imp.mozglue.dll_mozilla::startup::sChildProcessType]
mov eax, dword [rax]
add eax, 0xfffffffc
cmp eax, 7
ja 0x140001ccc
mov edx, 0x93
bt edx, eax
jae 0x140001ccc
cdqe
lea rdx, [0x1400f7484]
or ecx, dword [rdx + rax*4]
call qword [sym.imp.mozglue.dll_DllBlocklist_Initialize_unsigned_int_]
call sym.firefox.exe_IsSandboxedProcess
test al, al
je 0x140001ce9
call fcn.140073970
test rax, rax
je 0x140001dfd
call qword [method.mozilla.WindowsDpiInitialization__]
xor ecx, ecx
call fcn.140002140
test eax, eax
js 0x140001f1a
mov rdi, qword [0x140138580]
test ebx, ebx
jle 0x140001dea
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
call sym.firefox.exe_IsSandboxedProcess
test al, al
je 0x140001d49
call fcn.140073970
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140001f10
lea rax, [0x14001f170]
mov qword [rsp + 0x78], rax
dec ebx
mov rdx, qword [rsi + rbx*8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
cmp eax, 9
jne 0x140001d73
call fcn.140073b00
mov qword [rsp + 0x80], rax
mov rax, qword [rdi]
lea r9, [rsp + 0x70]
mov rcx, rdi
mov edx, ebx
mov r8, rsi
call qword [rax + 0x60]
mov esi, eax
shr esi, 0x1f
mov rdi, qword [0x140138580]
jmp 0x140001def
cmp edi, 2
jne 0x140001da5
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x140001e96
mov r14, qword [rsi + 0x10]
lea rdx, str.XUL_APP_FILE_s
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov r8, r14
call fcn.1400022f0
mov rcx, rbx
call sub.mozglue.dll_strdup
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
test eax, eax
je 0x140001e13
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0x70]
call fcn.140002030
jmp 0x140001e9b
mov esi, 3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
jmp 0x140001ed0
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140002030
mov esi, 0xff
jmp 0x140001ed0
mov rax, qword [rsi]
mov qword [rsi + 0x10], rax
add rsi, 0x10
add edi, 0xfffffffe
test r14, r14
jne 0x140001c42
lea r14, str.browser
lea rax, str.Tor_Project
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r14
call fcn.140073b00
test rax, rax
je 0x140001e8f
mov qword [rsp + 0x70], rax
lea r8, [0x1400f7440]
lea r9, [0x1400f7450]
mov ecx, edi
mov rdx, rsi
call fcn.140002410
test al, al
je 0x140001f34
mov rcx, qword [0x140138580]
mov rax, qword [rcx]
lea r9, [rsp + 0x70]
mov edx, edi
mov r8, rsi
call qword [rax + 0x38]
mov esi, eax
jmp 0x140001ea0
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140002030
mov esi, 0xff
call qword [method.mozilla.CleanupProcessRuntime__]
mov rcx, qword [0x140138580]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [0x140138580]
mov qword [0x140138580], 0
test rcx, rcx
je 0x140001ed0
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [method.CrashReporter.UnregisterRuntimeExceptionModule__]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140001ee3
dec dword [rax + 0x10]
call qword [method.mozilla::baseprofiler.profiler_shutdown__]
mov rax, qword [rsp + 0x178]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140001f2f
mov eax, esi
add rsp, 0x180
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 1
jmp 0x140001d8b
mov esi, 0xff
jmp 0x140001ed0
mov rcx, r14
call qword [method.mozilla::baseprofiler::ProfilingStack.ensureCapacitySlow__]
jmp 0x140001926
call fcn.1400c8850
mov ecx, 0x7f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3