Function at 0x140089680
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1401f4df8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, pe_nt_image_headers64
call fcn.140099f70
xor eax, eax
xor r14d, r14d
mov r15d, 1
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, r15d
mov qword [rbp + 0x78], rax
xor ecx, ecx
mov qword [rbp + 0x80], rax
lea ebx, [rax + 0xa]
mov dword [rbp + 0x70], r14d
mov dword [rbp + 0x74], r14d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1401f9508], rax
test rax, rax
je 0x140089941
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1401f9550], rax
test rax, rax
je 0x140089941
lea r8, [rsp + 0x50]
mov rdx, rsi
mov ecx, edi
call fcn.140089ac0
test eax, eax
jne 0x140089941
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call fcn.140089f40
test eax, eax
jne 0x140089941
call fcn.140081680
test eax, eax
jne 0x140089941
mov rcx, qword [0x1401f9160]
call fcn.14008ada0
test eax, eax
jne 0x1400897bd
mov eax, ebx
dec ebx
test eax, eax
jle 0x1400897a3
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1401f9160]
call fcn.14008ada0
test eax, eax
je 0x140089780
test ebx, ebx
jg 0x1400897bd
lea rdx, str.Unable_to_connect_IPC._n
mov ecx, 3
call fcn.1400124d0
jmp 0x140089941
mov rcx, qword [0x1401f9508]
test rcx, rcx
je 0x1400897d4
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1401f74cc]
test eax, eax
jne 0x14008981c
cmp byte [rsp + 0x60], r14b
je 0x14008981c
mov rcx, qword [0x1401f9160]
lea rdx, [rsp + 0x60]
call fcn.140089d70
mov rcx, qword [0x1401f9160]
lea rdx, [rsp + 0x60]
call fcn.140086120
mov eax, dword [0x1401f74cc]
cmp dword [rsp + 0x58], r14d
cmovne eax, r15d
mov dword [0x1401f74cc], eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400898e2
test eax, eax
jne 0x1400898e2
movabs rbx, 0x100000601
nop dword [rax]
mov r9d, 0x101
lea r8, [rbp + 0x90]
lea rdx, str.____n_s
call fcn.140089a70
cmp eax, r15d
jne 0x1400898e2
mov edx, 0x101
lea rcx, [rbp + 0x90]
call fcn.1400c1450
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400898a9
mov r8d, 3
lea rdx, [0x14011e678]
lea rcx, [rbp + 0x90]
call fcn.1400c574c
test eax, eax
jne 0x1400898a9
mov rax, qword [rbp + 0x93]
cmp al, 0x20
ja 0x1400898a9
bt rbx, rax
jb 0x1400898cf
mov rcx, qword [0x1401f9160]
lea rdx, [rbp + 0x90]
call fcn.140089d70
mov rcx, qword [0x1401f9160]
lea rdx, [rbp + 0x90]
call fcn.140086120
cmp dword [0x1401f74cc], r14d
jne 0x1400898e2
mov rcx, qword [rsp + 0x50]
jmp 0x140089840
mov r9, qword [0x1401f9160]
lea r8, [0x1400888b0]
mov qword [rsp + 0x28], r14
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x78], rax
test rax, rax
jne 0x14008991e
lea rdx, str.Unable_to_create_IPC_thread._n
lea ecx, [rax + 3]
call fcn.1400124d0
jmp 0x140089941
mov rax, qword [rsp + 0x30]
lea rdx, [rbp + 0x78]
xor r8d, r8d
mov qword [rbp + 0x80], rax
mov r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008998e
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x74]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140089983
cmp dword [rbp + 0x74], 0x103
jne 0x14008997f
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rbp + 0x74], r14d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14008999e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x78], r14
je 0x1400899e7
mov dword [0x1401f74cc], r15d
call fcn.140089e70
mov rcx, qword [rbp + 0x78]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x78]
lea rdx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rbp + 0x70]
mov edx, 0x3eb
test eax, eax
cmove ecx, edx
mov dword [rbp + 0x70], ecx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1401f9508]
test rax, rax
je 0x1400899fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140081630
mov rcx, qword [0x1401f9550]
test rcx, rcx
je 0x140089a1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401f9550], r14
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140089a29
call fcn.1400d8b68
mov ebx, dword [rbp + 0x70]
test ebx, ebx
cmove ebx, dword [rbp + 0x74]
cmp ebx, 0x3ea
jne 0x140089a3f
call fcn.14008f3e0
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140098420
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret