Function at 0x1400130c0
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 r15, r9
mov rdi, r8
mov r12, rdx
mov qword [rsp + 0x38], rcx
mov rax, qword [0x14005f018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r13, qword [r8]
xor ebp, ebp
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x20], rbp
xorps xmm0, xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r14
mov rsi, rax
call r14
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x438
mov rcx, rax
mov rdx, r13
mov r8, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [rbx + 0x28], ebp
mov byte [rbx + 0x30], bpl
mov byte [rbx + 0x34], bpl
mov qword [rbx + 0x38], rbp
lea rcx, [0x140056166]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x38], rax
lea rdx, [0x140053eff]
lea r8, [0x140021d80]
lea r9, [rsp + 0xa0]
mov rcx, rbx
call fcn.140013d50
test al, al
je 0x1400135f0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea rsi, [rsp + 0x80]
mov rcx, rdi
mov rdx, rsi
call fcn.140013750
cmp byte [rsi + 0x10], 0
jne 0x1400135f0
mov rax, qword [rdi + 0x30]
lea rdx, [0x14005fd78]
test rax, rax
je 0x1400131dd
cmp qword [rdi + 0x10], rdx
ja 0x1400131dd
lea rcx, [0x14005fd78]
cmp qword [rdi + 0x20], rcx
jb 0x1400131dd
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 0x1400135ea
lea rdx, str.LdrLoadDll
lea r8, [0x140021a40]
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0xa0]
call fcn.140013d50
test al, al
je 0x140013615
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
lea rsi, [rsp + 0x80]
mov rcx, rdi
mov rdx, rsi
call fcn.140013750
cmp byte [rsi + 0x10], 0
jne 0x140013615
mov rax, qword [rdi + 0x30]
lea rdx, [0x14005fd70]
test rax, rax
je 0x140013287
cmp qword [rdi + 0x10], rdx
ja 0x140013287
lea rcx, [0x14005fd70]
cmp qword [rdi + 0x20], rcx
jb 0x140013287
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 0x14001360f
lea rsi, [rsp + 0xa0]
mov rcx, rsi
mov rdx, r12
mov r8, rdi
call fcn.140013a10
cmp byte [rsi + 0x10], 0
jne 0x140013634
lea rcx, [0x140056166]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x1400135bc
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400135bc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400135bc
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x1400135bc
mov edx, dword [rax + rcx + 0x50]
cmp rdx, 0x148
jb 0x1400135bc
lea rcx, [rdi + 0x10]
test r15, r15
jne 0x140013367
add rdx, rax
lea r8, [rsp + 0x80]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov byte [r8 + 0x10], 1
lea rsi, [rsp + 0xb8]
mov rdx, rsi
call fcn.1400138a0
mov r12, qword [rsi]
mov r15, qword [rsi + 8]
mov al, byte [rsi + 0x10]
mov rbx, r15
jmp 0x140013384
lea rsi, [rsp + 0x80]
mov rdx, rsi
xor r8d, r8d
call fcn.1400138a0
mov r12, qword [rsi]
mov rbx, qword [rsi + 8]
mov al, byte [rsi + 0x10]
test al, al
je 0x14001364d
shl r12, 3
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.140013750
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x1400135e2
cmp qword [rdi + 0x10], rbx
ja 0x1400135e2
mov rdx, rbx
cmp qword [rdi + 0x20], rbx
jb 0x1400133d0
mov rdx, rbx
sub rdx, qword [rdi + 8]
add rax, rdx
mov rdx, rax
lea r13, [rsp + 0x98]
mov qword [r13 - 0x18], rdx
mov qword [r13 - 0x10], r12
mov qword [r13 - 8], rcx
mov qword [r13], 0
mov qword [rsp + 0x20], r13
mov r8, r12
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001366f
mov ecx, dword [rsp + 0x9c]
test ecx, ecx
js 0x14001368f
lea rsi, [rsp + 0xb8]
mov rcx, rdi
mov rdx, rsi
call fcn.140013750
cmp byte [rsi + 0x10], 0
jne 0x1400136ab
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x140013450
cmp qword [rdi + 0x10], rbx
ja 0x140013450
cmp qword [rdi + 0x20], rbx
jb 0x140013450
sub rbx, qword [rdi + 8]
add rbx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r15
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400136c3
mov sil, 1
mov rbx, qword [rsp + 0x38]
cmp dword [rsp + 0x9c], 0
js 0x1400134b0
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 sil, sil
je 0x140013553
mov eax, dword [0x14005fc78]
and eax, 2
movzx ecx, byte [rsp + 0x140]
shl ecx, 2
cmp eax, 1
sbb ecx, 0
add ecx, 3
mov dword [rsp + 0xb8], ecx
lea rsi, [rsp + 0x80]
mov rcx, rdi
mov rdx, rsi
call fcn.140013750
cmp byte [rsi + 0x10], 0
jne 0x1400136fc
mov rax, qword [rdi + 0x30]
lea rdx, [0x14005fc78]
test rax, rax
je 0x140013527
cmp qword [rdi + 0x10], rdx
ja 0x140013527
lea rcx, [0x14005fc78]
cmp qword [rdi + 0x20], rcx
jb 0x140013527
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 0x140013714
mov byte [rbx + 0x10], 0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001356c
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013585
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140013595
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140027a90
mov rax, rbx
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rbx], rax
movabs rax, 0x800700c100000056
mov qword [rbx + 8], rax
jmp 0x140013553
mov rdx, rbx
jmp 0x1400133d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rbx], rax
movabs rax, 0x8007050700000036
jmp 0x1400135d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rbx], rax
movabs rax, 0x800705070000003c
jmp 0x1400135d9
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx], xmm0
jmp 0x140013553
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rbx], rax
movabs rax, 0x8007000d0000006e
jmp 0x1400135d9
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 0x14001340f
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rbx], rax
mov dword [rbx + 8], 0x7a
jmp 0x1400136f2
mov rax, qword [rsp + 0xb8]
mov edx, dword [rsp + 0xc0]
mov ecx, dword [rsp + 0xc4]
jmp 0x1400136e3
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, 0x5cf
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
mov qword [rbx], rax
mov dword [rbx + 8], edx
mov dword [rbx + 0xc], ecx
xor esi, esi
jmp 0x14001347b
mov rax, qword [rsp + 0x80]
mov edx, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
jmp 0x140013734
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, 0x5cf
mov rbx, qword [rsp + 0x38]
mov byte [rbx + 0x10], 1
mov qword [rbx], rax
mov dword [rbx + 8], edx
mov dword [rbx + 0xc], ecx
jmp 0x140013553