Function at 0x140001490
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x3a0
movaps xmmword [rsp + 0x390], xmm6
mov rsi, r8
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x388], rax
lea rdx, [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
je 0x1400015b9
test eax, eax
je 0x1400015c8
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14000185a
lea rdx, str.firefox.exe
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140001909
mov qword [rsp + 0x118], 7
mov qword [rsp + 0x110], 1
mov dword [rsp + 0x100], 0x22
lea rcx, [rsp + 0x180]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdi, rax
cmp rax, 6
ja 0x1400017d7
lea rcx, [rsp + 0x102]
lea rax, [rdi + 1]
mov qword [rcx + 0xe], rax
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x180]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rdi*2 + 0x102], 0
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
mov rdx, rcx
sub rdx, rax
cmp rdx, 0x11
jb 0x1400017f7
lea rdx, [rax + 0x11]
mov qword [rsp + 0x110], rdx
cmp rcx, 8
jb 0x140001610
mov rcx, qword [rsp + 0x100]
jmp 0x140001618
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400014e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdi, [rsp + 0x160]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r8, str.844fa30e_0860_11ed_898b_373276936058
mov edx, 0x24
mov rcx, rdi
call fcn.140002960
mov ecx, esi
mov rdx, rdi
call fcn.140001060
jmp 0x1400019b8
lea rcx, [rsp + 0x100]
movups xmm0, xmmword [0x140003384]
movups xmmword [rcx + rax*2 + 0x10], xmm0
movups xmm0, xmmword [str.___private_window]
movups xmmword [rcx + rax*2], xmm0
mov word [rcx + rax*2 + 0x20], 0x77
mov word [rcx + rax*2 + 0x22], 0
cmp word [rsi], 0
je 0x1400016f4
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
cmp rcx, rax
je 0x14000181b
lea rdx, [rax + 1]
mov qword [rsp + 0x110], rdx
cmp rcx, 8
jb 0x14000167c
mov rcx, qword [rsp + 0x100]
jmp 0x140001684
lea rcx, [rsp + 0x100]
mov word [rcx + rax*2], 0x20
mov word [rcx + rax*2 + 2], 0
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x118]
mov rdx, rbx
sub rdx, rcx
cmp rdx, rax
jb 0x14000183f
lea rdi, [rcx + rax]
mov qword [rsp + 0x110], rdi
cmp rbx, 8
jb 0x1400016d4
mov rbx, qword [rsp + 0x100]
jmp 0x1400016dc
lea rbx, [rsp + 0x100]
lea rcx, [rbx + rcx*2]
add rax, rax
mov rdx, rsi
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], 0
xorps xmm6, xmm6
lea rsi, [rsp + 0x70]
movaps xmmword [rsi], xmm6
movaps xmmword [rsi + 0x50], xmm6
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
mov qword [rsi + 0x60], 0
mov dword [rsi], 0x68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp qword [rsp + 0x118], 8
jb 0x14000173f
mov rdx, qword [rsp + 0x100]
jmp 0x140001747
lea rdx, [rsp + 0x100]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0
xor esi, esi
lea rcx, [rsp + 0x180]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400019dd
mov rcx, qword [rsp + 0x58]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x60]
call rdi
mov rax, qword [rsp + 0x118]
cmp rax, 8
jb 0x1400019b8
mov rcx, qword [rsp + 0x100]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140001a25
call fcn.140001ad4
jmp 0x1400019b8
lea rcx, [rsp + 0x100]
lea r8, [rsp + 0x180]
mov rdx, rdi
mov r9, rdi
call fcn.140002a60
jmp 0x14000157d
lea r8, str.___private_window
lea rcx, [rsp + 0x100]
mov edx, 0x11
mov r9d, 0x11
call fcn.140002a60
jmp 0x14000163d
lea r8, [0x140003512]
lea rcx, [rsp + 0x100]
mov edx, 1
mov r9d, 1
call fcn.140002a60
jmp 0x140001691
lea rcx, [rsp + 0x100]
mov rdx, rax
mov r8, rsi
mov r9, rax
call fcn.140002a60
jmp 0x1400016f4
lea rsi, [rsp + 0x140]
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 7
mov word [rsi], 0
lea r8, str.811237de_0904_11ed_8745_c7c269742323
mov edx, 0x24
mov rcx, rsi
call fcn.140002960
cmp qword [rsi + 0x18], 8
jb 0x14000189a
mov rsi, qword [rsp + 0x140]
lea r8, str.firefox_private_browsing.exe
xor ecx, ecx
mov rdx, rsi
mov r9d, 0x10010
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rax, qword [rsp + 0x158]
cmp rax, 8
jb 0x1400018e2
mov rcx, qword [rsp + 0x140]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140001a48
call fcn.140001ad4
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 7
mov word [rsp + 0x140], 0
jmp 0x1400019b3
lea rsi, [rsp + 0x120]
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 7
mov word [rsi], 0
lea r8, str.8964fd30_0860_11ed_8374_576505ba4488
mov edx, 0x24
mov rcx, rsi
call fcn.140002960
cmp qword [rsi + 0x18], 8
jb 0x140001949
mov rsi, qword [rsp + 0x120]
lea r8, str.firefox_private_browsing.exe
xor ecx, ecx
mov rdx, rsi
mov r9d, 0x10010
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rax, qword [rsp + 0x138]
cmp rax, 8
jb 0x140001991
mov rcx, qword [rsp + 0x120]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140001a6b
call fcn.140001ad4
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 7
mov word [rsp + 0x120], 0
mov esi, 1
mov rcx, qword [rsp + 0x388]
xor rcx, rsp
call fcn.140002790
mov eax, esi
movaps xmm6, xmmword [rsp + 0x390]
add rsp, 0x3a0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdi, [rsp + 0xe0]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r8, str.89d2ca2c_0860_11ed_883c_bf345b8391bc
mov edx, 0x24
mov rcx, rdi
call fcn.140002960
mov ecx, esi
mov rdx, rdi
call fcn.140001060
jmp 0x14000179e
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140001a8e
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400017cd
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140001a8e
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400018dd
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140001a8e
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x14000198c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3