Function at 0x140002ca0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r12, r9
mov rsi, r8
mov r14, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, qword [r8 + 8]
mov eax, dword [rbx + 0x84]
add rbx, 0x90
cmp eax, 1
jbe 0x140002ef5
mov ecx, dword [rsi]
mov ebp, ebx
sub ebp, ecx
cmp eax, 1
jbe 0x140002f00
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002f22
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea r15, [rsp + 0x40]
mov rcx, rdi
mov r8d, 8
mov r9, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002e77
cmp dword [rsp + 0x40], 8
jne 0x140002e77
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, qword [rbx]
cmp eax, ecx
jne 0x140002ea8
shr rcx, 0x20
shr rax, 0x20
cmp eax, ecx
jne 0x140002ea8
mov eax, ebp
lea rsi, sym.firefox.exe_Ordinal_0
and rsi, 0xfffffffffffffffc
add rsi, rax
lea rcx, [rsp + 0x50]
mov r8d, 8
mov rdx, rsi
mov r9, r12
call fcn.140003000
mov eax, dword [rsp + 0x6c]
test eax, eax
js 0x140002f56
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x48]
mov r9d, 8
mov rcx, r12
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002eb1
xor esi, esi
cmp qword [rsp + 0x40], 8
jne 0x140002eb1
cmp dword [rsp + 0x6c], 0
js 0x140002e36
lea rax, [rsp + 0x68]
mov r9d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test esi, esi
jne 0x140002e3f
mov byte [r14 + 0x10], 0
mov rax, rdi
add rax, 1
cmp rax, 2
jb 0x140002e55
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140045f60
mov rax, r14
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x16
mov dword [r14 + 0xc], ecx
jmp 0x140002e3f
mov byte [rsi + 0x18], 1
jmp 0x140002da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x68
mov dword [r14 + 0xc], ecx
mov esi, 1
cmp dword [rsp + 0x6c], 0
jns 0x140002e12
jmp 0x140002e36
xor ebp, ebp
cmp eax, 1
ja 0x140002cf2
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
movabs rax, 0x800700c10000003d
mov qword [r14 + 8], rax
jmp 0x140002e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rax
mov dword [r14 + 8], 0x44
mov dword [r14 + 0xc], ecx
jmp 0x140002e3f
mov byte [r14 + 0x10], 1
lea rcx, str.z:_task_1579288126_build_src_obj_firefox_dist_includemozilla_ImportDir.h
mov qword [r14], rcx
mov dword [r14 + 8], 0x61
mov dword [r14 + 0xc], eax
jmp 0x140002e3f