Function at 0x14001ecc0
Capabilities:
Check os version
Get system information on windows
Query environment variable
Set environment variable
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
movaps xmmword [rsp + 0x1d0], xmm6
mov r12, rdx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov dword [rsp + 0x5c], ecx
lea rsi, [rsp + 0xac]
mov r8d, 0x110
mov rcx, rsi
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsi - 0xc], 0x11c
mov rbx, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rbx
mov rcx, rax
mov edx, 1
mov r8b, 3
call rbx
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rbx
movabs rcx, 0x200000006
mov qword [rsi - 8], rcx
mov word [rsi + 0x108], 0
lea rcx, [rsp + 0xa0]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14001f463
lea rcx, str.PATH
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001ee1a
mov ebp, eax
mov ecx, eax
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rsi, rax
mov ebx, ebp
dec ebx
lea rcx, str.PATH
mov rdx, rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp ebx, eax
jne 0x14001ee11
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
lea eax, [r15 - 1]
cmp eax, 0x7ffe
ja 0x14001ee11
mov ecx, r15d
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
mov rcx, rsi
mov rdx, rax
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001ee08
lea rcx, str.PATH
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
lea rcx, [0x14005bac8]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea rdi, str.Mozilla
lea rsi, [rsp + 0x50]
lea rdx, [rsp + 0x5c]
mov rcx, rsi
mov r8, r12
mov r9, rdi
call fcn.140021280
cmp byte [rsi + 4], 0
jne 0x14001f42c
mov qword [rsp + 0x48], rdi
mov eax, dword [rsp + 0x5c]
lea ecx, [rax + 1]
shl rcx, 3
cmp eax, 0xffffffff
mov rsi, 0xffffffffffffffff
cmovl rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
mov eax, dword [rsp + 0x5c]
test eax, eax
jle 0x14001eef5
xor ebx, ebx
xorps xmm6, xmm6
mov rsi, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14, qword [r12 + rbx*8]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rbp, r12
mov r12, rax
lea rdi, [rax + rax*2]
lea rcx, [rax + rax*2]
add rcx, 2
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r13, rax
inc edi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, r12d
mov r12, rbp
call rsi
cdqe
mov byte [r13 + rax], 0
mov qword [r15 + rbx*8], r13
inc rbx
movsxd rax, dword [rsp + 0x5c]
cmp rbx, rax
jl 0x14001ee8b
mov rsi, 0xffffffffffffffff
cdqe
mov qword [r15 + rax*8], 0
lea ecx, [rax + 1]
shl rcx, 3
cmp eax, 0xffffffff
cmovl rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov r8d, dword [rsp + 0x5c]
test r8d, r8d
jle 0x14001ef2f
shl r8, 3
mov rcx, rdi
mov rdx, r15
call sub.ntdll.dll_memcpy
lea rcx, [0x14005951e]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov r12, qword [rax]
mov r14d, dword [rsp + 0x5c]
lea rcx, [rsp + 0x88]
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_init_void____ptr64_]
call qword [sym.imp.mozglue.dll_public:_static_class_mozilla::baseprofiler::ProfilingStack____ptr64___cdecl_mozilla::baseprofiler::AutoProfilerLabel::GetProfilingStack_void_]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14001efc3
mov r13, rax
mov esi, dword [rax + 0x10]
cmp esi, dword [rax]
jb 0x14001ef8b
mov rcx, r13
call qword [sym.imp.mozglue.dll_private:_void___cdecl_mozilla::baseprofiler::ProfilingStack::ensureCapacitySlow_void____ptr64]
mov rax, qword [r13 + 8]
lea rcx, [rsi + rsi*4]
lea rdx, str.nsBrowserApp_main
mov qword [rax + rcx*8], rdx
mov qword [rax + rcx*8 + 8], 0
lea rdx, [rsp + 0x78]
mov qword [rax + rcx*8 + 0x10], rdx
mov dword [rax + rcx*8 + 0x24], 0x10001
mov eax, dword [r13 + 0x10]
inc eax
mov dword [r13 + 0x10], eax
cmp r14d, 2
jl 0x14001f488
lea r13, [r15 + 8]
mov rax, qword [r15 + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001f255
lea rcx, [rax + 1]
lea rdx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove rcx, rdx
lea rdx, str.contentproc
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14001f25e
lea ebx, [r14 - 1]
mov rcx, qword [r15 + rbx*8]
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetGeckoProcessType_char_const____ptr64_]
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x14001f0e1
mov rax, r15
add rax, 0x10
movzx ecx, byte [rdx]
cmp ecx, 0x2d
je 0x14001f055
cmp ecx, 0x2f
je 0x14001f458
mov rdx, qword [r13 + 8]
add r13, 8
add rax, 8
test rdx, rdx
jne 0x14001f02e
jmp 0x14001f0e1
lea rcx, [rdx + 1]
lea r8, [rdx + 2]
cmp byte [rdx + 1], 0x2d
cmove rcx, r8
mov r8b, 0x77
xor edx, edx
mov r9b, byte [rcx + rdx]
test r9b, r9b
je 0x14001f03f
cmp r8b, 0x2d
je 0x14001f08d
lea r10d, [r8 - 0x30]
cmp r10b, 0xa
jb 0x14001f08d
lea r10d, [r8 - 0x61]
cmp r10b, 0x19
ja 0x14001f03f
lea r10d, [r9 - 0x41]
movzx r11d, r9b
or r9b, 0x20
cmp r10b, 0x1a
movzx r9d, r9b
cmovae r9d, r11d
cmp r9b, r8b
jne 0x14001f03f
lea r8, str.win32klockeddown
mov r8b, byte [rdx + r8 + 1]
inc rdx
cmp rdx, 0x10
jne 0x14001f06a
cmp byte [rcx + 0x10], 0
jne 0x14001f03f
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x14001f0c9
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetWin32kLockedDownInPolicy_void_]
jmp 0x14001f0e4
mov ebx, r14d
mov eax, dword [0x140064a98]
mov ecx, eax
or ecx, 1
mov rdx, qword [sym.imp.mozglue.dll_enum_GeckoProcessType_mozilla::startup::sChildProcessType]
mov edx, dword [rdx]
add edx, 0xfffffffc
cmp edx, 7
ja case.0x14001f10e.6
lea r8, [0x14001f678]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001f49f
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
xor ecx, ecx
call fcn.14001f710
test eax, eax
js 0x14001f4b9
mov r14, qword [0x140064a90]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001f4c3
dec ebx
mov rdx, qword [r15 + rbx*8]
mov rax, qword [r14]
mov rax, qword [rax + 0x50]
mov rcx, r14
call qword [0x14006a010]
mov rax, qword [r14]
mov rax, qword [rax + 0x48]
mov rcx, r14
call qword [0x14006a010]
cmp eax, 9
je 0x14001f4ed
mov rax, qword [r14]
mov rax, qword [rax + 0x58]
lea r9, [rsp + 0xa0]
mov rcx, r14
mov edx, ebx
mov r8, r15
call qword [0x14006a010]
mov ebx, eax
shr ebx, 0x1f
mov rcx, qword [0x140064a90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14006a010]
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::UnregisterRuntimeExceptionModule_void_]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14001f1e2
mov ecx, dword [rax + 0x10]
dec ecx
mov dword [rax + 0x10], ecx
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::baseprofiler::profiler_shutdown_void_]
mov rcx, r15
call qword [sym.imp.mozglue.dll_free]
movsxd rsi, dword [rsp + 0x5c]
test rsi, rsi
je 0x14001f21e
dec rsi
mov r14, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rdi + rsi*8]
test rcx, rcx
je 0x14001f211
call r14
mov rax, rsi
dec rax
test esi, esi
mov rsi, rax
jne 0x14001f205
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140030180
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x1d0]
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ecx, 0x2f
je 0x14001f50f
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x140064a98]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rax, qword [r13]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001f435
lea rcx, [rax + 1]
lea rdx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove rcx, rdx
lea rdx, str.silentmode
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001f5f3
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
call fcn.14001f6a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov edx, r14d
mov r8, r15
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CreateAndStorePreXULSkeletonUI_struct_HINSTANCE______ptr64__int__char____ptr64____ptr64_]
mov ecx, 1
call fcn.14001f710
test eax, eax
js 0x14001f4b9
mov rcx, qword [0x140064a90]
movups xmm0, xmmword [rsp + 0x88]
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov rax, qword [rsp + 0x98]
mov qword [r8 + 0x10], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
mov edx, 1
call qword [0x14006a010]
mov rcx, qword [0x140064a90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [0x14006a010]
lea rcx, str.XUL_APP_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r13, rax
test rax, rax
jne 0x14001f51a
cmp r14d, 1
jle 0x14001f53e
mov rcx, qword [r15 + 8]
lea rdx, [0x1400584e9]
call fcn.140032020
test al, al
jne 0x14001f546
mov rcx, qword [r15 + 8]
lea rdx, str.xpcshell
call fcn.140032020
test al, al
jne 0x14001f559
mov rbx, r15
test r13, r13
jne 0x14001f5aa
lea r13, [0x140058273]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r13
call fcn.140032060
test rax, rax
je 0x14001f5c8
mov qword [rsp + 0xa0], rax
mov ecx, r14d
mov rdx, rbx
call fcn.1400206c0
test al, al
je 0x14001f5de
mov rcx, qword [0x140064a90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
lea r9, [rsp + 0xa0]
mov edx, r14d
mov r8, rbx
call qword [0x14006a010]
mov ebx, eax
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CleanupProcessRuntime_void_]
mov rcx, qword [0x140064a90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x14006a010]
mov rcx, qword [0x140064a90]
mov qword [0x140064a90], 0
test rcx, rcx
je 0x14001f1ca
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14001f1c4
mov ebx, dword [rsp + 0x50]
jmp 0x14001f227
cmp ecx, 0x2f
jne 0x14001f2a5
inc rax
mov rcx, rax
jmp 0x14001f290
or eax, 9
jmp 0x14001f451
or eax, 0x11
mov ecx, eax
jmp case.0x14001f10e.6
inc rdx
mov rcx, rdx
jmp 0x14001f065
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
jne 0x14001ed75
call fcn.1400274a0
jmp 0x14001ed75
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x140064a98]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
jmp 0x14001f2a5
call fcn.140053210
test rax, rax
jne 0x14001f124
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140034310
mov ebx, 0xff
jmp 0x14001f1ca
call fcn.140053210
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14001f5e9
lea rax, [0x14003b4d0]
mov qword [rsp + 0xa8], rax
jmp 0x14001f165
call fcn.140032060
mov qword [rsp + 0xb0], rax
jmp 0x14001f194
or eax, 0x21
jmp 0x14001f451
or eax, 5
jmp 0x14001f451
inc rax
mov rcx, rax
jmp 0x14001eff1
mov al, byte [r13]
cmp r14d, 2
jl 0x14001f52c
test al, al
je 0x14001f346
cmp r14d, 1
jg 0x14001f35e
mov rcx, r15
mov rbx, r15
jmp 0x14001f5b1
mov rbx, r15
jmp 0x14001f382
cmp r14d, 2
jne 0x14001f611
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x14001f5cf
lea rcx, [r15 + 8]
mov rdx, r15
add rdx, 0x10
dec r14d
lea r8, [r14*8]
call sub.ntdll.dll_memmove
call fcn.140032060
mov qword [rsp + 0xa0], rax
mov rcx, qword [0x140064a90]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x20], rdx
mov edx, r14d
mov r8, r15
mov r9, r12
jmp 0x14001f3e3
mov rcx, r15
mov al, byte [r13]
test al, al
je 0x14001f655
xor eax, eax
mov qword [rsp + 0x48], rax
mov r15, rcx
jmp 0x14001f389
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140034310
mov ebx, 0xff
jmp 0x14001f3eb
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, 1
jmp 0x14001f1b6
lea rcx, str.MOZ_APP_SILENT_START1
mov rsi, qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
call rsi
lea rcx, str.MOZ_APP_ALLOW_WINDOWLESS1
call rsi
jmp 0x14001f2a5
mov r13, qword [r15 + 0x10]
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r8, r13
call fcn.140034420
mov rcx, rbx
call qword [sym.imp.mozglue.dll_strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
test eax, eax
jne 0x14001f65d
mov rbx, r15
add rbx, 0x10
mov rax, qword [r15]
mov qword [r15 + 0x10], rax
add r14d, 0xfffffffe
jmp 0x14001f379
mov r15, rcx
jmp 0x14001f382
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0xa0]
call fcn.140034310
jmp 0x14001f5d4