Function at 0x14001313c
Capabilities:
Create process on windows
Enumerate processes
Resume thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x390
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdi, r8
mov r14, rdx
mov qword [rbp - 0x60], rdx
mov r15, qword [rbp + 0x2f0]
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400a4c60], eax
jle 0x1400131d6
lea rcx, [0x1400a4c60]
call fcn.14004b24c
cmp dword [0x1400a4c60], 0xffffffff
jne 0x1400131d6
call fcn.140012fd8
mov qword [0x1400a4cb0], rax
lea rcx, [0x1400a4c60]
call fcn.14004b1ec
call fcn.140012ef4
xor r13d, r13d
test eax, eax
jne 0x140013203
jmp 0x1400131ef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140012ef4
test eax, eax
je 0x1400131e4
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
call fcn.140012e38
mov dword [rbp - 0x50], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x4c]
call fcn.14004d3c0
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov r12d, 1
cmp rax, 0xffffffffffffffff
je 0x140013325
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140013314
lea rdx, str.explorer.exe
lea rcx, [rbp - 0x24]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140013307
mov r8d, dword [rbp - 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140013307
lea r8, [rsp + 0x70]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, rbx
test eax, eax
je 0x140013301
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x140013301
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1400132fc
call qword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
test eax, eax
je 0x14001331c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140013260
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x78]
test r12, r12
jne 0x14001333e
mov rcx, r14
call fcn.140017f10
xor eax, eax
jmp 0x140013528
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea ebx, [rax + 0x68]
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x210]
call fcn.14004d3c0
mov dword [rbp + 0x210], ebx
mov dword [rbp + 0x24c], 0x81
mov word [rbp + 0x250], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f0], xmm0
mov qword [rbp + 0x200], r13
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140013397
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea r8, [rcx + rax*2]
jb 0x1400133a4
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp + 0x1f0]
call fcn.14001c28c
mov word [rsp + 0x60], r13w
mov rsi, qword [rbp + 0x200]
mov rdi, qword [rbp + 0x1f8]
cmp rsi, rdi
je 0x1400133d6
mov word [rdi], r13w
add rdi, 2
jmp 0x1400133f8
lea r8, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rbp + 0x1f0]
call fcn.14001cf58
mov rsi, qword [rbp + 0x200]
mov rdi, qword [rbp + 0x1f8]
mov qword [rbp - 0x80], r13
mov r8d, 1
mov rdx, r12
lea rcx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp qword [r15 + 0x10], r13
je 0x140013421
cmp qword [r15 + 0x18], 8
jb 0x140013424
mov r15, qword [r15]
jmp 0x140013424
mov r15, r13
mov rbx, qword [rbp + 0x1f0]
sub rdi, rbx
mov r8, r13
cmp rdi, 2
cmovae r8, rbx
cmp qword [r14 + 0x10], r13
je 0x14001344e
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140013451
mov rdx, qword [r14]
jmp 0x140013451
mov rdx, r13
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x494
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400134a5
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov qword [rbp - 0x80], r13
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x1400134c5
mov rcx, qword [0x1400a4cb0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rbp - 0x68]
test rbx, rbx
je 0x14001351e
sub rsi, rbx
sar rsi, 1
lea rdx, [rsi + rsi]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140013515
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013558
mov rcx, rbx
call fcn.14004b054
nop
mov rcx, r14
call fcn.140017f10
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.14004b030
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14005adc4
nop
int3