Function at 0x14007c4d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1078]
mov eax, 0x1178
call fcn.1400ab0e0
sub rsp, rax
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov r13, qword [rbp + 0x10e0]
movsxd rbx, r9d
mov r15, r8
mov qword [rsp + 0x48], r8
mov rsi, rdx
mov rdi, rcx
lea r8, [0x1400d1428]
mov rdx, rbx
mov rcx, r15
mov r14, rbx
mov qword [rsp + 0x50], rbx
call fcn.1400a97ac
test r13, r13
je 0x14007c542
mov dword [r13], 0
cmp word [rdi], 0
mov r12d, 0x40
lea rdx, str._Unknown_type_
je 0x14007c589
or rcx, 0xffffffffffffffff
nop dword [rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x14007c6d4
add rcx, 2
cmp rcx, 0xf
je 0x14007c589
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x14007c560
jmp 0x14007c6d4
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
xor r8d, r8d
call fcn.140083160
mov r15, rax
test rax, rax
jne 0x14007c643
mov r15, qword [0x140120a98]
cmp r15, 0xffffffffffffffff
je 0x14007c62f
lea ebx, [rbx*2 + 8]
mov ecx, ebx
call fcn.1400a82f0
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsi]
mov r14, rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [rsi + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x78], rcx
lea r8, [rsp + 0x70]
mov rcx, r15
mov r9d, 0x20
mov edx, 0x8335004c
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14007c622
lea r8, [r14 + 4]
mov rdx, r12
mov rcx, rdi
call fcn.1400a97ac
mov rcx, r14
call fcn.1400a82b0
jmp 0x14007c6c7
lea rdx, str._Unknown_type_
mov rcx, rdi
call fcn.140079460
jmp 0x14007c6cf
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [0x140130ce0]
mov ebx, dword [rsp + 0x40]
mov ecx, ebx
call fcn.1400a82f0
mov r9d, ebx
mov edx, 2
mov rcx, r15
mov r8, rax
mov qword [rsp + 0x20], 0
mov r14, rax
call qword [0x140130ce0]
mov rcx, rdi
test eax, eax
jne 0x14007c6a7
movzx r9d, word [r14]
mov r8, qword [r14 + 8]
mov rdx, r12
shr r9, 1
call fcn.1400a9844
jmp 0x14007c6b6
lea rdx, str._Unknown_type:__X_
mov r8d, eax
call fcn.140079460
mov rcx, r14
call fcn.1400a82b0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x50]
mov ebx, r14d
mov r15, qword [rsp + 0x48]
lea rdx, str.process
mov rcx, rdi
call fcn.1400a9bbc
test eax, eax
je 0x14007ca8e
lea rdx, str.thread
mov rcx, rdi
call fcn.1400a9bbc
test eax, eax
je 0x14007ca8e
lea rdx, str.token
mov rcx, rdi
call fcn.1400a9bbc
test eax, eax
jne 0x14007c838
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
lea r8d, [rax + 8]
call fcn.140083160
mov rbx, rax
test rax, rax
je 0x14007ccc2
xor eax, eax
mov r9d, reloc.WS2_32.dll_getservbyport
lea r8, [rbp - 8]
mov qword [rbp], rax
lea rax, [rsp + 0x58]
lea edx, [r9 - 0x2e]
mov rcx, rbx
mov dword [rsp + 0x58], reloc.WS2_32.dll_getservbyport
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rbp]
lea r8, [rbp + 0x860]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 4]
mov r9d, 0x800
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x58]
mov edx, 1
mov rcx, rbx
mov dword [rsp + 0x58], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14007c82a
mov rdx, qword [rbp + 0x860]
lea rax, [rbp - 0x70]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
lea r8, [rbp + 0x650]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x230]
lea rcx, [0x1400d1428]
mov dword [rsp + 0x60], 0x104
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x14007c82a
mov rax, qword [rsp + 0x48]
lea r9, [rbp + 0x230]
lea r8, str._s_s:_x
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x650]
mov rdx, r14
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.1400aa928
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ccc2
lea rdx, str.EtwRegistration
mov rcx, rdi
call fcn.1400a9bbc
test eax, eax
jne 0x14007c87e
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
xor r8d, r8d
call fcn.140083160
mov rbx, rax
test rax, rax
je 0x14007ccc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ccc2
cmp qword [0x140120a98], 0xffffffffffffffff
je 0x14007c930
lea ebx, [rbx*2 + 8]
mov ecx, ebx
call fcn.1400a82f0
mov edx, dword [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x70], edx
mov rdx, qword [rsi]
mov r14, rax
mov qword [rsp + 0x78], rdx
lea rdx, str.file
call fcn.1400a9bbc
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x38], 0
test eax, eax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x78], rcx
mov rcx, qword [0x140120a98]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
mov r9d, 0x20
mov edx, 0x83350048
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
sete byte [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14007c923
mov rdx, qword [rsp + 0x50]
lea r8, [r14 + 4]
mov rcx, r15
call fcn.1400a97ac
test r13, r13
je 0x14007c923
mov eax, dword [r14]
mov dword [r13], eax
mov rcx, r14
call fcn.1400a82b0
jmp 0x14007ccc2
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
xor r8d, r8d
call fcn.140083160
mov rbx, rax
test rax, rax
je 0x14007ccc2
mov r14d, 0x400
mov ecx, r14d
mov dword [rsp + 0x40], r14d
call fcn.1400a82f0
mov rdi, rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
movzx ecx, word [rsp + 0x40]
sub cx, 0x10
mov word [rdi], cx
cmp qword [0x14012c590], rax
jne 0x14007c9ab
lea rax, [rbp - 0x6c]
lea r8, [0x14007bd30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.1400ab1f0
mov qword [0x14012c590], rax
mov rcx, qword [0x14012c598]
test rcx, rcx
jne 0x14007c9ea
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x14012c598], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [0x14012c598]
mov qword [0x14012c5a0], rax
mov qword [0x14012c5b0], rdi
mov qword [0x14012c5a8], rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x14012c5a0]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14007ca57
mov rcx, qword [0x14012c590]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14012c590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [0x14012c590], 0
call fcn.1400a82b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ccc2
cmp dword [0x14012c5b8], 0
jne 0x14007ca78
movzx r9d, word [rdi]
mov r8, qword [rdi + 8]
mov rdx, qword [rsp + 0x50]
shr r9, 1
mov rcx, r15
call fcn.1400a9844
mov rcx, rdi
call fcn.1400a82b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ccc2
lea rdx, str.process
mov rcx, rdi
call fcn.1400a9bbc
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
test eax, eax
mov r14d, 0x400
cmove r12d, r14d
mov r8d, r12d
call fcn.140083160
mov rbx, rax
test rax, rax
je 0x14007cc47
lea rdx, [0x1400e2c18]
mov rcx, rdi
call fcn.1400a9bbc
xor edx, edx
mov r9d, gethostbyaddr
test eax, eax
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
jne 0x14007cba1
lea r8, [rbp - 0x38]
call qword [0x140130d20]
test eax, eax
jne 0x14007c82a
mov rcx, qword [rbp - 0x18]
cmp ecx, 0xfffffff6
jne 0x14007cb15
lea r8, str.Hardware_Interrupts_and_DPCs
jmp 0x14007cb66
mov r8, qword [0x140130f68]
cmp ecx, dword [r8 + 0x50]
je 0x14007cb32
mov eax, dword [r8]
test eax, eax
je 0x14007cb56
add r8, rax
cmp ecx, dword [r8 + 0x50]
jne 0x14007cb22
cmp word [r8 + 0x38], 0
je 0x14007cb5f
movzx r9d, word [r8 + 0x38]
mov r8, qword [r8 + 0x40]
lea rcx, [rbp + 0x30]
shr r9, 1
mov edx, 0x100
call fcn.1400a9844
jmp 0x14007cb74
lea r8, str._Non_existent_Process_
jmp 0x14007cb66
lea r8, str.System_Idle_Process
lea rcx, [rbp + 0x30]
mov edx, 0x100
call fcn.1400a97ac
mov eax, dword [rbp - 0x18]
mov rdx, qword [rsp + 0x50]
lea r9, [rbp + 0x30]
lea r8, str._s__d_
mov rcx, r15
mov dword [rsp + 0x20], eax
call fcn.1400aa928
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14007ccc2
lea r8, [rbp - 0x68]
call qword [0x140130d28]
test eax, eax
jne 0x14007c82a
mov rcx, qword [rbp - 0x58]
cmp ecx, 0xfffffff6
jne 0x14007cbc5
lea r8, str.Hardware_Interrupts_and_DPCs
jmp 0x14007cc16
mov r8, qword [0x140130f68]
cmp ecx, dword [r8 + 0x50]
je 0x14007cbe2
mov eax, dword [r8]
test eax, eax
je 0x14007cc06
add r8, rax
cmp ecx, dword [r8 + 0x50]
jne 0x14007cbd2
cmp word [r8 + 0x38], 0
je 0x14007cc0f
movzx r9d, word [r8 + 0x38]
mov r8, qword [r8 + 0x40]
lea rcx, [rbp + 0x30]
shr r9, 1
mov edx, 0x100
call fcn.1400a9844
jmp 0x14007cc24
lea r8, str._Non_existent_Process_
jmp 0x14007cc16
lea r8, str.System_Idle_Process
lea rcx, [rbp + 0x30]
mov edx, 0x100
call fcn.1400a97ac
mov eax, dword [rbp - 0x50]
mov rdx, qword [rsp + 0x50]
lea r9, [rbp + 0x30]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x58]
lea r8, str._s__d_:__d
mov dword [rsp + 0x20], eax
jmp 0x14007c822
cmp qword [0x140120a98], 0xffffffffffffffff
je 0x14007ccc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov r9d, r14d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r8d, eax
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x48]
lea r8, [0x1400d22c8]
lea rcx, [rbp + 0x440]
mov edx, 0x104
call fcn.1400aa928
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x50]
lea r9, [rbp + 0x440]
lea r8, [0x1400ebbd0]
mov rcx, r15
call fcn.1400aa928
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x1178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp