Function at 0x140009820
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x2c], r9d
mov qword [rsp + 0x50], r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 0
je 0x1400098ac
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400098ac
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rax + rdx]
mov qword [rsp + 0x68], rcx
cmp dword [rax + rdx], 0x4550
jne 0x1400098ac
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x1400098ac
mov edx, dword [rcx + 0x50]
cmp edx, 0x148
jae 0x1400098f2
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_LauncherProcessWin.cpp
mov qword [rsi], rax
movabs rax, 0x800700c100000040
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0xc0]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140009b62
mov rax, rsi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8d, [rdx - 1]
add rax, r8
mov qword [rsp + 0x70], rax
mov eax, dword [rcx + 0x84]
cmp eax, 0x10
mov r8d, 0x10
cmovb r8d, eax
cmp r8d, 2
jb 0x140009922
cmp dword [rcx + 0x90], edx
setae byte [rsp + 0x78]
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x50]
call fcn.14000e240
mov rax, qword [rsp + 0x80]
lea rdx, [0x1400f76d0]
test rax, rax
je 0x140009974
cmp qword [rsp + 0x60], rdx
ja 0x140009974
lea rcx, [0x1400f76d0]
cmp qword [rsp + 0x70], rcx
jb 0x140009974
sub rcx, qword [rsp + 0x58]
add rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x90], 4
mov qword [rsp + 0x98], rcx
lea r15, [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x20], r15
mov r8d, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1400099df
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0xa4], ecx
lea rcx, [rsp + 0xa8]
lea rdx, [rsp + 0x50]
call fcn.14000e240
cmp byte [rsp + 0xb8], 0
je 0x140009ac0
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
xor ebp, ebp
cmp dword [rsp + 0xa4], 0
js 0x140009a45
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov r9d, dword [rsp + 0xa0]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bpl, bpl
je 0x1400098c8
mov rdx, qword [rsp + 0x128]
movzx ebp, byte [rsp + 0x120]
xorps xmm0, xmm0
movups xmmword [rsp + 0x39], xmm0
movaps xmmword [rsp + 0x30], xmm0
cmp byte [rdx + 0x18], 0
je 0x140009a80
lea rcx, [rsp + 0x30]
call fcn.14007cf10
mov byte [rsp + 0x48], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9d, ebp
call fcn.140004410
cmp byte [rsp + 0x48], 0
je 0x1400098c8
test byte [rsp + 0x30], 1
je 0x1400098c8
mov rcx, qword [rsp + 0x40]
call sub.mozglue.dll_free
jmp 0x1400098c8
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
lea rdx, [0x1400f76d0]
test rax, rax
je 0x140009af9
cmp qword [rsp + 0x60], rdx
ja 0x140009af9
lea r8, [0x1400f76d0]
cmp qword [rsp + 0x70], r8
jb 0x140009af9
sub r8, qword [rsp + 0x58]
add rax, r8
mov rdx, rax
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x2c]
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140009b31
mov byte [rsi + 0x10], 0
mov bpl, 1
cmp dword [rsp + 0xa4], 0
jns 0x140009a1a
jmp 0x140009a45
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, [0x1400f79ef]
mov qword [rsi], rax
mov dword [rsi + 8], 0x5e6
mov dword [rsi + 0xc], ecx
jmp 0x140009a0e
call fcn.1400c8850
mov rcx, qword [rax + 0x20]
mov rbx, rcx
ret