Function at 0x14001ebf0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x38], rcx
mov rax, qword [0x140061030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r12, qword [r8]
xor ebp, ebp
lea r15, [rsp + 0x40]
mov qword [r15 + 0x20], rbp
xorps xmm0, xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rsi
mov r13, rax
call rsi
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x438
mov rcx, rax
mov rdx, r12
mov r8, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [r15 + 0x28], ebp
mov byte [r15 + 0x30], bpl
mov byte [r15 + 0x34], bpl
mov qword [r15 + 0x38], rbp
lea rcx, [0x140058a10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r15 + 0x38], rax
lea rdx, [0x140055760]
lea r8, [0x140027ae0]
lea r9, [rsp + 0xa0]
mov rcx, r15
call fcn.14001f2c0
test al, al
je 0x14001f144
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea r15, [rsp + 0x80]
mov rcx, rdi
mov rdx, r15
call fcn.14001a120
cmp byte [r15 + 0x10], 0
jne 0x14001f144
mov rax, qword [rdi + 0x30]
lea rdx, [0x140061d68]
test rax, rax
je 0x14001ed0f
cmp qword [rdi + 0x10], rdx
ja 0x14001ed0f
lea rcx, [0x140061d68]
cmp qword [rdi + 0x20], rcx
jb 0x14001ed0f
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xb8]
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001f13e
lea rdx, str.LdrLoadDll
lea r8, [0x140023ed0]
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0xa0]
call fcn.14001f2c0
test al, al
je 0x14001f169
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea r15, [rsp + 0x80]
mov rcx, rdi
mov rdx, r15
call fcn.14001a120
cmp byte [r15 + 0x10], 0
jne 0x14001f169
mov rax, qword [rdi + 0x30]
lea rdx, [0x140061d60]
test rax, rax
je 0x14001edba
cmp qword [rdi + 0x10], rdx
ja 0x14001edba
lea rcx, [0x140061d60]
cmp qword [rdi + 0x20], rcx
jb 0x14001edba
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xb8]
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001f163
lea r15, [rsp + 0xa0]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call fcn.14001dde0
cmp byte [r15 + 0x10], 0
jne 0x14001f188
lea rcx, [0x140058a10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x14001f118
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001f118
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001f118
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x14001f118
mov edx, dword [rax + rcx + 0x50]
cmp rdx, 0x148
jb 0x14001f118
lea rcx, [rdi + 0x10]
test rbx, rbx
je 0x14001f0de
lea r12, [rsp + 0x80]
mov rdx, r12
xor r8d, r8d
call fcn.140017260
mov r14, qword [r12]
mov r15, qword [r12 + 8]
mov al, byte [r12 + 0x10]
test al, al
je 0x14001f1a1
shl r14, 3
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.14001a120
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x30]
mov rdx, r15
test rax, rax
je 0x14001eed4
mov rdx, r15
cmp qword [rdi + 0x10], r15
ja 0x14001eed4
mov rdx, r15
cmp qword [rdi + 0x20], r15
jb 0x14001eed4
mov rdx, r15
sub rdx, qword [rdi + 8]
add rax, rdx
mov rdx, rax
lea r13, [rsp + 0x98]
mov qword [r13 - 0x18], rdx
mov qword [r13 - 0x10], r14
mov qword [r13 - 8], rcx
mov qword [r13], 0
mov qword [rsp + 0x20], r13
mov r8, r14
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001f1c3
mov ecx, dword [rsp + 0x9c]
test ecx, ecx
js 0x14001f1e3
lea r12, [rsp + 0xb8]
mov rcx, rdi
mov rdx, r12
call fcn.14001a120
cmp byte [r12 + 0x10], 0
jne 0x14001f202
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x14001ef56
cmp qword [rdi + 0x10], r15
ja 0x14001ef56
cmp qword [rdi + 0x20], r15
jb 0x14001ef56
sub r15, qword [rdi + 8]
add r15, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov rdx, r15
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001f21a
mov bl, 1
cmp dword [rsp + 0x9c], 0
js 0x14001efb0
mov r9d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
je 0x14001f077
mov eax, dword [0x140061da0]
and eax, 2
cmp eax, 1
mov eax, 3
sbb eax, 0
mov ecx, dword [rsp + 0x140]
mov dword [rsp + 0xb8], eax
add ecx, 0xfffffffc
cmp ecx, 7
ja case.0x14001eff0.6
lea rdx, [0x140054c40]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
or eax, 4
mov dword [rsp + 0xb8], eax
lea rbx, [rsp + 0x80]
mov rcx, rdi
mov rdx, rbx
call fcn.14001a120
cmp byte [rbx + 0x10], 0
jne 0x14001f256
mov rax, qword [rdi + 0x30]
lea rdx, [0x140061da0]
test rax, rax
je 0x14001f046
cmp qword [rdi + 0x10], rdx
ja 0x14001f046
lea rcx, [0x140061da0]
cmp qword [rdi + 0x20], rcx
jb 0x14001f046
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xb8]
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001f26e
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x10], 0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001f090
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001f0a9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001f0b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14002ba20
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rdx, rax
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov byte [r8 + 0x10], 1
lea r15, [rsp + 0xb8]
mov rdx, r15
call fcn.140017260
mov r14, qword [r15]
mov rbx, qword [r15 + 8]
mov al, byte [r15 + 0x10]
mov r15, rbx
jmp 0x14001ee8a
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rcx], rax
movabs rax, 0x800700c100000060
mov qword [rcx + 8], rax
jmp 0x14001f077
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rcx], rax
movabs rax, 0x8007050700000040
jmp 0x14001f135
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rcx], rax
movabs rax, 0x8007050700000046
jmp 0x14001f135
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x10], 1
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rax], xmm0
jmp 0x14001f077
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rcx], rax
movabs rax, 0x8007000d00000078
jmp 0x14001f135
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x9c], ecx
jmp 0x14001ef13
mov rdx, qword [rsp + 0x38]
mov byte [rdx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rdx], rax
mov dword [rdx + 8], 0x84
mov dword [rdx + 0xc], ecx
jmp 0x14001f24f
mov rax, qword [rsp + 0xb8]
mov edx, dword [rsp + 0xc0]
mov ecx, dword [rsp + 0xc4]
jmp 0x14001f23a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5f3
mov r8, qword [rsp + 0x38]
mov byte [r8 + 0x10], 1
mov qword [r8], rax
mov dword [r8 + 8], edx
mov dword [r8 + 0xc], ecx
xor ebx, ebx
jmp 0x14001ef7b
mov rax, qword [rsp + 0x80]
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
jmp 0x14001f28e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_workspace_obj_build_dist_include_mozilla_NativeNt.h
mov edx, 0x5f3
mov r8, qword [rsp + 0x38]
mov byte [r8 + 0x10], 1
mov qword [r8], rax
mov dword [r8 + 8], edx
mov dword [r8 + 0xc], ecx
jmp 0x14001f077
or eax, 0x10
jmp 0x14001eff5
or eax, 8
jmp 0x14001eff5
or eax, 0x20
jmp 0x14001eff5