Function at 0x140001390
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 0x1400014c5
test eax, eax
je 0x1400014d4
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14000171e
lea rdx, str.firefox.exe
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14000179b
mov qword [rsp + 0x100], 0
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 0x140001818
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 0x140001838
lea rdx, [rax + 0x11]
mov qword [rsp + 0x110], rdx
cmp rcx, 8
jb 0x14000151d
mov rcx, qword [rsp + 0x100]
jmp 0x140001525
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400013e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
lea rdi, [rsp + 0x160]
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
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.140002910
mov ecx, esi
mov rdx, rdi
call section..text
jmp 0x1400016f9
lea rcx, [rsp + 0x100]
movups xmm0, xmmword [0x140003414]
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 0x140001601
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x118]
cmp rcx, rax
je 0x1400018a5
lea rdx, [rax + 1]
mov qword [rsp + 0x110], rdx
cmp rcx, 8
jb 0x140001589
mov rcx, qword [rsp + 0x100]
jmp 0x140001591
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 rdx, qword [rsp + 0x118]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jb 0x1400018c9
lea rdi, [rcx + rax]
mov qword [rsp + 0x110], rdi
cmp rdx, 8
jb 0x1400015e1
mov rbx, qword [rsp + 0x100]
jmp 0x1400015e9
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 0x14000164c
mov rdx, qword [rsp + 0x100]
jmp 0x140001654
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 0x14000185c
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 0x1400016f9
mov rcx, qword [rsp + 0x100]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x1400016f4
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400018e4
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400018f4
mov rcx, qword [rsp + 0x388]
xor rcx, rsp
call fcn.1400025a0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x390]
add rsp, 0x3a0
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
lea rsi, [rsp + 0x140]
mov qword [rsi], rax
mov qword [rsi + 0x10], rax
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.140002910
cmp qword [rsi + 0x18], 8
jb 0x14000175f
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]
mov esi, 1
cmp rax, 8
jb 0x1400016f9
mov rcx, qword [rsp + 0x140]
jmp 0x1400016c1
xor eax, eax
lea rsi, [rsp + 0x120]
mov qword [rsi], rax
mov qword [rsi + 0x10], rax
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.140002910
cmp qword [rsi + 0x18], 8
jb 0x1400017dc
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]
mov esi, 1
cmp rax, 8
jb 0x1400016f9
mov rcx, qword [rsp + 0x120]
jmp 0x1400016c1
lea rcx, [rsp + 0x100]
lea r8, [rsp + 0x180]
mov rdx, rdi
mov r9, rdi
call fcn.140002780
jmp 0x140001489
lea r8, str.___private_window
lea rcx, [rsp + 0x100]
mov edx, 0x11
mov r9d, 0x11
call fcn.140002780
jmp 0x14000154a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
lea rdi, [rsp + 0xe0]
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
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.140002910
mov ecx, esi
mov rdx, rdi
call section..text
jmp 0x1400016ab
lea r8, [0x1400035a2]
lea rcx, [rsp + 0x100]
mov edx, 1
mov r9d, 1
call fcn.140002780
jmp 0x14000159e
lea rcx, [rsp + 0x100]
mov rdx, rax
mov r8, rsi
mov r9, rax
call fcn.140002780
jmp 0x140001601
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3