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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
xor edi, edi
mov r14d, ecx
lea eax, [rdi + 4]
lea r15d, [rdi + 3]
mov dword [rbp + 0x67], edi
mov r13b, dil
cmp ecx, 1
jbe 0x18019732e
jle 0x180197334
cmp ecx, r15d
jle 0x18019732e
cmp ecx, eax
jne 0x180197334
mov r13b, 1
mov qword [rbp - 0x59], r8
jmp 0x180197365
call fcn.18018258c
mov dword [rax], edi
call fcn.1801825fc
mov dword [rax], 0x16
call fcn.18018583c
jmp 0x180197562
inc r8
cmp byte [r8], dil
jne 0x180197350
cmp byte [r8 + 1], dil
je 0x180197365
mov byte [r8], 0x20
inc r8
cmp byte [r8], dil
jne 0x180197350
mov ebx, 0x68
lea rcx, [rbp - 0x49]
xor edx, edx
mov r8d, ebx
call fcn.18017d170
mov dword [rbp - 0x49], ebx
mov ebx, dword [0x18043c808]
lea r8, [0x1803ba410]
test ebx, ebx
je 0x1801973b8
lea edx, [rbx - 1]
movsxd rcx, edx
mov rax, rcx
and ecx, 0x1f
sar rax, 5
imul rcx, rcx, 0x58
mov rax, qword [r8 + rax*8]
cmp byte [rax + rcx + 8], dil
jne 0x1801973b6
dec edx
dec ebx
jne 0x180197394
test ebx, ebx
js 0x180197557
movsxd r12, ebx
cmp r12, 0x1c71
jae 0x180197557
movzx eax, bx
lea ecx, [rbx + 4]
mov edx, 1
shl ax, 3
add cx, ax
mov word [rbp - 7], cx
movzx ecx, cx
call fcn.1801832f0
mov qword [rbp - 1], rax
test rax, rax
je 0x180197557
mov dword [rax], ebx
mov rax, qword [rbp - 1]
lea rdx, [rax + 4]
lea rcx, [rax + 4]
add rdx, r12
test ebx, ebx
jle 0x18019745d
mov r9, rdi
mov r10d, ebx
lea r11, [0x1803ba410]
mov r8, r9
mov rax, r9
and r8d, 0x1f
sar rax, 5
imul r8, r8, 0x58
add r8, qword [r11 + rax*8]
mov al, byte [r8 + 8]
test al, 0x10
jne 0x180197443
mov byte [rcx], al
mov rax, qword [r8]
mov qword [rdx], rax
jmp 0x18019744a
mov byte [rcx], dil
or qword [rdx], 0xffffffffffffffff
inc r9
inc rcx
add rdx, 8
dec r10
jne 0x18019741b
mov rax, qword [rbp - 1]
test r13b, r13b
je 0x180197496
lea rdx, [rax + 4]
lea rcx, [rax + 4]
add rdx, r12
cmp ebx, r15d
cmovl r15d, ebx
test r15d, r15d
jle 0x18019748f
mov eax, r15d
mov byte [rcx], dil
or qword [rdx], 0xffffffffffffffff
inc rcx
lea rdx, [rdx + 8]
dec rax
jne 0x18019747c
mov dword [rbp + 0x67], 8
call fcn.18018258c
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp + 0x6f]
mov dword [rax], edi
lea rax, [rbp - 0x71]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x49]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x67]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 1]
mov r15d, eax
call fcn.18017cca8
test ebx, ebx
jne 0x180197502
mov ecx, r15d
call fcn.1801825ac
jmp 0x180197562
cmp r14d, 2
je 0x180197579
test r14d, r14d
jne 0x18019752e
mov rcx, qword [rbp - 0x71]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
movsxd rdi, dword [rbp - 0x79]
jmp 0x180197538
mov eax, 4
cmp r14d, eax
jne 0x180197544
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180197548
mov rdi, qword [rbp - 0x71]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180197566
call fcn.1801825fc
mov dword [rax], 0xc
or rax, 0xffffffffffffffff
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor ecx, ecx
call fcn.180187d88
int3