Function at 0x14001eb10
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 [0x140061018]
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 0x14001f2b6
lea rcx, [0x140058ff0]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001ec67
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, [0x140058ff0]
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, eax
jne 0x14001ec5e
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 0x14001ec5e
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 0x14001ec55
lea rcx, [0x140058ff0]
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, [0x1400591f2]
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.140020ea0
cmp byte [rsi + 4], 0
jne 0x14001f145
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 0x14001ed4d
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 0x14001ecde
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 0x14001ed87
shl r8, 3
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_memcpy
lea rcx, str.PATH
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 0x14001ee19
mov rbx, rax
mov esi, dword [rax + 0x10]
cmp esi, dword [rax]
jb 0x14001ede3
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 0x14001f2db
lea rbx, [rdi + 8]
mov rax, qword [rdi + 8]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001ef69
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 0x14001ef72
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 [0x140061a88]
mov rax, qword [sym.imp.mozglue.dll_enum_GeckoProcessType_mozilla::startup::sChildProcessType]
mov eax, dword [rax]
cmp eax, 0xb
je 0x14001f2fc
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 0x14001f162
mov r12, rdi
mov rax, rdi
add rax, 0x10
movzx ecx, byte [rdx]
cmp ecx, 0x2d
je 0x14001eedd
cmp ecx, 0x2f
je 0x14001f2ab
mov rdx, qword [rbx + 8]
add rbx, 8
add rax, 8
test rdx, rdx
jne 0x14001eeb6
jmp 0x14001f165
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 0x14001eec7
cmp bpl, 0x2d
je 0x14001ef14
lea edi, [rbp - 0x30]
cmp dil, 0xa
jb 0x14001ef14
lea edi, [rbp - 0x61]
cmp dil, 0x19
ja 0x14001eec7
lea edi, [rsi - 0x41]
movzx edx, sil
or sil, 0x20
cmp dil, 0x1a
movzx edi, sil
cmovae edi, edx
cmp dil, bpl
jne 0x14001eec7
lea rdx, str.win32klockeddown
mov bpl, byte [r8 + rdx + 1]
inc r8
cmp r8, 0x10
jne 0x14001eef3
cmp byte [rcx + 0x10], 0
jne 0x14001eec7
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x14001ef4e
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetWin32kLockedDownInPolicy_void_]
jmp 0x14001f168
cmp ecx, 0x2f
je 0x14001f367
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x140061a88]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
mov rax, qword [rbx]
movzx ecx, byte [rax]
cmp ecx, 0x2d
jne 0x14001f14e
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 0x14001f436
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
call fcn.14001f690
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.14001f4c0
test eax, eax
js 0x14001f2f2
mov rcx, qword [0x140061a80]
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.0x14002eb7e.0]
mov rcx, qword [0x140061a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14002eb7e.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 0x14001f372
cmp r13d, 1
jle 0x14001f38a
mov rcx, qword [rdi + 8]
lea rdx, [0x140055fb7]
call fcn.1400317c0
test al, al
jne 0x14001f392
cmp r13d, 2
jl 0x14001f08f
mov rcx, qword [rdi + 8]
lea rdx, str.xpcshell
call fcn.1400317c0
test al, al
jne 0x14001f3a5
mov rsi, rdi
test rbx, rbx
jne 0x14001f3f6
lea rbx, [0x140055d41]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rbx
call fcn.140031800
test rax, rax
je 0x14001f40b
mov qword [rsp + 0xa0], rax
mov ecx, r13d
mov rdx, rsi
call fcn.140020380
test al, al
je 0x14001f421
mov rcx, qword [0x140061a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
lea r9, [rsp + 0xa0]
mov edx, r13d
mov r8, rsi
call qword [case.0x14002eb7e.0]
mov ebx, eax
call qword [sym.imp.mozglue.dll_void___cdecl_mozilla::CleanupProcessRuntime_void_]
mov rcx, qword [0x140061a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14002eb7e.0]
mov rcx, qword [0x140061a80]
mov qword [0x140061a80], 0
test rcx, rcx
je 0x14001f221
mov rax, qword [rcx]
mov rax, qword [rax + 8]
jmp 0x14001f21b
mov ebx, dword [rsp + 0x50]
jmp 0x14001f27d
cmp ecx, 0x2f
jne 0x14001efb8
inc rax
mov rcx, rax
jmp 0x14001efa3
mov r12, rdi
mov r14d, r13d
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001f304
call qword [sym.imp.mozglue.dll_enum_mozilla::WindowsDpiInitializationResult___cdecl_mozilla::WindowsDpiInitialization_void_]
xor ecx, ecx
call fcn.14001f4c0
test eax, eax
mov rdi, r12
js 0x14001f2f2
mov rbx, qword [0x140061a80]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
cmp qword [sym.firefox.exe_g_shared_section], 0
jne 0x14001f32b
dec r14d
mov rdx, qword [rdi + r14*8]
mov rax, qword [rbx]
mov rax, qword [rax + 0x50]
mov rcx, rbx
call qword [case.0x14002eb7e.0]
mov rax, qword [rbx]
mov rax, qword [rax + 0x48]
mov rcx, rbx
call qword [case.0x14002eb7e.0]
cmp eax, 9
je 0x14001f355
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.0x14002eb7e.0]
mov ebx, eax
shr ebx, 0x1f
mov rcx, qword [0x140061a80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14002eb7e.0]
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::UnregisterRuntimeExceptionModule_void_]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14001f239
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 0x14001f274
dec rsi
mov rbp, qword [sym.imp.mozglue.dll_free]
mov rcx, qword [r15 + rsi*8]
test rcx, rcx
je 0x14001f267
call rbp
mov rax, rsi
dec rax
test esi, esi
mov rsi, rax
jne 0x14001f25c
mov rcx, r15
call qword [sym.imp.mozglue.dll_free]
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.14002f4d0
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 0x14001eeed
lea rsi, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
jne 0x14001ebc5
call fcn.140026b50
jmp 0x14001ebc5
call qword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov ecx, dword [0x140061a88]
call qword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
jmp 0x14001efb8
mov ebx, 0xff
jmp 0x14001f221
or ecx, 5
jmp 0x14001ee9a
call fcn.140050f50
test rax, rax
jne 0x14001f176
lea rcx, str.Failed_to_initialize_the_sandbox_target_services.
call fcn.140031aa0
mov ebx, 0xff
mov rdi, r12
jmp 0x14001f221
call fcn.140050f50
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14001f42c
lea rax, [0x140039ba0]
mov qword [rsp + 0xa8], rax
jmp 0x14001f1ba
call fcn.140031800
mov qword [rsp + 0xb0], rax
jmp 0x14001f1ea
inc rax
mov rcx, rax
jmp 0x14001ee47
cmp r13d, 2
jl 0x14001f071
cmp byte [rbx], 0
je 0x14001f059
jmp 0x14001f071
mov rsi, rdi
jmp 0x14001f09b
cmp r13d, 2
jne 0x14001f454
lea rcx, str.Incorrect_number_of_arguments_passed_to__app
jmp 0x14001f412
lea rcx, [rdi + 8]
mov rdx, rdi
add rdx, 0x10
dec r13d
lea r8, [r13*8]
call sub.ntdll.dll_memmove
call fcn.140031800
mov qword [rsp + 0xa0], rax
mov rcx, qword [0x140061a80]
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 0x14001f0fc
cmp byte [rbx], 0
je 0x14001f09b
xor eax, eax
mov qword [rsp + 0x48], rax
jmp 0x14001f0a2
lea rcx, str.Couldnt_initialize_the_broker_services._n
call fcn.140031aa0
mov ebx, 0xff
jmp 0x14001f104
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, 1
jmp 0x14001f20d
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 0x14001efb8
mov rbx, qword [rdi + 0x10]
lea rsi, [rsp + 0xa0]
mov rcx, rsi
mov r8, rbx
call fcn.1400338a0
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 0x14001f498
mov rsi, rdi
add rsi, 0x10
mov rax, qword [rdi]
mov qword [rdi + 0x10], rax
add r13d, 0xfffffffe
jmp 0x14001f092
lea rcx, str.Couldnt_set__s._n
lea rdx, [rsp + 0xa0]
call fcn.140031aa0
jmp 0x14001f417