Function at 0x180065c70
Capabilities:
Check for peb beingdebugged flag
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov qword [rsp + 0x68], rsp
mov r12, rdx
mov rdi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rax
xor r13d, r13d
mov dword [rsp + 0x60], r13d
cmp dword [rdx + 0x18], r13d
jne 0x180066100
mov rax, qword [rdx + 0x10]
lea esi, [r13 + 2]
cmp word [rax], si
jne 0x180066100
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov ecx, dword [rax]
mov dword [rsp + 0x178], ecx
mov rcx, qword gs:[0x60]
mov ebx, 0x104
mov r8d, ebx
mov edx, dword [rsp + 0x178]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x180065d33
lea ecx, [rsi + 6]
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
mov r15, qword [rsp + 0x58]
jmp 0x180065eab
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str..exe
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SearchPathA]
nop dword [rax + rax]
mov r14d, eax
mov dword [rsp + 0x188], eax
dec eax
cmp eax, 0x102
ja 0x180065f8e
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0xc0]
call sub.ntdll.dll_memset
mov dword [rsp + 0xc0], ebx
mov dword [rsp + 0xfc], 1
mov rax, qword [r12 + 0x10]
movzx ecx, word [rax + 2]
mov word [rsp + 0x100], cx
mov rax, qword [r12 + 8]
movzx ebx, byte [rax]
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov ecx, dword [rax]
mov dword [rsp + 0x180], ecx
lea r13d, [rbx + r14]
lea r8d, [r13 + 2]
mov rcx, qword gs:[0x60]
mov edx, dword [rsp + 0x180]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x180065e1b
lea ecx, [rax + 8]
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
mov r14, qword [rsp + 0x50]
xor r13d, r13d
jmp 0x180065eab
mov edi, dword [rsp + 0x188]
mov r8d, edi
mov r14, qword [rsp + 0x50]
mov rdx, r14
mov rcx, r15
call sub.ntdll.dll_memcpy
mov byte [rdi + r15], 0x20
mov r8d, dword [rsp + 0x70]
mov rdx, qword [r12 + 8]
inc rdx
lea ecx, [rdi + 1]
add rcx, r15
call sub.ntdll.dll_memcpy
lea eax, [r13 + 1]
xor r13d, r13d
mov byte [rax + r15], r13b
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov rax, qword [r12]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessA]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
test r14, r14
je 0x180065ed5
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r15, qword [rsp + 0x58]
test r15, r15
je 0x180065efb
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
cmp dword [rsp + 0x60], r13d
je 0x180065f53
mov rax, qword [0x1800b2cc8]
test rax, rax
je 0x180065f21
mov edx, 0x7530
mov rcx, qword [rsp + 0x88]
call qword [case.0x1800532bc.0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, 0x21
jmp 0x18006610c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
sub eax, esi
je 0x180065f87
sub eax, 1
je 0x180065f7d
cmp eax, 0xbe
jne 0x18006610a
mov eax, 0xb
jmp 0x18006610c
mov eax, 3
jmp 0x18006610c
mov eax, esi
jmp 0x18006610c
mov rdx, rdi
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_RtlInitAnsiStringEx]
nop dword [rax + rax]
test eax, eax
jns 0x180065fcb
mov dword [rsp + 0x78], esi
lea rdx, [0x180065fc1]
mov rcx, qword [rsp + 0x68]
call sub.ntdll.dll__local_unwind
nop
nop
nop
mov eax, 2
jmp 0x18006610c
mov r8b, 1
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
nop dword [rax + rax]
test eax, eax
jns 0x180066010
mov dword [rsp + 0x7c], esi
lea rdx, [0x180066006]
mov rcx, qword [rsp + 0x68]
call sub.ntdll.dll__local_unwind
nop
nop
nop
mov eax, 2
jmp 0x18006610c
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
cmp ebx, 5
je 0x1800660d3
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov r8d, 3
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x1800660a9
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov dword [rsp + 0x80], esi
lea rdx, [0x1800660a2]
mov rcx, qword [rsp + 0x68]
call sub.ntdll.dll__local_unwind
nop
nop
nop
mov eax, 2
jmp 0x18006610c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x74], eax
lea rdx, [0x1800660cd]
mov rcx, qword [rsp + 0x68]
call sub.ntdll.dll__local_unwind
nop
nop
nop
mov eax, dword [rsp + 0x74]
jmp 0x18006610c
mov dword [rsp + 0x84], esi
lea rdx, [0x1800660ee]
mov rcx, qword [rsp + 0x68]
call sub.ntdll.dll__local_unwind
nop
nop
nop
mov eax, 2
jmp 0x18006610c
mov ecx, 0xc000000d
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret