Function at 0x14002e250
Capabilities:
Check if file exists
Create directory
Execute command
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400f3680]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 0xd8], xmm0
mov qword [rbp + 0xe8], rdi
mov qword [rbp + 0xf0], rdi
lea r8d, [rdi + 0x38]
lea rdx, str.https:__referrals.brave.com_latest_BraveBrowserSetup.exe
lea rcx, [rbp + 0xd8]
call fcn.140004100
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x70], rdi
lea r8d, [rdi + 0x42]
lea rdx, str.C:Program_FilesBraveSoftwareBrave_BrowserApplication_brave.exe
lea rcx, [rbp + 0x58]
call fcn.140004100
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
movdqa xmm6, xmmword [0x1400a9990]
movdqu xmmword [rbp + 0x130], xmm6
mov byte [rbp + 0x120], dil
lea rcx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rbx, qword [rbp + 0xf0]
mov qword [rsp + 0x48], rbx
mov r12, qword [rbp + 0xd8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp eax, 0xffffffff
je 0x14002e356
lea rdx, str.Brave_Browser_is_already_installed.
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14002ee69
lea rdx, str.Brave_Browser_is_not_installed.
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea r8, str.TEMP
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
test eax, eax
jne 0x14002f03a
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14002f03a
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14002e3d0
lea rcx, [rbp - 0x50]
call fcn.140004100
nop
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x14002e434
lea rax, [rcx + 0x11]
mov qword [rbp - 0x40], rax
lea rbx, [rbp - 0x50]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x50]
add rbx, rcx
mov r8d, shutdown
lea rdx, str.BrowserInstaller
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x11], 0
lea rax, [rbp - 0x50]
mov rbx, qword [rsp + 0x48]
jmp 0x14002e458
mov qword [rsp + 0x20], shutdown
lea r9, str.BrowserInstaller
movzx r8d, byte [rsp + 0x40]
mov edx, send
lea rcx, [rbp - 0x50]
call fcn.14000b440
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x50], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14002e4c3
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e4be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002e4be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rcx, qword [rbp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14002e52d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002e52d
lea rdx, str.Failed_to_create_temporary_directory.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14002eff3
lea rdx, str.Temporary_directory_created_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Downloading_Brave_Browser_installer...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
mov r13, qword [rbp + 0xe8]
sub rax, r13
cmp rax, 5
jb 0x14002f129
lea r15, [rbp + 0xd8]
cmp rbx, 0xf
cmova r15, r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r14, [r13 + 5]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rsp + 0x50]
movabs rcx, 0x8000000000000000
lea eax, [rbx + 7]
cmp r14, rbx
jbe 0x14002e642
mov rbx, r14
or rbx, 0xf
cmp rbx, rsi
jbe 0x14002e602
mov rbx, rsi
lea rax, [rcx + 0x27]
mov rcx, rax
call fcn.140097574
test rax, rax
je 0x14002e625
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002e63d
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14002e62c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14002f117
jmp 0x14002e5e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14002e63b
call fcn.140097574
mov rdi, rax
jmp 0x14002e63d
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rbx
mov eax, dword [str.curl]
mov dword [rdi], eax
movzx eax, byte [0x1400aef98]
mov byte [rdi + 4], al
lea rcx, [rdi + 5]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], 0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x14002e6c3
lea rax, [rcx + 0xa]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x50]
add rbx, rcx
mov r8d, 0xa
lea rdx, str.___output
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xa], 0
lea rax, [rsp + 0x50]
jmp 0x14002e6e8
mov qword [rsp + 0x20], 0xa
lea r9, str.___output
movzx r8d, byte [rsp + 0x40]
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.14000b440
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.140022d60
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x21
jb 0x14002e7a8
lea rax, [rcx + 0x21]
mov qword [rbp - 0x60], rax
lea rbx, [rbp - 0x70]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x70]
add rbx, rcx
lea r8d, [rdi + 0x21]
lea rdx, str.BraveBrowserSetup.exe___NUL_2_1
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x21], dil
lea rax, [rbp - 0x70]
jmp 0x14002e7cc
mov qword [rsp + 0x20], 0x21
lea r9, str.BraveBrowserSetup.exe___NUL_2_1
movzx r8d, byte [rsp + 0x40]
mov edx, 0x21
lea rcx, [rbp - 0x70]
call fcn.14000b440
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc8], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14002e843
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e83e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002e83e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14002e892
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e88d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002e88d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14002e8e3
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e8de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002e8de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0xf
cmova rcx, qword [rbp + 0xb8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test eax, eax
jne 0x14002ef74
lea rdx, str.Brave_Browser_installer_downloaded_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Installing_Brave_Browser...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r13, qword [rbp + 0x48]
mov rax, rsi
sub rax, r13
cmp rax, 0xf
jb 0x14002f12f
lea r15, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova r15, qword [rbp + 0x38]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea r14, [r13 + 0xf]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rsp + 0x70]
cmp r14, rbx
jbe 0x14002ea24
mov rbx, r14
or rbx, 0xf
cmp rbx, rsi
jbe 0x14002e9de
mov rbx, rsi
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140097574
test rax, rax
je 0x14002ea07
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002ea1f
cmp rbx, 0x16
mov eax, reloc.WS2_32.dll_shutdown
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14002ea0e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14002f11d
jmp 0x14002e9c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14002ea1d
call fcn.140097574
mov rdi, rax
jmp 0x14002ea1f
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], rbx
movsd xmm0, qword [str.start_____wait]
movsd qword [rdi], xmm0
mov eax, dword [0x1400af048]
mov dword [rdi + 8], eax
movzx eax, word [0x1400af04c]
mov word [rdi + 0xc], ax
movzx eax, byte [0x1400af04e]
mov byte [rdi + 0xe], al
lea rcx, [rdi + 0xf]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], 0
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x16
jb 0x14002eab8
lea rax, [rcx + 0x16]
mov qword [rbp - 0x80], rax
lea rbx, [rsp + 0x70]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x70]
add rbx, rcx
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.BraveBrowserSetup.exe
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x16], 0
lea rax, [rsp + 0x70]
jmp 0x14002eadb
mov eax, reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], rax
lea r9, str.BraveBrowserSetup.exe
movzx r8d, byte [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14000b440
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x98], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa8], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14002eb55
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002eb50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002eb50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], dil
lea rcx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0xf
cmova rcx, qword [rbp + 0x98]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test eax, eax
jne 0x14002eef3
lea rdx, str.Brave_Browser_installed_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.Setting_Brave_Browser_as_default_browser...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.assoc_.htmlBraveHTML
lea rcx, [rbp + 0x78]
call fcn.140004100
nop
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rcx, qword [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov r13, qword [rbp + 0x68]
mov rax, rsi
sub rax, r13
cmp rax, 0x11
jb 0x14002f135
lea r15, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova r15, qword [rbp + 0x58]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
lea r14, [r13 + 0x11]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rbp - 0x10]
cmp r14, rbx
jbe 0x14002ecd2
mov rbx, r14
or rbx, 0xf
cmp rbx, rsi
jbe 0x14002ec8d
mov rbx, rsi
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140097574
test rax, rax
je 0x14002ecb6
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14002ecce
cmp rbx, 0x16
mov eax, reloc.WS2_32.dll_shutdown
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14002ecbd
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14002f123
jmp 0x14002ec72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14002eccc
call fcn.140097574
mov rdi, rax
jmp 0x14002ecce
xor edi, edi
mov qword [rbp - 0x10], rdi
mov qword [rbp], r14
mov qword [rbp + 8], rbx
movups xmm0, xmmword [str.ftype_BraveHTML_]
movups xmmword [rdi], xmm0
movzx eax, byte [0x1400af108]
mov byte [rdi + 0x10], al
lea rcx, [rdi + 0x11]
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], 0
mov r8d, 9
lea rdx, str._______1_
lea rcx, [rbp - 0x10]
call fcn.140022d60
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x78]
call fcn.140018aa0
lea rcx, [rbp + 0x10]
call fcn.140004790
nop
lea rcx, [rbp - 0x10]
call fcn.140004790
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rcx, qword [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.Cleaning_up_temporary_files...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x48]
sub rsi, rcx
cmp rsi, 0xc
jb 0x14002f111
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rax, qword [rbp + 0x38]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], recv
lea r9, str.rmdir__s__q
lea r8, [rbp + 0x38]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0xf8]
call fcn.1400135b0
nop
lea rcx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0xf
cmova rcx, qword [rbp + 0xf8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test eax, eax
jne 0x14002eeb7
lea rdx, str.Temporary_files_cleaned_up_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0xf8]
call fcn.140004790
nop
lea rcx, [rbp + 0x78]
call fcn.140004790
nop
lea rcx, [rbp + 0x98]
call fcn.140004790
nop
lea rcx, [rbp + 0xb8]
call fcn.140004790
nop
lea rcx, [rbp + 0x38]
call fcn.140004790
mov rbx, qword [rsp + 0x48]
psrldq xmm6, 8
movq rdx, xmm6
cmp rdx, 0xf
jbe 0x14002f053
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f04d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f04d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Failed_to_clean_up_temporary_files.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0xf8]
call fcn.140004790
nop
lea rcx, [rbp + 0x78]
call fcn.140004790
jmp 0x14002ef17
lea rdx, str.Failed_to_install_Brave_Browser.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x14002ef5b
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ef56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002ef56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rbp + 0xa8], xmm0
mov byte [rbp + 0x98], 0
jmp 0x14002ef98
lea rdx, str.Failed_to_download_Brave_Browser_installer.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400077d0
lea rdx, [0x14000e2a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x14002efdc
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002efd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002efd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
movdqa xmm0, xmmword [0x1400a9990]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x14002ee64
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
jmp 0x14002ee64
lea rdx, str.Error_retrieving_TEMP_environment_variable.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x14002e33c
call fcn.1400975b0
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x14002f091
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f08c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f08c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400975b0
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], 0
cmp rbx, 0xf
jbe 0x14002f0dc
lea rdx, [rbx + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x14002f0d4
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002f0d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.1400975b0
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140097850
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140004bd0
nop
call fcn.140004b00
nop
call fcn.140004b00
nop
call fcn.140004b00
nop
call fcn.140004bd0
nop
call fcn.140004bd0
nop
call fcn.140004bd0
int3