Function at 0x1400788d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0xbc0]
sub rsp, 0xce0
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov r14, rdx
mov rbx, rcx
lea rdx, str.Stub_Plugin.exe
lea rcx, [rbp + 0x360]
mov rsi, r9
mov r15d, r8d
call fcn.1400748e0
lea rcx, [rbp + 0x360]
call fcn.1400e7210
test eax, eax
jne 0x140078942
lea r8d, [rax + 1]
lea rdx, [rbp + 0x40]
lea rcx, str.Stub_Plugin.exe
call fcn.140077e40
xor eax, eax
jmp 0x140078c41
lea rcx, [0x140189788]
call fcn.1400743a0
test eax, eax
je 0x14007896f
lea rdx, [rbp + 0x40]
lea rcx, [0x140189788]
mov r8d, 1
call fcn.140077e40
xor eax, eax
jmp 0x140078c41
mov rcx, qword [0x1401fbb88]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14007898d
mov rcx, qword [0x1401fbb88]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, rbx
call fcn.140077f20
mov qword [0x1401fbb88], rax
test rax, rax
je 0x14007893b
mov qword [rsp + 0xcd8], rdi
mov edi, dword [rbp + 0xc10]
mov qword [rsp + 0xcd0], r12
mov qword [rsp + 0xcc8], r13
xor r13d, r13d
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rsi
mov dword [0x1401f7250], 6
mov word [rbp + 0x40], r13w
mov dword [0x1401fbf68], r13d
mov qword [0x1401fbf78], r13
call fcn.1400f9ab0
lea r12, [0x140208060]
xor edx, edx
mov rcx, r12
mov r8d, 0x800
call fcn.1400f9ab0
lea r8d, [r13 + 0x68]
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.1400f9ab0
xor eax, eax
lea rdx, [rbp + 0x570]
lea rcx, [rbp + 0x360]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x30], 0x68
call fcn.140074980
lea rdx, [rbp + 0x250]
mov rcx, r14
call fcn.140074980
lea rax, [0x140188451]
lea r9d, [r13 + 1]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x50], r13
lea rax, [rbp + 0x250]
lea r8, [rbp + 0x570]
mov qword [rsp + 0x48], rax
mov eax, dword [0x1401f7250]
lea rdx, [0x140189730]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0xc18]
lea rcx, [rbp + 0x780]
mov dword [rsp + 0x38], eax
mov eax, dword [0x1401fbb88]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], InitCommonControls
call fcn.1400f9828
lea rax, [rbp - 0x80]
lea rdx, [rbp + 0x780]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140078ba5
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1401fbf68], r13d
jne 0x140078be6
nop word [rax + rax]
mov rcx, qword [0x1401fbb88]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140078be6
lea rcx, [rbp - 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140078b9a
lea rcx, [rbp - 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x1401fbf68], r13d
je 0x140078b50
jmp 0x140078be6
mov ecx, dword [rbp - 0x58]
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x140078be6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp + 0x360]
lea rdx, [0x1401897c0]
lea rcx, [rbp + 0x40]
mov r9d, eax
call fcn.1400f98c8
lea r8, [0x140189810]
lea rdx, [rbp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x1401fbf68], 1
cmp word [0x140208060], r13w
je 0x140078c10
or r8, 0xffffffffffffffff
inc r8
cmp word [r12 + r8*2], r13w
jne 0x140078bf4
cmp rdi, r8
mov rdx, r12
mov rcx, rsi
cmovb r8, rdi
call fcn.1400fb86c
mov rcx, qword [0x1401fbb88]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov r12, qword [rsp + 0xcd0]
mov rdi, qword [rsp + 0xcd8]
mov qword [0x1401fbb88], r13
mov r13, qword [rsp + 0xcc8]
mov eax, 1
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0xce0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret