Function at 0x140006420
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rbx, rcx
mov qword [rsp + 0x70], rcx
lea rcx, str.EnableWarnings
mov qword [rsp + 0x68], rdx
mov rdi, rdx
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14000648d
mov r8, qword ds:[rdi + 0x30]
lea r9, str.Debugging_a_process_may_result_in_loss_of_data.
lea rdx, str.debug
mov byte [rsp + 0x20], 0
mov rcx, rbx
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x140006a68
test dword [rdi + 0xd0], 0x200
lea rax, [0x14023a6b8]
mov qword [rsp + 0x1b0], rsi
lea rcx, [0x14023a688]
cmovne rcx, rax
mov qword [rsp + 0x178], r12
xor esi, esi
mov qword [rsp + 0x168], r14
mov qword [rsp + 0x160], r15
movzx eax, word [rcx]
mov word [rbp - 0x78], ax
lea r12d, [rsi + 0x22]
add ax, 2
cmp qword [rcx], 0xfffe
mov word [rbp - 0x76], ax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x70], rax
ja 0x1400066c0
lea rax, [rbp - 0x80]
xor r8d, r8d
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x78]
lea rcx, [rsi - 3]
call fcn.14011ab40
test eax, eax
js 0x1400066c0
lea r8, [rbp + 0x20]
mov edx, 0x20019
lea rcx, [rbp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x80]
mov ebx, eax
test rcx, rcx
je 0x14000653c
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax]
test ebx, ebx
js 0x1400066bb
mov rcx, qword [rbp + 0x50]
lea rdx, str.Debugger
call sym.ProcessHacker.exe_PhQueryRegistryString
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
test rax, rax
je 0x1400066b1
movups xmm0, xmmword ds:[rax]
mov edx, r12d
xor r8d, r8d
mov rcx, rax
movups xmmword [rsp + 0x58], xmm0
call sym.ProcessHacker.exe_PhFindCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x1400066b1
mov rdx, qword ds:[rsp + 0x58]
lea rcx, [rax + rax]
mov r14, qword [rsp + 0x60]
sub rdx, rcx
sub rdx, 2
add r14, 2
add r14, rcx
mov r15, rdx
shr r15, 1
mov rbx, r14
cmp byte [0x140244611], 1
mov rdi, r15
jb 0x14000661d
mov rcx, rdx
and edi, 7
shr rcx, 4
test rcx, rcx
je 0x140006630
movdqa xmm1, xmmword [0x140211af0]
nop dword [rax]
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf r8d, eax
mov dword [rsp + 0x78], r8d
jne 0x140006608
add rbx, 0x10
sub rcx, 1
jne 0x1400065e0
jmp 0x140006630
shl rcx, 4
sub rdx, rcx
mov eax, r8d
shr rdx, 1
shr rax, 1
add rdx, rax
jmp 0x14000664b
nop dword [rax]
test r14, r14
je 0x140006630
mov edx, r12d
mov rcx, r14
call fcn.1401861f4
test rdi, rdi
je 0x1400066ac
cmp word [rbx], r12w
je 0x140006648
add rbx, 2
sub rdi, 1
jne 0x140006635
jmp 0x1400066ac
mov rdx, r15
sub rdx, rdi
cmp rdx, 0xffffffffffffffff
je 0x1400066ac
lea rdi, [rdx + rdx]
test rdi, rdi
jne 0x14000666a
nop dword [rax]
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400066a5
mov rdx, qword [0x1402418e8]
lea rcx, [rdi + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rdi + rax], si
test r14, r14
je 0x1400066a5
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, r14
call fcn.140188690
mov qword [0x140241bb8], rbx
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x70]
mov rax, qword [0x140241bb8]
test rax, rax
je 0x140006a2b
mov rcx, qword [rax]
test rcx, rcx
je 0x140006a2b
mov rdx, qword [0x1402418e8]
lea rax, [rcx + 0x1e]
lea rbx, [rcx + 0x1e]
mov qword [rsp + 0x170], r13
and eax, 1
add rbx, rax
mov qword [rsp + 0x58], rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, rax
mov qword [rsp + 0x60], rax
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rbx + rcx], si
mov qword [rax], rsi
mov rcx, qword [rax + 8]
mov word [rcx], si
mov rcx, qword [rax]
add rcx, 2
cmp rbx, rcx
jae 0x140006743
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.1400ffce0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov word [rcx + rax], r12w
add qword [rdx], 2
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov word [rcx + rax], si
lea rcx, [rsp + 0x58]
mov rdx, qword [0x140241bb8]
call sym.ProcessHacker.exe_PhAppendStringBuilder
mov rdx, qword ds:[rsp + 0x60]
mov rax, qword [rdx]
add rax, 2
cmp qword [rsp + 0x58], rax
jae 0x140006799
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400ffce0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov word [rcx + rax], r12w
add qword [rdx], 2
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
lea rdx, str.__p__lu
mov word [rcx + rax], si
lea rcx, [rsp + 0x58]
mov r8d, dword [rdi + 0x20]
call sym.ProcessHacker.exe_PhAppendFormatStringBuilder
mov rax, qword [rsp + 0x60]
mov rdi, rsi
mov r12, rsi
mov r13, rsi
mov r14, 0xffffffffffffffff
mov r15, qword [rax + 8]
test r15, r15
je 0x1400068a9
mov rbx, r14
nop
inc rbx
cmp word [r15 + rbx*2], si
jne 0x1400067f0
mov rdx, qword [0x1402418e8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r8, rbx
mov rdx, r15
mov r12, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rbx + rcx], si
mov rcx, qword [rax + 8]
call fcn.140188690
mov rcx, qword [r12 + 8]
lea rdx, [rsp + 0x7c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x1400068a9
mov rcx, qword [rax]
call sym.ProcessHacker.exe_PhCreateString
mov rcx, rbx
mov rdi, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax]
test r15, r15
je 0x1400068a9
mov rcx, qword [r15 + 8]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
jne 0x140006899
mov rcx, qword [r15 + 8]
call fcn.1400f8160
mov rdi, rax
lea rcx, [r15 - 0x10]
test rax, rax
mov eax, r14d
je 0x1400068e5
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140006899
call fcn.1400fbcc0
cmp qword [rdi], rsi
je 0x1400068a9
mov rcx, rdi
call sym.ProcessHacker.exe_PhGetBaseDirectory
mov r13, rax
xorps xmm0, xmm0
mov dword [rbp - 0x50], 0x68
xor eax, eax
mov dword [rbp + 0x14], eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
test r13, r13
je 0x1400068d9
mov rax, qword [r13 + 8]
test r12, r12
je 0x1400068f9
mov rdx, qword [r12 + 8]
jmp 0x1400068fc
mov rdi, rsi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400068a9
call fcn.1400fbcc0
jmp 0x1400068a9
mov rdx, rsi
nop dword [rax]
test rdi, rdi
je 0x14000690b
mov rcx, qword [rdi + 8]
jmp 0x14000690e
mov rcx, rsi
lea r8, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], r8
lea r8, [rbp - 0x50]
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
test eax, eax
jne 0x14000695b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140006952
mov esi, eax
jmp 0x14000695b
movzx esi, ax
or esi, 0xc0070000
nop dword [rax + rax]
test rdi, rdi
je 0x14000697b
lea rcx, [rdi - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000697b
call fcn.1400fbcc0
nop dword [rax + rax]
test r12, r12
je 0x14000699c
lea rcx, [r12 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000699c
call fcn.1400fbcc0
nop dword [rax]
test r13, r13
je 0x1400069bb
lea rcx, [r13 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400069bb
call fcn.1400fbcc0
mov rcx, qword [rbp - 0x68]
mov r13, qword [rsp + 0x170]
test rcx, rcx
je 0x1400069d2
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1400069e6
nop dword [rax + rax]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x140006a05
nop dword [rax + rax]
call fcn.1400fbcc0
test esi, esi
jns 0x140006a27
lfence
mov r8, qword [rsp + 0x68]
lea rdx, str.debug
mov rcx, qword [rsp + 0x70]
mov r9d, esi
call fcn.140004060
jmp 0x140006a46
mov al, 1
jmp 0x140006a48
lea r9, str.Unable_to_locate_the_debugger.
mov edx, 0x10
lea r8, [0x1401b8d58]
mov rcx, rbx
call sym.ProcessHacker.exe_PhShowMessage
xor al, al
mov r14, qword [rsp + 0x168]
mov r12, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x1b0]
mov r15, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x180
pop rdi
pop rbx
pop rbp
ret