Function at 0x18006eb8c
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x70], rdx
mov rbx, rcx
xor edx, edx
mov dword [rsp + 0x64], r8d
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x78], r9
mov rdi, r9
lea r8d, [rdx + 0x68]
call sub.ntdll.dll_memset
xor r15d, r15d
mov dword [rsp + 0x60], 2
xor eax, eax
mov qword [rdi], r15
xorps xmm0, xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x80], xmm0
mov r14d, r15d
mov qword [rsp + 0x58], r15
lea edi, [rax + 1]
mov dword [rsp + 0x54], r15d
mov dword [rbp - 0x24], edi
mov dword [rsp + 0x50], r15d
mov word [rbp + 0x10], r15w
mov word [rbp + 0x50], r15w
mov word [rbp + 0xd0], r15w
mov dword [rbp - 0x60], 0x70
mov word [rbp - 0x20], r15w
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r9, [rbp + 0x50]
mov r8, rbx
mov rcx, rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x28], rax
call fcn.18006e924
mov ebx, eax
test eax, eax
jns 0x18006ec8c
mov r9d, 0x224
mov dword [rsp + 0x20], eax
lea r8, str.WER_ReportFault:_u:_ERROR_Failed_to_get_the_paths_for_the_crash_vertical:_HRESULT__08X._n
xor edx, edx
mov ecx, 0x96
call qword [sym.imp.ntdll.dll_DbgPrintEx]
nop dword [rax + rax]
jmp 0x18006ef25
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
call fcn.18006b9ec
neg eax
mov ecx, edi
sbb r12d, r12d
and r12d, 0x40000
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
nop dword [rax + rax]
lea rdx, [rsp + 0x54]
mov ecx, edi
mov dword [rsp + 0x68], eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_3.dll_SetThreadErrorMode]
nop dword [rax + rax]
call qword [sym.imp.ntdll.dll_RtlGetCurrentTransaction]
nop dword [rax + rax]
xor ecx, ecx
mov r13, rax
call qword [sym.imp.ntdll.dll_RtlSetCurrentTransaction]
nop dword [rax + rax]
mov edi, r15d
mov ecx, edi
test edi, edi
je 0x18006ed1b
sub ecx, 1
je 0x18006ed0c
cmp ecx, 1
jne 0x18006ee6c
mov dword [rsp + 0x50], r15d
jmp 0x18006ed23
mov dword [rsp + 0x50], r15d
mov r15d, r12d
bts r15d, 0x18
jmp 0x18006ed26
mov dword [rsp + 0x50], 4
mov r15d, r12d
test r14, r14
je 0x18006ed48
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
and qword [rsp + 0x58], 0
mov r9, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
mov eax, dword [rsp + 0x64]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.18006ef50
mov ebx, eax
test eax, eax
js 0x18006eeaa
mov r14, qword [rsp + 0x58]
lea rdx, [rbp + 0xd0]
mov rax, r14
mov qword [rbp + 8], r14
neg rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
sbb ecx, ecx
and ecx, 0x80000
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
or ecx, r15d
lea rax, [rbp + 0x10]
xor r15d, r15d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0x50]
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x18006ee4b
call fcn.18006f240
mov ebx, eax
test edi, edi
jne 0x18006ee0a
mov eax, 0x522
cmp ebx, eax
jne 0x18006ee73
mov dword [rsp + 0x28], eax
lea edx, [rdi + 1]
mov dword [rsp + 0x20], r15d
mov r9d, 0x28d
jmp 0x18006ee28
mov eax, 1
cmp edi, eax
jne 0x18006ee73
cmp ebx, 5
jne 0x18006ee73
mov dword [rsp + 0x28], ebx
mov r9d, 0x293
mov dword [rsp + 0x20], eax
mov edx, eax
lea r8, str.WER_ReportFault:_u:_WARNING_CreateProcess_mode_u_failed_with_Win32_error__u._n
mov ecx, 0x96
call qword [sym.imp.ntdll.dll_DbgPrintEx]
nop dword [rax + rax]
inc edi
cmp edi, 3
jb 0x18006ecf1
mov rcx, qword [rsp + 0x78]
mov rax, qword [rbp - 0x80]
mov qword [rcx], rax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov ebx, r15d
jmp 0x18006eed3
mov ebx, 0x80004005
jmp 0x18006eed3
mov dword [rsp + 0x28], ebx
lea r8, str.WER_ReportFault:_u:_ERROR_CreateProcess_mode_u_failed_with_Win32_error__u._n
mov r9d, 0x298
mov dword [rsp + 0x20], edi
xor edx, edx
mov ecx, 0x96
call qword [sym.imp.ntdll.dll_DbgPrintEx]
nop dword [rax + rax]
test ebx, ebx
jle 0x18006eed3
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18006eed3
mov r9d, 0x270
mov dword [rsp + 0x20], eax
lea r8, str.WER_ReportFault:_u:_ERROR_WerpBuildCreateProcessAttributeList_failed__HRESULT__08X._n
xor edx, edx
mov ecx, 0x96
call qword [sym.imp.ntdll.dll_DbgPrintEx]
nop dword [rax + rax]
mov r14, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_3.dll_SetThreadErrorMode]
nop dword [rax + rax]
test r13, r13
je 0x18006ef09
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlSetCurrentTransaction]
nop dword [rax + rax]
test r14, r14
je 0x18006ef25
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.180024680
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret