Function at 0x14001ec10
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 0x14001f3b3
lea rcx, str.PATH
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001ed6a
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 0x14001ed61
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 0x14001ed61
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 0x14001ed58
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, [0x14005bac6]
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.1400211d0
cmp byte [rsi + 4], 0
jne 0x14001f37c
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 0x14001ee45
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 0x14001eddb
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 0x14001ee7f
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 0x14001ef13
mov r13, rax
mov esi, dword [rax + 0x10]
cmp esi, dword [rax]
jb 0x14001eedb
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 0x14001f3d8
lea r13, [r15 + 8]
mov rax, qword [r15 + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001f1a5
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 0x14001f1ae
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 0x14001f031
mov rax, r15
add rax, 0x10
movzx ecx, byte [rdx]
cmp ecx, 0x2d
je 0x14001efa5
cmp ecx, 0x2f
je 0x14001f3a8
mov rdx, qword [r13 + 8]
add r13, 8
add rax, 8
test rdx, rdx
jne 0x14001ef7e
jmp 0x14001f031
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 0x14001ef8f
cmp r8b, 0x2d
je 0x14001efdd
lea r10d, [r8 - 0x30]
cmp r10b, 0xa
jb 0x14001efdd
lea r10d, [r8 - 0x61]
cmp r10b, 0x19
ja 0x14001ef8f
lea r10d, [r9 - 0x41]
movzx r11d, r9b
or r9b, 0x20
cmp r10b, 0x1a
movzx r9d, r9b
cmovae r9d, r11d
cmp r9b, r8b
jne 0x14001ef8f
lea r8, str.win32klockeddown
mov r8b, byte [rdx + r8 + 1]
inc rdx
cmp rdx, 0x10
jne 0x14001efba
cmp byte [rcx + 0x10], 0
jne 0x14001ef8f
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x14001f019
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetWin32kLockedDownInPolicy_void_]
jmp 0x14001f034
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.0x14001f05e.6
lea r8, [0x14001f5c8]
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 0x14001f3ef
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
xor ecx, ecx
call fcn.14001f660
test eax, eax
js 0x14001f409
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 0x14001f413
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 0x14001f43d
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 0x14001f132
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 0x14001f16e
dec rsi
mov r14, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rdi + rsi*8]
test rcx, rcx
je 0x14001f161
call r14
mov rax, rsi
dec rax
test esi, esi
mov rsi, rax
jne 0x14001f155
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.1400300d0
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 0x14001f45f
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 0x14001f385
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 0x14001f543
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
call fcn.14001f5f0
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.14001f660
test eax, eax
js 0x14001f409
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 0x14001f46a
cmp r14d, 1
jle 0x14001f48e
mov rcx, qword [r15 + 8]
lea rdx, [0x1400584e9]
call fcn.140031f20
test al, al
jne 0x14001f496
mov rcx, qword [r15 + 8]
lea rdx, str.xpcshell
call fcn.140031f20
test al, al
jne 0x14001f4a9
mov rbx, r15
test r13, r13
jne 0x14001f4fa
lea r13, [0x140058273]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r13
call fcn.140031f60
test rax, rax
je 0x14001f518
mov qword [rsp + 0xa0], rax
mov ecx, r14d
mov rdx, rbx
call fcn.140020610
test al, al
je 0x14001f52e
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 0x14001f11a
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14001f114
mov ebx, dword [rsp + 0x50]
jmp 0x14001f177
cmp ecx, 0x2f
jne 0x14001f1f5
inc rax
mov rcx, rax
jmp 0x14001f1e0
or eax, 9
jmp 0x14001f3a1
or eax, 0x11
mov ecx, eax
jmp case.0x14001f05e.6
inc rdx
mov rcx, rdx
jmp 0x14001efb5
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
jne 0x14001ecc5
call fcn.1400273f0
jmp 0x14001ecc5
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 0x14001f1f5
call fcn.140053110
test rax, rax
jne 0x14001f074
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140034210
mov ebx, 0xff
jmp 0x14001f11a
call fcn.140053110
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14001f539
lea rax, [0x14003b3d0]
mov qword [rsp + 0xa8], rax
jmp 0x14001f0b5
call fcn.140031f60
mov qword [rsp + 0xb0], rax
jmp 0x14001f0e4
or eax, 0x21
jmp 0x14001f3a1
or eax, 5
jmp 0x14001f3a1
inc rax
mov rcx, rax
jmp 0x14001ef41
mov al, byte [r13]
cmp r14d, 2
jl 0x14001f47c
test al, al
je 0x14001f296
cmp r14d, 1
jg 0x14001f2ae
mov rcx, r15
mov rbx, r15
jmp 0x14001f501
mov rbx, r15
jmp 0x14001f2d2
cmp r14d, 2
jne 0x14001f561
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x14001f51f
lea rcx, [r15 + 8]
mov rdx, r15
add rdx, 0x10
dec r14d
lea r8, [r14*8]
call sub.ntdll.dll_memmove
call fcn.140031f60
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 0x14001f333
mov rcx, r15
mov al, byte [r13]
test al, al
je 0x14001f5a5
xor eax, eax
mov qword [rsp + 0x48], rax
mov r15, rcx
jmp 0x14001f2d9
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140034210
mov ebx, 0xff
jmp 0x14001f33b
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, 1
jmp 0x14001f106
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 0x14001f1f5
mov r13, qword [r15 + 0x10]
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r8, r13
call fcn.140034320
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 0x14001f5ad
mov rbx, r15
add rbx, 0x10
mov rax, qword [r15]
mov qword [r15 + 0x10], rax
add r14d, 0xfffffffe
jmp 0x14001f2c9
mov r15, rcx
jmp 0x14001f2d2
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0xa0]
call fcn.140034210
jmp 0x14001f524