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 r14, rdx
mov rax, qword [0x140062018]
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 0x14001f3c9
lea rcx, str.PATH
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001ed67
mov ebx, eax
mov ecx, eax
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
mov esi, ebx
dec esi
lea rcx, str.PATH
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, eax
jne 0x14001ed5e
mov rcx, r15
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
lea eax, [rsi - 1]
cmp eax, 0x7ffe
ja 0x14001ed5e
mov ecx, esi
add rcx, rcx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, r15
mov rdx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001ed55
lea rcx, str.PATH
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov rcx, r15
call qword [sym.imp.mozglue.dll_free]
lea rcx, [0x14005a2b8]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea rdi, str.Mozilla
lea rsi, [rsp + 0x50]
lea rdx, [rsp + 0x5c]
mov rcx, rsi
mov r8, r14
mov r9, rdi
call fcn.140020fe0
cmp byte [rsi + 4], 0
jne 0x14001f248
mov qword [rsp + 0x48], rdi
movsxd rax, dword [rsp + 0x5c]
inc rax
mov ebx, 8
mul rbx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov eax, dword [rsp + 0x5c]
test eax, eax
jle 0x14001ee4d
xor r15d, r15d
xorps xmm6, xmm6
mov r12, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rsi, qword [r14 + r15*8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r13, rdi
mov rbp, rax
lea rdi, [rax + rax*2]
lea rcx, [rax + rax*2]
add rcx, 2
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, 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, rsi
mov r9d, ebp
mov rdi, r13
call r12
cdqe
mov byte [rbx + rax], 0
mov qword [r13 + r15*8], rbx
inc r15
movsxd rax, dword [rsp + 0x5c]
cmp r15, rax
jl 0x14001edde
mov rsi, 0xffffffffffffffff
mov ebx, 8
cdqe
mov qword [rdi + rax*8], 0
inc eax
cdqe
mul rbx
cmovno rsi, rax
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
mov r8d, dword [rsp + 0x5c]
test r8d, r8d
jle 0x14001ee87
shl r8, 3
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_memcpy
lea rcx, [0x14005809e]
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 r13d, 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 0x14001ef19
mov rbx, rax
mov esi, dword [rax + 0x10]
cmp esi, dword [rax]
jb 0x14001eee3
mov rcx, rbx
call qword [sym.imp.mozglue.dll_private:_void___cdecl_mozilla::baseprofiler::ProfilingStack::ensureCapacitySlow_void____ptr64]
mov rax, qword [rbx + 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 [rbx + 0x10]
inc eax
mov dword [rbx + 0x10], eax
cmp r13d, 2
jl 0x14001f3ee
lea rbx, [rdi + 8]
mov rax, qword [rdi + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001f06c
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 0x14001f075
lea r14d, [r13 - 1]
mov rcx, qword [rdi + r14*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 ecx, dword [0x140062a88]
mov rax, qword [sym.imp.mozglue.dll_enum_GeckoProcessType_mozilla::startup::sChildProcessType]
mov eax, dword [rax]
cmp eax, 5
je 0x14001f26d
cmp eax, 8
je 0x14001f265
cmp eax, 0xb
je 0x14001f472
or ecx, 1
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rdx, qword [rbx]
test rdx, rdx
je 0x14001f275
mov r12, rdi
mov rax, rdi
add rax, 0x10
movzx ecx, byte [rdx]
cmp ecx, 0x2d
je 0x14001efe0
cmp ecx, 0x2f
je 0x14001f3be
mov rdx, qword [rbx + 8]
add rbx, 8
add rax, 8
test rdx, rdx
jne 0x14001efb9
jmp 0x14001f278
lea rcx, [rdx + 1]
lea rbp, [rdx + 2]
cmp byte [rdx + 1], 0x2d
cmove rcx, rbp
mov bpl, 0x77
xor r8d, r8d
mov sil, byte [rcx + r8]
test sil, sil
je 0x14001efca
cmp bpl, 0x2d
je 0x14001f017
lea edi, [rbp - 0x30]
cmp dil, 0xa
jb 0x14001f017
lea edi, [rbp - 0x61]
cmp dil, 0x19
ja 0x14001efca
lea edi, [rsi - 0x41]
movzx edx, sil
or sil, 0x20
cmp dil, 0x1a
movzx edi, sil
cmovae edi, edx
cmp dil, bpl
jne 0x14001efca
lea rdx, str.win32klockeddown
mov bpl, byte [r8 + rdx + 1]
inc r8
cmp r8, 0x10
jne 0x14001eff6
cmp byte [rcx + 0x10], 0
jne 0x14001efca
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x14001f051
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetWin32kLockedDownInPolicy_void_]
jmp 0x14001f27b
cmp ecx, 0x2f
je 0x14001f47a
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x140062a88]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rax, qword [rbx]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001f251
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 0x14001f549
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
call fcn.14001f7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov edx, r13d
mov r8, rdi
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CreateAndStorePreXULSkeletonUI_struct_HINSTANCE______ptr64__int__char____ptr64____ptr64_]
mov ecx, 1
call fcn.14001f5d0
test eax, eax
js 0x14001f405
mov rcx, qword [0x140062a80]
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 [case.0x14002f18e.0]
mov rcx, qword [0x140062a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14002f18e.0]
lea rcx, str.XUL_APP_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14001f485
cmp r13d, 1
jle 0x14001f49d
mov rcx, qword [rdi + 8]
lea rdx, [0x140057017]
call fcn.140031e30
test al, al
jne 0x14001f4a5
cmp r13d, 2
jl 0x14001f192
mov rcx, qword [rdi + 8]
lea rdx, str.xpcshell
call fcn.140031e30
test al, al
jne 0x14001f4b8
mov rsi, rdi
test rbx, rbx
jne 0x14001f509
lea rbx, [0x140056da1]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
call fcn.140031e70
test rax, rax
je 0x14001f51e
mov qword [rsp + 0xa0], rax
mov ecx, r13d
mov rdx, rsi
call fcn.1400204c0
test al, al
je 0x14001f534
mov rcx, qword [0x140062a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
lea r9, [rsp + 0xa0]
mov edx, r13d
mov r8, rsi
call qword [case.0x14002f18e.0]
mov ebx, eax
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CleanupProcessRuntime_void_]
mov rcx, qword [0x140062a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14002f18e.0]
mov rcx, qword [0x140062a80]
mov qword [0x140062a80], 0
test rcx, rcx
je 0x14001f334
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14001f32e
mov ebx, dword [rsp + 0x50]
jmp 0x14001f390
cmp ecx, 0x2f
jne 0x14001f0bb
inc rax
mov rcx, rax
jmp 0x14001f0a6
or ecx, 9
jmp 0x14001ef9d
or ecx, 0x11
jmp 0x14001ef9d
mov r12, rdi
mov r14d, r13d
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001f40f
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
xor ecx, ecx
call fcn.14001f5d0
test eax, eax
mov rdi, r12
js 0x14001f405
mov rbx, qword [0x140062a80]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001f436
dec r14d
mov rdx, qword [rdi + r14*8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x50]
mov rcx, rbx
call qword [case.0x14002f18e.0]
mov rax, qword [rbx]
mov rax, qword [rax + 0x48]
mov rcx, rbx
call qword [case.0x14002f18e.0]
cmp eax, 9
je 0x14001f460
mov rax, qword [rbx]
mov rax, qword [rax + 0x58]
lea r9, [rsp + 0xa0]
mov rcx, rbx
mov edx, r14d
mov r8, rdi
call qword [case.0x14002f18e.0]
mov ebx, eax
shr ebx, 0x1f
mov rcx, qword [0x140062a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14002f18e.0]
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::UnregisterRuntimeExceptionModule_void_]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14001f34c
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, rdi
call qword [sym.imp.mozglue.dll_free]
movsxd rsi, dword [rsp + 0x5c]
test rsi, rsi
je 0x14001f387
dec rsi
mov rbp, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [r15 + rsi*8]
test rcx, rcx
je 0x14001f37a
call rbp
mov rax, rsi
dec rax
test esi, esi
mov rsi, rax
jne 0x14001f36f
mov rcx, r15
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.14002fae0
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
inc rdx
mov rcx, rdx
jmp 0x14001eff0
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
jne 0x14001ecc5
call fcn.140026c50
jmp 0x14001ecc5
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x140062a88]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
jmp 0x14001f0bb
mov ebx, 0xff
jmp 0x14001f334
call fcn.140051620
test rax, rax
jne 0x14001f289
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140032110
mov ebx, 0xff
mov rdi, r12
jmp 0x14001f334
call fcn.140051620
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14001f53f
lea rax, [0x14003a1b0]
mov qword [rsp + 0xa8], rax
jmp 0x14001f2cd
call fcn.140031e70
mov qword [rsp + 0xb0], rax
jmp 0x14001f2fd
or ecx, 5
jmp 0x14001ef9d
inc rax
mov rcx, rax
jmp 0x14001ef47
cmp r13d, 2
jl 0x14001f174
cmp byte [rbx], 0
je 0x14001f15c
jmp 0x14001f174
mov rsi, rdi
jmp 0x14001f19e
cmp r13d, 2
jne 0x14001f567
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x14001f525
lea rcx, [rdi + 8]
mov rdx, rdi
add rdx, 0x10
dec r13d
lea r8, [r13*8]
call sub.ntdll.dll_memmove
call fcn.140031e70
mov qword [rsp + 0xa0], rax
mov rcx, qword [0x140062a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x20], rdx
mov edx, r13d
mov r8, rdi
mov r9, r12
jmp 0x14001f1ff
cmp byte [rbx], 0
je 0x14001f19e
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x14001f1a5
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140032110
mov ebx, 0xff
jmp 0x14001f207
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, 1
jmp 0x14001f320
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 0x14001f0bb
mov rbx, qword [rdi + 0x10]
lea rsi, [rsp + 0xa0]
mov rcx, rsi
mov r8, rbx
call fcn.140033cd0
mov rcx, rsi
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 0x14001f5ab
mov rsi, rdi
add rsi, 0x10
mov rax, qword [rdi]
mov qword [rdi + 0x10], rax
add r13d, 0xfffffffe
jmp 0x14001f195
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0xa0]
call fcn.140032110
jmp 0x14001f52a