Function at 0x1800097c0
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x310
mov rbx, rcx
mov rdi, r8
mov rbp, rdx
lea rcx, [rax - 0x226]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rax - 0x228], r12w
call fcn.180015710
lea r8d, [r12 + 0x60]
lea rcx, [rsp + 0x98]
xor edx, edx
mov dword [rsp + 0x90], r12d
call fcn.180015710
xor eax, eax
lea rdx, str.cmd__q
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp rax, r12
jne 0x18000985c
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x18000a194]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov r11d, 0x50
mov esi, 0xfffffff5
lea eax, [r11 + 0x14]
mov ecx, esi
mov word [rsp + 0x330], r11w
mov word [rsp + 0x332], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x330]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
cmp eax, r12d
jne 0x1800098de
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rsp + 0x72]
movsx eax, word [rsp + 0x70]
imul ecx, eax
mov dword [rbx + 0x44], ecx
jmp 0x1800098e5
mov dword [rbx + 0x44], 0x1f40
movsxd rcx, dword [rbx + 0x44]
mov eax, 4
mov rsi, 0xffffffffffffffff
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.18001216c
movsxd rcx, dword [rbx + 0x44]
mov qword [rbx + 0x48], rax
lea eax, [rsi + 5]
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.18001216c
cmp dword [rbx + 0x44], r12d
mov edx, r12d
mov qword [rbx + 0x50], rax
jle 0x180009958
mov rcx, r12
mov rax, qword [rbx + 0x48]
mov r8d, 0x20
inc edx
mov word [rcx + rax], r8w
mov rax, qword [rbx + 0x48]
mov r8d, 7
mov word [rcx + rax + 2], r8w
add rcx, 4
cmp edx, dword [rbx + 0x44]
jl 0x18000992e
lea rax, [rsp + 0x90]
lea rsi, [rbx + 0x58]
lea rdx, [rsp + 0x100]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x90], WSAGetLastError
mov dword [rsp + 0x20], 1
mov dword [rsp + 0xcc], 1
mov word [rsp + 0xd0], r12w
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, r12d
jne 0x1800099ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x300
mov r8d, 0x7530
mov word [rdi + 4], cx
mov rdx, rdi
mov rcx, rbp
mov word [rdi + 8], r12w
mov word [rdi + 0xe], ax
call fcn.180006c30
jmp 0x180009b40
mov ecx, 0x300
mov r8d, 0x7530
mov rdx, rdi
mov word [rdi + 4], cx
mov rcx, rbp
mov word [rdi + 8], r12w
mov word [rdi + 0xe], r12w
call fcn.180006c30
cmp eax, r12d
jne 0x180009b1c
mov rax, qword [rbp + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rax, qword [rsi]
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rbp
lea r8, [0x180009bac]
mov qword [rbx + 0x10], rax
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov qword [rbp + 8], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x180009dcc]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r8d, r8d
or edi, 0xffffffff
lea ecx, [r8 + 4]
lea rdx, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
cmp rcx, r12
je 0x180009ade
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r12
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
je 0x180009b00
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r12
mov rax, qword [rsp + 0x50]
mov qword [rbp + 8], rax
mov rcx, qword [rbx + 0x10]
cmp rcx, r12
je 0x180009b1c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], r12
mov rcx, qword [rsi]
cmp rcx, r12
je 0x180009b2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r12
mov rcx, qword [rbx + 0x60]
cmp rcx, r12
je 0x180009b40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
lea rcx, [0x18000a194]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor edx, edx
lea r8d, [rdx + 0x2c]
lea rcx, [rbx + 0x18]
call fcn.180015710
mov rcx, qword [rbx + 0x48]
cmp rcx, r12
je 0x180009b76
call fcn.180012098
mov qword [rbx + 0x48], r12
mov rcx, qword [rbx + 0x50]
cmp rcx, r12
je 0x180009b88
call fcn.180012098
mov qword [rbx + 0x50], r12
lea r11, [rsp + 0x310]
mov qword [rbx + 8], r12
mov eax, 0x2746
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret