Function at 0x140009480
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 [0x1401054a8]
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 0x14000950c
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000950c
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rax + rdx]
mov qword [rsp + 0x68], rcx
cmp dword [rax + rdx], 0x4550
jne 0x14000950c
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x14000950c
mov edx, dword [rcx + 0x50]
cmp edx, 0x148
jae 0x140009552
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_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 0x1400097c2
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 0x140009582
cmp dword [rcx + 0x90], edx
setae byte [rsp + 0x78]
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x50]
call fcn.14000e3b0
mov rax, qword [rsp + 0x80]
lea rdx, [0x1401056d0]
test rax, rax
je 0x1400095d4
cmp qword [rsp + 0x60], rdx
ja 0x1400095d4
lea rcx, [0x1401056d0]
cmp qword [rsp + 0x70], rcx
jb 0x1400095d4
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 0x14000963f
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.14000e3b0
cmp byte [rsp + 0xb8], 0
je 0x140009720
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
xor ebp, ebp
cmp dword [rsp + 0xa4], 0
js 0x1400096a5
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 0x140009528
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 0x1400096e0
lea rcx, [rsp + 0x30]
call fcn.14007d710
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 0x140009528
test byte [rsp + 0x30], 1
je 0x140009528
mov rcx, qword [rsp + 0x40]
call sub.mozglue.dll_free
jmp 0x140009528
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
lea rdx, [0x1401056d0]
test rax, rax
je 0x140009759
cmp qword [rsp + 0x60], rdx
ja 0x140009759
lea r8, [0x1401056d0]
cmp qword [rsp + 0x70], r8
jb 0x140009759
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 0x140009791
mov byte [rsi + 0x10], 0
mov bpl, 1
cmp dword [rsp + 0xa4], 0
jns 0x14000967a
jmp 0x1400096a5
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, [0x140105a51]
mov qword [rsi], rax
mov dword [rsi + 8], 0x5e6
mov dword [rsi + 0xc], ecx
jmp 0x14000966e
call fcn.1400d58e0
int3