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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
movaps xmmword [rsp + 0x150], xmm6
mov r13, r9
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rcx, rdx
call fcn.1401c3268
mov rcx, qword [r12 + 0x50]
mov qword [r12 + 0x50], rax
test rcx, rcx
je 0x140173095
call fcn.1401a0150
mov rbp, qword [r13]
mov rcx, rsi
call fcn.1401c3268
mov r14, rax
xor esi, esi
cmp qword [rbp + 0xa0], 0
setne sil
shl esi, 0x13
or esi, 0x40c
cmp qword [r12 + 0x30], 0
je 0x1401730d6
call fcn.14019ff80
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovge ecx, esi
mov esi, ecx
mov r15, qword [rsp + 0x1d8]
mov rax, qword [r13]
movzx eax, byte [rax + 0x20]
xor edx, edx
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], rdx
xorps xmm0, xmm0
movaps xmmword [rbx], xmm0
add rbp, 0x38
mov rcx, qword [r12 + 0x18]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbp
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r8, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140173288
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], rbp
movaps xmm6, xmmword [0x140232ef0]
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0x80]
call fcn.1400e21e0
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140173191
mov rax, qword [r13]
mov rdx, qword [rax + 0xf8]
cmp rdx, qword [rax + 0x100]
jne 0x140173191
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x14017329b
mov rdi, qword [r12 + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14017334f
mov qword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x60]
lea rsi, [rsp + 0x130]
mov qword [rsi + 0x10], rbp
movaps xmmword [rsi], xmm6
mov rcx, rsi
xor r8d, r8d
call fcn.140123a80
cmp byte [rsi], 0
je 0x1401732cd
lea rsi, [rsp + 0x100]
mov qword [rsi + 0x20], rbp
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rbx, [rsp + 0x138]
mov rcx, rbx
mov rdx, rsi
call fcn.140124180
cmp byte [rsi], 0
je 0x1401732bb
lea r8, [r12 + 0x58]
lea rbp, [rsp + 0xa0]
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rbx, [rsp + 0x108]
mov rcx, rbp
mov rdx, rbx
call fcn.1401946d0
lea r9, [rsp + 0x58]
mov rcx, rdi
xor edx, edx
mov r8, rbp
call fcn.1401443d0
mov esi, eax
mov rcx, rbp
call fcn.140194830
cmp byte [rbx - 8], 0
je 0x140173266
mov rcx, rbx
call fcn.1400ca720
cmp byte [rsp + 0x130], 0
je 0x14017327d
lea rcx, [rsp + 0x138]
call fcn.1400c9770
test esi, esi
jne 0x1401732cd
mov rdi, qword [rsp + 0x58]
jmp 0x1401732cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov edi, reloc.WS2_32.dll_select
jmp 0x140173406
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, setsockopt
jmp 0x1401733fc
cmp byte [rsp + 0x130], 0
je 0x1401732cd
mov rcx, rbx
call fcn.1400c9770
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0xa0]
mov qword [rcx], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov edi, eax
test eax, eax
je 0x140173314
mov rax, qword [r12 + 0x20]
inc rax
cmp rax, 2
jb 0x14017332a
call fcn.1400c5840
mov rcx, qword [r12 + 0x20]
call fcn.1400e21b0
mov qword [r12 + 0x20], 0
jmp 0x14017332a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x58]
inc rax
cmp rax, 2
jb 0x140173347
call fcn.1400c5840
mov rcx, qword [rsp + 0x58]
call fcn.1400e21b0
test edi, edi
je 0x1401733d3
mov rcx, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x60]
call fcn.1400e2410
test al, al
je 0x140173399
mov rcx, qword [rsp + 0x60]
call fcn.14018e060
mov qword [r12 + 0x48], rax
test rax, rax
je 0x1401733b6
lea rcx, sym.nacl64.exe_Ordinal_0
cmp rax, rcx
je 0x1401733da
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x1401733fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, reloc.WS2_32.dll_socket
jmp 0x1401733fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x1401733fc
mov edi, reloc.WS2_32.dll_setsockopt
jmp 0x1401733fc
lea rcx, [rsp + 0x60]
lea rsi, [rsp + 0xa0]
mov rdx, rsi
call fcn.1400e2550
mov rcx, r12
mov rdx, rsi
call fcn.1400e2210
xor edi, edi
lea rcx, [rsp + 0x60]
call fcn.1400e2350
test r14, r14
je 0x140173413
mov rcx, r14
call fcn.1401a0150
mov rsi, qword [r13]
mov qword [r13], 0
test rsi, rsi
je 0x140173434
mov rcx, rsi
call fcn.1401725c0
mov rcx, rsi
call fcn.1401a2ea8
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1401a4270
mov eax, edi
movaps xmm6, xmmword [rsp + 0x150]
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret