Function at 0x1401ed75e
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, 0x148
mov r13, r9
mov rdi, r8
mov rbp, rdx
mov r12, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, rdx
call fcn.1400cbfe8
mov rcx, qword [r12 + 0x50]
mov qword [r12 + 0x50], rax
test rcx, rcx
je 0x1401ed7ab
call fcn.14008fb00
mov rsi, qword [r13]
mov rcx, rdi
call fcn.1400cbfe8
mov r15, rax
xor edi, edi
cmp qword [rsi + 0xa0], 0
setne dil
shl edi, 0x13
or edi, 0x40c
cmp qword [r12 + 0x30], 0
je 0x1401ed7ea
call fcn.14007e780
lea ecx, [rdi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
mov r14, qword [rsp + 0x1b8]
mov rax, qword [r13]
or edi, dword [rax + 0xa8]
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 rsi, 0x38
mov rcx, qword [r12 + 0x18]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rsi
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbp
mov r8, r15
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1401ed904
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx + 0x10], rsi
movaps xmm0, xmmword [0x140257270]
movaps xmmword [rcx], xmm0
lea rdx, [rsp + 0x80]
call fcn.14013b3d0
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x1401ed89c
mov rax, qword [r13]
mov rdx, qword [rax + 0x100]
cmp rdx, qword [rax + 0x108]
je 0x1401edaf2
mov rbx, r14
mov r14, qword [r12 + 0x20]
lea rax, [r14 + 1]
cmp rax, 2
jae 0x1401ed98c
mov rcx, qword [rsp + 0x1b0]
lea rdx, [rsp + 0x60]
call fcn.1401ec830
test al, al
je 0x1401ed914
mov rcx, qword [rsp + 0x60]
call fcn.1401e68cd
mov qword [r12 + 0x48], rax
test rax, rax
je 0x1401edb25
lea rcx, [rsp + 0x60]
lea rbp, [rsp + 0xb0]
mov rdx, rbp
call fcn.1401ec930
mov rcx, r12
mov rdx, rbp
call fcn.14013b400
xor ebx, ebx
jmp 0x1401ed92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov ebx, 0x12
jmp 0x1401ed938
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x17
lea rcx, [rsp + 0x60]
call fcn.14013a520
test r15, r15
je 0x1401ed945
mov rcx, r15
call fcn.14008fb00
mov rdi, qword [r13]
mov qword [r13], 0
test rdi, rdi
je 0x1401ed966
mov rcx, rdi
call fcn.1401ec49a
mov rcx, rdi
call fcn.1400c9cac
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400ccfe0
mov eax, ebx
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0xb0]
mov qword [r8], rsi
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1401edb51
mov rdx, qword [rsp + 0xb0]
lea rbp, [rsp + 0xa0]
mov qword [rbp], 0
mov rcx, rbp
call fcn.1400bdb78
mov rsi, qword [rbp]
mov ecx, 0x4c
call fcn.1400c9cbc
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x3c], xmm0
lea rax, [rsp + 0xac]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov edx, 0x1f
mov r8, rbp
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1401edbd9
mov rdi, qword [rbp]
test rdi, rdi
je 0x1401edc34
mov ecx, 0x44
call fcn.1400c9cbc
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call fcn.1401a3232
test rdi, rdi
setne dil
mov rcx, rbp
call fcn.1400c9cac
mov rax, qword [rsp + 0xa0]
inc rax
cmp rax, 2
jae 0x1401edbe2
test dil, dil
je 0x1401edb44
lea rbp, [r12 + 0x58]
lea rdi, [rsp + 0xb0]
mov r8d, 0x90
mov rcx, rdi
mov dl, 0xaa
call fcn.1400cf750
mov rcx, rdi
mov rdx, rsi
mov r8, rbp
call fcn.1401ecbb6
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8, rdi
xor r9d, r9d
call fcn.1401a4522
mov ebp, eax
mov rcx, rdi
call fcn.1401ec534
test rsi, rsi
je 0x1401edae7
mov rcx, rsi
call fcn.1400c9cac
test ebp, ebp
jne 0x1401edb51
mov r14, qword [rsp + 0x58]
jmp 0x1401edb51
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x1401ed89c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x14
jmp 0x1401ed92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x2b
jmp 0x1401ed92e
test rsi, rsi
je 0x1401edb51
mov rcx, rsi
call fcn.1400c9cac
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0xb0]
mov qword [rcx], rax
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebp, eax
test eax, eax
je 0x1401edba2
mov rax, qword [r12 + 0x20]
inc rax
cmp rax, 2
jae 0x1401edc08
mov rax, qword [rsp + 0x58]
inc rax
cmp rax, 2
jae 0x1401edbb9
test ebp, ebp
jne 0x1401ed8b2
mov ebx, 0x15
jmp 0x1401ed92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1401edb82
call fcn.140071760
mov r14, qword [rsp + 0x58]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x1401edc3b
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
jmp 0x1401edb90
xor esi, esi
xor edi, edi
jmp 0x1401eda5d
call fcn.140071760
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x1401edc49
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax]
jmp 0x1401eda7a
call fcn.140071760
mov r14, qword [r12 + 0x20]
mov rcx, qword [0x1402980e0]
test rcx, rcx
je 0x1401edc57
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [r12 + 0x20], 0
jmp 0x1401edb82
xor esi, esi
jmp 0x1401eda56
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x1401edbcf
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x1401edbfb
call fcn.140122340
mov rcx, qword [0x1402980e0]
jmp 0x1401edc1e