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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0xa0]
mov r12, r8
mov qword [rbp - 0x78], rax
mov rbx, rdx
mov byte [rsp + 0x58], r9b
mov rdi, rcx
mov qword [rsp + 0x70], rcx
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov qword [rbp - 0x70], rax
mov r13, rax
test rax, rax
jne 0x140012f15
mov ecx, 0xc0000225
call sym.ProcessHacker.exe_PhGetNtMessage
lea r9, str.Unable_to_locate_the_application_directory.
mov rbx, rax
mov rcx, rdi
test rax, rax
je 0x140012eff
mov rdx, qword [rax + 8]
mov r8d, 0xfffe
mov qword [rsp + 0x28], rdx
lea rax, [0x1401b8d58]
lea edx, [r13 + 0x20]
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
lea rsi, [r13 - 1]
jmp 0x1400135b7
lea r8, [0x1401efb68]
mov edx, 0x10
call sym.ProcessHacker.exe_PhShowMessage
jmp 0x1400135ca
mov qword [rsp + 0x198], r14
mov rcx, rbx
mov qword [rsp + 0x140], r15
call sym.ProcessHacker.exe_PhGetStringSetting
mov rcx, rax
mov rbx, rax
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov qword [rsp + 0x60], rax
mov rdi, rax
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x140012f65
lea rcx, [rbx - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140012f65
nop dword [rax]
call fcn.1400fbcc0
mov edx, 0x3a
xor r8d, r8d
mov rcx, rdi
call sym.ProcessHacker.exe_PhFindCharInStringRef
cmp rax, rsi
jne 0x14001312e
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
je 0x1400130d0
cmp dword ds:[rbp + 0x30], 2
jne 0x1400130d0
mov rcx, qword [rax]
call sym.ProcessHacker.exe_PhCreateString
mov rcx, qword [r15 + 8]
mov r14, rax
call sym.ProcessHacker.exe_PhCreateString
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov r8, qword [r14 + 8]
lea rbx, [0x1401da1d8]
mov rdx, rbx
cmp eax, 5
jne 0x140013008
mov r9, r8
mov qword [rsp + 0x20], rbx
mov r8, qword [r13 + 8]
lea ecx, [rax - 1]
call sym.ProcessHacker.exe_PhConcatStrings
mov r13, rax
test r14, r14
je 0x140013032
lea rcx, [r14 - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jmp 0x14001302b
mov r9, rbx
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov r13, rax
test r14, r14
je 0x140013032
lea rcx, [r14 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140013032
call fcn.1400fbcc0
mov r14, qword [rsp + 0x60]
mov r9, rbx
mov rdx, rbx
mov ecx, 3
mov r8, qword [r14 + 8]
call sym.ProcessHacker.exe_PhConcatStrings
mov rbx, rax
lea rcx, [r14 - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140013065
nop
call fcn.1400fbcc0
mov r9, qword [rbx + 8]
lea r8, [0x1401da1dc]
mov rdx, qword [r13 + 8]
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov qword [rsp + 0x60], rax
lea rcx, [rdi - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140013098
call fcn.1400fbcc0
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400130ad
call fcn.1400fbcc0
lea rcx, [r13 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400130c5
nop dword [rax]
call fcn.1400fbcc0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14001312e
mov rcx, qword [rdi + 8]
call qword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov r8, qword [rdi + 8]
lea rbx, [0x1401da1d8]
mov rdx, rbx
cmp eax, 5
jne 0x140013107
mov r9, r8
mov qword [rsp + 0x20], rbx
mov r8, qword [r13 + 8]
lea ecx, [rax - 1]
call sym.ProcessHacker.exe_PhConcatStrings
jmp 0x140013114
mov r9, rbx
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov qword [rsp + 0x60], rax
mov eax, esi
lock xadd dword [rdi - 8], eax
cmp eax, 1
jne 0x14001312e
lea rcx, [rdi - 0x10]
call fcn.1400fbcc0
mov rax, qword [rsp + 0x60]
lea rdx, [0x14023a6f8]
xor r8d, r8d
mov rcx, rax
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
call sym.ProcessHacker.exe_PhFindStringInStringRef
xor r14d, r14d
cmp rax, rsi
je 0x14001329a
mov rcx, qword [rbp - 0x60]
lea rdi, [rax + rax]
mov r13, qword [rbp - 0x68]
add rcx, rdi
add rcx, qword [0x14023a6f8]
sub r13, rdi
sub r13, qword [0x14023a6f8]
mov rbx, rsi
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x50], rdi
inc rbx
cmp word [r12 + rbx*2], r14w
jne 0x140013184
mov rdx, qword [0x1402418e8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r15, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], r14w
test r12, r12
je 0x1400131cc
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, r12
call fcn.140188690
mov rcx, r15
call sym.ProcessHacker.exe_PhGetFileName
mov rdx, qword [0x1402418e8]
lea rbx, [rdi + r13]
mov qword [rsp + 0x78], rax
add rbx, qword [rax]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r8, qword [rsp + 0x50]
mov rdi, rax
mov rdx, qword [rbp - 0x60]
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r14w
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.140188690
mov r12, qword [rsp + 0x78]
add rbx, qword [rsp + 0x50]
mov rcx, rbx
mov r8, qword [r12]
mov rdx, qword [r12 + 8]
call fcn.140188690
add rbx, qword [r12]
mov r8, r13
mov rdx, qword [rbp - 0x80]
mov rcx, rbx
call fcn.140188690
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rdi
mov rcx, rax
test rax, rax
je 0x14001326d
add rcx, 0xfffffffffffffff0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001326d
call fcn.1400fbcc0
lea rcx, [r12 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140013285
nop
call fcn.1400fbcc0
lea rcx, [r15 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001329a
call fcn.1400fbcc0
mov r15, qword [rsp + 0x60]
mov r15, qword [r15 + 8]
cmp byte [rsp + 0x58], r14b
je 0x1400132bf
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, r15
call sym.ProcessHacker.exe_PhShellExecute
jmp 0x140013585
mov rdi, r14
mov r12, r14
mov r13, r14
test r15, r15
je 0x140013395
mov rbx, rsi
inc rbx
cmp word [r15 + rbx*2], di
jne 0x1400132d4
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], r14w
mov rcx, qword [rax + 8]
call fcn.140188690
mov rcx, qword ds:[r12 + 8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x140013395
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]
test r15, r15
je 0x140013395
mov rcx, qword [r15 + 8]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
jne 0x140013385
mov rcx, qword ds:[r15 + 8]
call fcn.1400f8160
mov rdi, rax
lea rcx, [r15 - 0x10]
test rax, rax
mov eax, esi
je 0x1400133d5
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140013385
nop dword [rax]
call fcn.1400fbcc0
cmp qword [rdi], r13
je 0x140013395
mov rcx, rdi
call sym.ProcessHacker.exe_PhGetBaseDirectory
mov r13, rax
xorps xmm0, xmm0
mov dword [rbp - 0x40], 0x68
xor eax, eax
mov dword [rbp + 0x24], eax
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
movups xmmword [rbp + 0x14], xmm0
test r13, r13
je 0x1400133c9
mov rax, qword [r13 + 8]
test r12, r12
je 0x1400133ec
mov rdx, qword [r12 + 8]
jmp 0x1400133ef
mov rdi, r14
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140013395
call fcn.1400fbcc0
jmp 0x140013395
mov rdx, r14
test rdi, rdi
je 0x1400133fa
mov rcx, qword [rdi + 8]
jmp 0x1400133fd
mov rcx, r14
lea r8, [rbp - 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], r8
lea r8, [rbp - 0x40]
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14001344d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140013442
mov r14d, eax
jmp 0x14001344d
movzx r14d, ax
or r14d, 0xc0070000
test rdi, rdi
je 0x14001346a
lea rcx, ds:[rdi - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001346a
call fcn.1400fbcc0
test r12, r12
je 0x14001348a
lea rcx, ds:[r12 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001348a
call fcn.1400fbcc0
test r13, r13
je 0x1400134a5
lea rcx, [r13 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400134a5
nop
call fcn.1400fbcc0
mov rcx, qword [rbp - 0x58]
test r14d, r14d
js 0x1400134d4
test rcx, rcx
je 0x1400134b9
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rbp - 0x50]
test rcx, rcx
je 0x140013585
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x140013585
test rcx, rcx
je 0x1400134df
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400134ee
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rbp - 0x78]
lfence
test rdi, rdi
je 0x140013569
mov ecx, r14d
call sym.ProcessHacker.exe_PhGetNtMessage
mov rbx, rax
test rax, rax
je 0x140013516
lfence
mov rax, qword [rax + 8]
jmp 0x14001351d
lea rax, [0x1401da1e0]
mov rcx, qword [rsp + 0x70]
lea r9, str.Unable_to_execute_the_command.
mov qword [rsp + 0x30], rdi
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov r8d, 0xfffe
lea rax, str._s_n_s
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140013585
lfence
call fcn.1400fbcc0
jmp 0x140013585
mov rcx, qword ds:[rsp + 0x70]
lea rdx, str.Unable_to_execute_the_command.
xor r9d, r9d
mov r8d, r14d
call sym.ProcessHacker.exe_PhShowStatus
mov rcx, qword [rsp + 0x60]
mov eax, esi
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x198]
cmp eax, 1
jne 0x1400135af
call fcn.1400fbcc0
mov rcx, qword [rbp - 0x70]
add rcx, 0xfffffffffffffff0
lock xadd dword ds:[rcx + 8], esi
cmp esi, 1
jne 0x1400135ca
call fcn.1400fbcc0
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x148
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret