Function at 0x140025440
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140062018]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, str.MOZ_DISABLE_NONLOCAL_CONNECTIONS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140025486
cmp byte [rax], 0
jne 0x140025821
lea rcx, str.MOZ_RUN_GTEST
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400254a1
cmp byte [rax], 0
setne r12b
jmp 0x1400254a4
xor r12d, r12d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov rdi, rax
inc rdi
cmp rdi, 1
ja 0x14002558d
test r12b, r12b
je 0x1400257ed
mov dword [rsi], 0x80
mov ecx, 0x80
call qword [sym.imp.mozglue.dll_moz_xmalloc]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x14002553a
call qword [sym.imp.mozglue.dll_free]
mov rax, qword [rsi + 8]
mov dword [rax], 0x400040
mov qword [rax + 8], 0x40
mov qword [rax + 0x10], 0xffffffffffffffff
xor ecx, ecx
mov dword [rax + 0x18], ecx
mov rdx, qword [rsi + 8]
movaps xmm0, xmmword [0x140054400]
movups xmmword [rdx + 0x70], xmm0
movaps xmm0, xmmword [0x1400543f0]
movups xmmword [rdx + 0x60], xmm0
movaps xmm0, xmmword [0x1400543e0]
movups xmmword [rdx + 0x50], xmm0
movaps xmm0, xmmword [str.TestDllBlocklist_UserBlocked.dll]
movups xmmword [rdx + 0x40], xmm0
mov dword [rax + 0x20], ecx
jmp 0x1400257ed
lea r9, [rsp + 0x7c]
mov dword [r9], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
mov rcx, r15
mov r8d, 0xc
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400254e7
cmp dword [rsp + 0x7c], 0xc
jne 0x1400257ed
cmp dword [rsp + 0x70], 0x4646424c
jne 0x1400257ed
cmp dword [rsp + 0x74], 1
jne 0x1400257ed
mov eax, dword [rsp + 0x78]
lea ebx, [rax + 0x60]
test r12b, r12b
cmove ebx, eax
mov rcx, rbx
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r13, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.ntdll.dll_memset
mov r8d, dword [rsp + 0x78]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x7c]
mov rcx, r15
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002574b
mov r8d, dword [rsp + 0x7c]
cmp r8d, dword [rsp + 0x78]
jne 0x14002574b
mov qword [rsp + 0x38], rbx
lea rax, str.TestDllBlocklist_UserBlocked.dll
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0x400040
test r8d, r8d
je 0x14002579a
mov rax, qword [rsp + 0x38]
add eax, 0xffffffc0
mov qword [rsp + 0x48], rax
xor r14d, r14d
xor r9d, r9d
mov eax, r14d
lea rbx, [rax + r13]
movzx eax, word [r13 + rax]
test rax, rax
je 0x140025753
mov rcx, qword [rbx + 8]
lea rdx, [rcx + rax]
mov ebp, dword [rsp + 0x78]
cmp rdx, rbp
ja 0x140025795
mov word [rbx + 2], ax
test r9b, 1
sete dl
and dl, r12b
cmp dl, 1
jne 0x14002573c
mov dword [rsp + 0x44], r9d
mov ebp, r8d
add rcx, r13
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], ax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
test eax, eax
jle 0x14002572f
lea rbp, [rbx + 0x20]
mov r8d, dword [rsp + 0x78]
sub r8d, r14d
mov rcx, rbp
mov rdx, rbx
call sub.ntdll.dll_memmove
mov dword [rbx], 0x400040
mov rax, qword [rsp + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], 0xffffffffffffffff
mov dword [rbx + 0x18], 0
add r14d, 0x20
mov r9b, 1
mov rax, qword [rsp + 0x38]
mov r8d, eax
mov rbx, rbp
jmp 0x140025737
mov r8d, ebp
mov r9d, dword [rsp + 0x44]
add qword [rbx + 8], 0x20
add r14d, 0x20
cmp r14d, r8d
jb 0x140025674
jmp 0x14002579a
mov rcx, r13
jmp 0x1400257e7
test r9b, 1
sete al
and al, r12b
cmp al, 1
jne 0x14002579a
lea rcx, [rbx + 0x20]
mov r8d, dword [rsp + 0x78]
sub r8d, r14d
mov rdx, rbx
call sub.ntdll.dll_memmove
mov dword [rbx], 0x400040
mov rax, qword [rsp + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], 0xffffffffffffffff
mov dword [rbx + 0x18], 0
jmp 0x14002579a
mov word [rbx], 0
test r12b, r12b
mov rax, qword [rsp + 0x38]
je 0x1400257d8
movaps xmm0, xmmword [0x140054400]
movups xmmword [r13 + rax - 0x10], xmm0
movaps xmm0, xmmword [0x1400543f0]
movups xmmword [r13 + rax - 0x20], xmm0
movaps xmm0, xmmword [0x1400543e0]
movups xmmword [r13 + rax - 0x30], xmm0
movaps xmm0, xmmword [str.TestDllBlocklist_UserBlocked.dll]
movups xmmword [r13 + rax - 0x40], xmm0
mov dword [rsi], eax
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], r13
test rcx, rcx
je 0x1400257ed
call qword [sym.imp.mozglue.dll_free]
cmp rdi, 2
jb 0x1400257fc
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002fae0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12b, 1
jmp 0x1400254a4