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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xb0
mov rdi, rcx
mov r13b, r9b
mov rcx, rdx
mov rbx, r8
mov r12, rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rcx, qword [rdi + 0x50]
mov qword [rdi + 0x50], rax
test rcx, rcx
je 0x14003b77b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov r15, qword [rbp + 0x6f]
mov rbx, rax
mov rax, qword [r15 + 0x70]
neg rax
sbb esi, esi
and esi, 0x80000
add esi, 0x40c
cmp qword [rdi + 0x30], 0
mov r14d, esi
je 0x14003b7b9
call fcn.140042060
cmp eax, 5
jge 0x14003b7b9
bts r14d, 0x18
xor eax, eax
movzx edx, r13b
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x50], rcx
xor r9d, r9d
mov rcx, qword [rdi + 0x18]
mov r8, rbx
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
lea rax, [r15 + 8]
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], edx
mov rdx, r12
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14003b824
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x7f]
lea edi, [r15 + 0x12]
mov dword [rcx], eax
jmp 0x14003b9ea
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x31]
call fcn.1400412c0
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14003b86a
mov rdx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14003b86a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x7f]
xor edx, edx
mov dword [rcx], eax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x14003b9e1
lea rsi, [rdi + 0x20]
mov r14, qword [rsi]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003b965
mov rcx, qword [rbp - 0x31]
lea r8, [rdi + 0x58]
lea r9, [rbp + 0x6f]
mov qword [rbp + 0x6f], r15
mov rdx, r14
call fcn.14003ba1c
test al, al
lea rcx, [rbp + 0x4f]
mov rax, qword [rbp - 0x29]
cmovne r14, qword [rbp + 0x6f]
mov rdx, r14
mov qword [rbp + 0x4f], rax
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14003b908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x7f]
xor edx, edx
mov dword [rcx], eax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rbp + 0x6f]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003b8fe
call fcn.14003fad0
mov r8, qword [rbp + 0x47]
lea rdx, [rbp + 0x6f]
mov rcx, qword [rbp + 0x6f]
mov r9, rax
call fcn.14003fcb0
mov rcx, qword [rbp + 0x6f]
call fcn.14003fc30
mov edi, 0x15
jmp 0x14003b9e1
mov rax, qword [rsi]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003b936
call fcn.14003fad0
mov r8, qword [rbp + 0x47]
mov r9, rax
mov rcx, qword [rsi]
mov rdx, rsi
call fcn.14003fcb0
mov rcx, qword [rsi]
call fcn.14003fc30
mov qword [rsi], r15
mov rax, qword [rbp + 0x6f]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003b965
call fcn.14003fad0
mov r8, qword [rbp + 0x47]
lea rdx, [rbp + 0x6f]
mov rcx, qword [rbp + 0x6f]
mov r9, rax
call fcn.14003fcb0
mov rcx, qword [rbp + 0x6f]
call fcn.14003fc30
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x31]
call fcn.140041510
test al, al
jne 0x14003b995
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x7f]
xor edx, edx
mov dword [rcx], eax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14003b9e1
mov rcx, qword [rbp - 0x31]
call fcn.14003d26c
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x14003b9c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x7f]
xor edx, edx
mov dword [rcx], eax
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14003b9e1
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x31]
call fcn.140041600
mov rdx, rax
mov rcx, rdi
call fcn.140041590
mov edi, r15d
lea rcx, [rbp - 0x31]
call fcn.140041350
test rbx, rbx
je 0x14003b9f8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r11, [rsp + 0xb0]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret