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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a8]
sub rsp, 0x5a8
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rax, qword [rbp + 0x518]
mov r15, qword [rbp + 0x510]
and dword [rsp + 0x78], 0
mov rdi, rcx
mov rcx, rdx
mov qword [rbp - 0x80], rax
mov r12b, r9b
mov rsi, r8
mov r13, rdx
call fcn.1400a2b60
mov rbx, rax
test rax, rax
je 0x14004bcb6
cmp rax, qword [rdi + 0x50]
je 0x14004bedc
mov rcx, qword [rdi + 0x50]
and qword [rdi + 0x50], 0
test rcx, rcx
je 0x14004bcc9
call fcn.14009c9f0
mov rcx, rsi
mov qword [rdi + 0x50], rbx
call fcn.1400a2b60
cmp qword [r15 + 0x68], 0
mov r14d, 0x40c
mov rbx, rax
mov eax, 0x8040c
cmovne r14d, eax
cmp qword [rdi + 0x30], 0
je 0x14004bd02
call fcn.140023dd8
cmp eax, 5
jge 0x14004bd02
bts r14d, 0x18
xor eax, eax
lea rcx, [rbp - 0x78]
lea rsi, [rdi + 0x18]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsi]
mov qword [rsp + 0x48], r15
xor r15d, r15d
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rbp - 0x68], rax
movzx eax, r12b
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8, rbx
mov rdx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14004bd64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14004beaa
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400236f4
mov rax, qword [rsi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004bdad
call fcn.1400198f4
mov r8, qword [rbp + 0x4e8]
mov rcx, qword [rsi]
mov r9, rax
mov rdx, rsi
call fcn.140019b38
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004bdaa
call fcn.140018794
mov qword [rsi], r15
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14004bdc9
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14004be5e
lea rsi, [rdi + 0x20]
mov rdx, qword [rsi]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004be2e
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14004be5e
mov rax, qword [rsi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004be2e
call fcn.1400198f4
mov r8, qword [rbp + 0x4e8]
mov rcx, qword [rsi]
mov r9, rax
mov rdx, rsi
call fcn.140019b38
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004be2b
call fcn.140018794
mov qword [rsi], r15
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x10], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14004be5e
mov rcx, qword [rbp - 0x80]
mov rsi, qword [rbp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.1400238d4
test al, al
jne 0x14004be75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14004bea0
mov rdx, rsi
mov rcx, r13
call fcn.14004bee4
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
mov qword [rdi + 0x48], rax
call fcn.1400239a4
mov rcx, rdi
mov rdx, rax
call fcn.140023948
mov edi, r15d
lea rcx, [rsp + 0x60]
call fcn.140023718
test rbx, rbx
je 0x14004beb7
mov rcx, rbx
call fcn.14009c9f0
mov eax, edi
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x5a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14009c998
int3