Function at 0x14000f580
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14009c020]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov esi, r8d
mov rbx, rdx
lea rcx, str._Script_running_gpx:_szFile____s__n
call fcn.14000bc30
nop
lea rax, [rbp + 0x10]
mov qword [rbp], rax
lea rax, [0x14009cc90]
mov qword [rbp + 8], rax
mov word [rbp + 0x28], 0
mov dword [rbp + 0x30], 0xabcd
mov dword [rbp + 0x3c], 0xabcd
lea rax, [rbp + 8]
mov qword [rbp + 0x34], rax
mov dword [rbp + 0x24a], 0xabcd
lea rax, [rbp + 0x40]
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x18], 0x104
mov qword [rbp + 0x20], 0x104
xor r14d, r14d
mov qword [rbp + 0x10], r14
mov word [rbp + 0x40], r14w
lea rax, [rbp + 0x40]
mov qword [rbp - 8], rax
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140007410
nop
lea rcx, [rbp - 0x10]
call fcn.140006480
lea rdx, str.genptch.exe
lea rcx, [rbp - 0x10]
call fcn.140007130
mov qword [rsp + 0x50], r14
mov rdi, 0xffffffffffffffff
mov r8, rdi
lea rdx, [0x14008f070]
lea rcx, [rsp + 0x50]
call fcn.140007510
test al, al
je 0x14000f8c7
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14000f6b2
mov rcx, qword [rax - 0xc]
test rcx, rcx
je 0x14000f6b2
cmp dword [rax - 0x10], 0xabcd
jne 0x14000f8c7
cmp dword [rax - 4], 0xabcd
jne 0x14000f8c7
mov rcx, qword [rcx + 0x10]
cmp dword [rax + rcx*2 + 2], 0xabcd
jne 0x14000f8c7
lea rdx, [0x14008d480]
mov rax, qword [rbp - 0x10]
test rax, rax
cmovne rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140007130
lea rdx, str.___encfile__
lea rcx, [rsp + 0x50]
call fcn.140007130
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140007130
lea rdx, [0x14008f070]
lea rcx, [rsp + 0x50]
call fcn.140007130
mov rdx, rbx
lea rcx, str.Script__s_n
call fcn.14000bc30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x80], 0x68
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
jne 0x14000f759
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140007630
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000f7b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, eax
lea rcx, str.Script_failed_0x_x_CreateProcess_n
call fcn.14000bc30
jmp 0x14000f852
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000f7c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000f845
imul edx, esi, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x14000f80b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea rcx, str.Script_failed__1_Timeout_n
call fcn.14000bc30
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x5b4
jmp 0x14000f852
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000f824
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x58]
lea rcx, str.Script_result_0x_x_n
call fcn.14000bc30
mov edi, dword [rsp + 0x58]
jmp 0x14000f852
lea rcx, str.Script_failed__1_Invalid_handles_n
call fcn.14000bc30
nop
test rbx, rbx
je 0x14000f880
mov rax, qword [rbx - 0xc]
test rax, rax
je 0x14000f880
cmp dword [rbx - 0x10], 0xabcd
jne 0x14000f8bd
cmp dword [rbx - 4], 0xabcd
jne 0x14000f8bd
mov rax, qword [rax + 0x10]
cmp dword [rbx + rax*2 + 2], 0xabcd
jne 0x14000f8bd
lea rcx, [rsp + 0x50]
call fcn.14000c390
nop
lea rcx, [rbp - 0x10]
call fcn.140006d00
mov eax, edi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140048410
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor edx, edx
xor ecx, ecx
call fcn.14004aaec
nop
xor edx, edx
xor ecx, ecx
call fcn.14004aaec
int3