Function at 0x14001e3b0
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 [0x14005e018]
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 0x14001eb62
lea rcx, str.PATH
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001e507
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 0x14001e4fe
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 0x14001e4fe
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 0x14001e4f5
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, [0x140056064]
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.140020730
cmp byte [rsi + 4], 0
jne 0x14001e9f1
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 0x14001e5ed
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 0x14001e57e
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 0x14001e627
shl r8, 3
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_memcpy
lea rcx, [0x140053ee8]
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 0x14001e6b9
mov rbx, rax
mov esi, dword [rax + 0x10]
cmp esi, dword [rax]
jb 0x14001e683
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 0x14001eb87
lea rbx, [rdi + 8]
mov rax, qword [rdi + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001e809
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 0x14001e812
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 [0x14005ec88]
mov rax, qword [sym.imp.mozglue.dll_enum_GeckoProcessType_mozilla::startup::sChildProcessType]
mov eax, dword [rax]
cmp eax, 0xb
je 0x14001eba8
xor edx, edx
cmp eax, 8
sete dl
shl edx, 3
or edx, ecx
or edx, 1
mov ecx, edx
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rdx, qword [rbx]
test rdx, rdx
je 0x14001ea0e
mov r12, rdi
mov rax, rdi
add rax, 0x10
movzx ecx, byte [rdx]
cmp ecx, 0x2d
je 0x14001e77d
cmp ecx, 0x2f
je 0x14001eb57
mov rdx, qword [rbx + 8]
add rbx, 8
add rax, 8
test rdx, rdx
jne 0x14001e756
jmp 0x14001ea11
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 0x14001e767
cmp bpl, 0x2d
je 0x14001e7b4
lea edi, [rbp - 0x30]
cmp dil, 0xa
jb 0x14001e7b4
lea edi, [rbp - 0x61]
cmp dil, 0x19
ja 0x14001e767
lea edi, [rsi - 0x41]
movzx edx, sil
or sil, 0x20
cmp dil, 0x1a
movzx edi, sil
cmovae edi, edx
cmp dil, bpl
jne 0x14001e767
lea rdx, str.win32klockeddown
mov bpl, byte [r8 + rdx + 1]
inc r8
cmp r8, 0x10
jne 0x14001e793
cmp byte [rcx + 0x10], 0
jne 0x14001e767
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x14001e7ee
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetWin32kLockedDownInPolicy_void_]
jmp 0x14001ea14
cmp ecx, 0x2f
je 0x14001ec13
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x14005ec88]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rax, qword [rbx]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001e9fa
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 0x14001ece2
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
call fcn.14001ef30
lea rcx, [0x14005edc0]
call sub.ntdll.dll_RtlRunOnceInitialize
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.14001ed60
test eax, eax
js 0x14001eb9e
mov rcx, qword [0x14005ea50]
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.0x14002bdde.0]
mov rcx, qword [0x14005ea50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14002bdde.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 0x14001ec1e
cmp r13d, 1
jle 0x14001ec36
mov rcx, qword [rdi + 8]
lea rdx, [0x140052edf]
call fcn.14002ea20
test al, al
jne 0x14001ec3e
cmp r13d, 2
jl 0x14001e93b
mov rcx, qword [rdi + 8]
lea rdx, str.xpcshell
call fcn.14002ea20
test al, al
jne 0x14001ec51
mov rsi, rdi
test rbx, rbx
jne 0x14001eca2
lea rbx, [0x140052c69]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
call fcn.14002ea60
test rax, rax
je 0x14001ecb7
mov qword [rsp + 0xa0], rax
mov ecx, r13d
mov rdx, rsi
call fcn.14001fc10
test al, al
je 0x14001eccd
mov rcx, qword [0x14005ea50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
lea r9, [rsp + 0xa0]
mov edx, r13d
mov r8, rsi
call qword [case.0x14002bdde.0]
mov ebx, eax
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CleanupProcessRuntime_void_]
mov rcx, qword [0x14005ea50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14002bdde.0]
mov rcx, qword [0x14005ea50]
mov qword [0x14005ea50], 0
test rcx, rcx
je 0x14001eacd
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14001eac7
mov ebx, dword [rsp + 0x50]
jmp 0x14001eb29
cmp ecx, 0x2f
jne 0x14001e858
inc rax
mov rcx, rax
jmp 0x14001e843
mov r12, rdi
mov r14d, r13d
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001ebb0
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
xor ecx, ecx
call fcn.14001ed60
test eax, eax
mov rdi, r12
js 0x14001eb9e
mov rbx, qword [0x14005ea50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001ebd7
dec r14d
mov rdx, qword [rdi + r14*8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x50]
mov rcx, rbx
call qword [case.0x14002bdde.0]
mov rax, qword [rbx]
mov rax, qword [rax + 0x48]
mov rcx, rbx
call qword [case.0x14002bdde.0]
cmp eax, 9
je 0x14001ec01
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.0x14002bdde.0]
mov ebx, eax
shr ebx, 0x1f
mov rcx, qword [0x14005ea50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14002bdde.0]
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::UnregisterRuntimeExceptionModule_void_]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14001eae5
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 0x14001eb20
dec rsi
mov rbp, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [r15 + rsi*8]
test rcx, rcx
je 0x14001eb13
call rbp
mov rax, rsi
dec rax
test esi, esi
mov rsi, rax
jne 0x14001eb08
mov rcx, r15
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.14002c730
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 0x14001e78d
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
jne 0x14001e465
call fcn.140024cf0
jmp 0x14001e465
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x14005ec88]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
jmp 0x14001e858
mov ebx, 0xff
jmp 0x14001eacd
or ecx, 5
jmp 0x14001e73a
call fcn.14004de20
test rax, rax
jne 0x14001ea22
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.14002ed00
mov ebx, 0xff
mov rdi, r12
jmp 0x14001eacd
call fcn.14004de20
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14001ecd8
lea rax, [0x1400369f0]
mov qword [rsp + 0xa8], rax
jmp 0x14001ea66
call fcn.14002ea60
mov qword [rsp + 0xb0], rax
jmp 0x14001ea96
inc rax
mov rcx, rax
jmp 0x14001e6e7
cmp r13d, 2
jl 0x14001e91d
cmp byte [rbx], 0
je 0x14001e905
jmp 0x14001e91d
mov rsi, rdi
jmp 0x14001e947
cmp r13d, 2
jne 0x14001ed00
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x14001ecbe
lea rcx, [rdi + 8]
mov rdx, rdi
add rdx, 0x10
dec r13d
lea r8, [r13*8]
call sub.ntdll.dll_memmove
call fcn.14002ea60
mov qword [rsp + 0xa0], rax
mov rcx, qword [0x14005ea50]
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 0x14001e9a8
cmp byte [rbx], 0
je 0x14001e947
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x14001e94e
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.14002ed00
mov ebx, 0xff
jmp 0x14001e9b0
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, 1
jmp 0x14001eab9
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 0x14001e858
mov rbx, qword [rdi + 0x10]
lea rsi, [rsp + 0xa0]
mov rcx, rsi
mov r8, rbx
call fcn.140030880
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 0x14001ed44
mov rsi, rdi
add rsi, 0x10
mov rax, qword [rdi]
mov qword [rdi + 0x10], rax
add r13d, 0xfffffffe
jmp 0x14001e93e
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0xa0]
call fcn.14002ed00
jmp 0x14001ecc3