Function at 0x1400a8d50
Capabilities:
Terminate thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1068]
mov eax, 0x1168
call fcn.1400e1740
sub rsp, rax
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov r15, qword [rbp + 0x10d0]
mov r12, r8
movsxd r14, r9d
lea r8, [0x14011eaa0]
mov rsi, rdx
mov rdi, rcx
mov rdx, r14
mov rcx, r12
mov r13, r14
call fcn.1400e86e4
test r15, r15
je 0x1400a8db7
mov dword [r15], 0
cmp word [rdi], 0
lea rdx, str._Unknown_type_
mov ebx, 0x40
je 0x1400a8df9
mov rcx, 0xffffffffffffffff
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400a8f48
add rcx, 2
cmp rcx, 0xf
je 0x1400a8df9
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x1400a8dd0
jmp 0x1400a8f48
mov rdx, qword [rsi + 0x10]
xor r8d, r8d
mov rcx, qword [rsi + 8]
call fcn.1400ae940
mov r14, rax
test rax, rax
jne 0x1400a8ebe
cmp qword [0x140173248], 0xffffffffffffffff
je 0x1400a8eaa
lea ebx, [r13*2 + 8]
mov ecx, ebx
call fcn.1400e8270
mov ecx, dword [rsi + 8]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov r14, rax
mov rcx, qword [rsi]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rcx
mov r9d, 0x20
mov rcx, qword [rsi + 0x10]
mov edx, 0x8335004c
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [0x140173248]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 0x40
test eax, eax
je 0x1400a8e9d
lea r8, [r14 + 4]
mov edx, ebx
mov rcx, rdi
call fcn.1400e86e4
mov rcx, r14
call fcn.1400e825c
jmp 0x1400a8f45
lea rdx, str._Unknown_type_
mov rcx, rdi
call fcn.1400a5310
jmp 0x1400a8f45
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
lea edx, [r9 + 2]
call sub.ntdll.dll_NtQueryObject
mov ecx, dword [rsp + 0x40]
call fcn.1400e8270
mov r9d, dword [rsp + 0x40]
mov r8, rax
mov edx, 2
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rbx, rax
call sub.ntdll.dll_NtQueryObject
mov rcx, rdi
test eax, eax
jne 0x1400a8f20
movzx r9d, word [rbx]
lea edx, [rax + 0x40]
mov r8, qword [rbx + 8]
shr r9, 1
call fcn.1400e8844
jmp 0x1400a8f2f
mov r8d, eax
lea rdx, str._Unknown_type:__X_
call fcn.1400a5310
mov rcx, rbx
call fcn.1400e825c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x40
mov r14d, r13d
lea rdx, str.process
mov rcx, rdi
call fcn.1400e89f4
test eax, eax
je 0x1400a9309
lea rdx, [0x140137d88]
mov rcx, rdi
call fcn.1400e89f4
test eax, eax
je 0x1400a9309
lea rdx, str.token
mov rcx, rdi
call fcn.1400e89f4
test eax, eax
jne 0x1400a90ac
mov rdx, qword [rsi + 0x10]
lea r8d, [rax + 8]
mov rcx, qword [rsi + 8]
call fcn.1400ae940
mov rbx, rax
test rax, rax
je 0x1400a954a
xor eax, eax
mov dword [rsp + 0x48], reloc.WS2_32.dll_getservbyport
mov r9d, reloc.WS2_32.dll_getservbyport
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x48]
mov rcx, rbx
lea r8, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea edx, [r9 - 0x2e]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rbp - 0x10]
lea r8, [rbp + 0x850]
mov dword [rsp + 0x50], eax
mov r9d, 0x800
mov eax, dword [rbp - 0xc]
mov edx, 1
mov dword [rsp + 0x54], eax
mov rcx, rbx
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400a909e
mov rdx, qword [rbp + 0x850]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x5c]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x5c], 0x104
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x220]
lea rax, [rbp + 0x430]
mov dword [rsp + 0x58], 0x104
lea rcx, [0x14011eaa0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x1400a909e
mov rax, qword [rsp + 0x50]
lea r9, [rbp + 0x430]
mov qword [rsp + 0x28], rax
lea r8, str._s_s:_llx
lea rax, [rbp + 0x220]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1400192b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a954a
lea rdx, str.EtwRegistration
mov rcx, rdi
call fcn.1400e89f4
test eax, eax
jne 0x1400a90f2
mov rdx, qword [rsi + 0x10]
xor r8d, r8d
mov rcx, qword [rsi + 8]
call fcn.1400ae940
mov rbx, rax
test rax, rax
je 0x1400a954a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a954a
cmp qword [0x140173248], 0xffffffffffffffff
je 0x1400a91a4
lea ebx, [r14*2 + 8]
mov ecx, ebx
call fcn.1400e8270
mov edx, dword [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x60], edx
mov r14, rax
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
lea rdx, str.file
call fcn.1400e89f4
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x60]
test eax, eax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rcx
mov rcx, qword [0x140173248]
mov r9d, 0x20
mov qword [rsp + 0x30], rax
mov edx, 0x83350048
mov dword [rsp + 0x28], ebx
sete byte [rsp + 0x70]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400a9197
lea r8, [r14 + 4]
mov rdx, r13
mov rcx, r12
call fcn.1400e86e4
test r15, r15
je 0x1400a9197
mov eax, dword [r14]
mov dword [r15], eax
mov rcx, r14
call fcn.1400e825c
jmp 0x1400a954a
mov rdx, qword [rsi + 0x10]
xor r8d, r8d
mov rcx, qword [rsi + 8]
call fcn.1400ae940
mov rbx, rax
test rax, rax
je 0x1400a954a
mov r14d, 0x400
mov ecx, r14d
mov dword [rsp + 0x40], r14d
call fcn.1400e8270
movzx ecx, word [rsp + 0x40]
xorps xmm0, xmm0
sub cx, 0x10
mov rdi, rax
movups xmmword [rax], xmm0
mov word [rax], cx
lea rcx, [0x14018fa48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401a08c0], 0
jne 0x1400a922d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x1401a08c0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1401a08c8], rax
cmp qword [0x1401a08b8], 0
jne 0x1400a9262
lea rax, [rbp - 0x7c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400a8950]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call fcn.1400f7ce8
mov qword [0x1401a08b8], rax
mov rcx, qword [0x1401a08c0]
mov qword [0x1401a08d8], rdi
mov qword [0x1401a08d0], rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1401a08c8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400a92c2
mov rcx, qword [0x1401a08b8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1401a08b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a08b8], 0
jmp 0x1400a92e6
cmp dword [0x1401a08e0], 0
jne 0x1400a92e6
mov r8, qword [rdi + 8]
test r8, r8
je 0x1400a92e6
movzx r9d, word [rdi]
mov rdx, r13
shr r9, 1
mov rcx, r12
call fcn.1400e8844
mov rcx, rdi
call fcn.1400e825c
lea rcx, [0x14018fa48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a954a
lea rdx, str.process
mov rcx, rdi
call fcn.1400e89f4
mov rdx, qword [rsi + 0x10]
test eax, eax
mov rcx, qword [rsi + 8]
mov r14d, 0x400
cmove ebx, r14d
mov r8d, ebx
call fcn.1400ae940
mov rbx, rax
test rax, rax
je 0x1400a94d1
lea rdx, [0x14012fd98]
mov rcx, rdi
call fcn.1400e89f4
xor edx, edx
mov r9d, gethostbyaddr
test eax, eax
mov rcx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
jne 0x1400a941d
lea r8, [rbp - 0x48]
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
jne 0x1400a94c6
mov rcx, qword [rbp - 0x28]
cmp ecx, 0xfffffff6
jne 0x1400a938f
lea r8, str.Hardware_Interrupts_and_DPCs
jmp 0x1400a93e4
mov r8, qword [0x1401941b8]
cmp ecx, dword [r8 + 0x50]
je 0x1400a93b0
nop dword [rax]
mov eax, dword [r8]
test eax, eax
je 0x1400a93d4
add r8, rax
cmp ecx, dword [r8 + 0x50]
jne 0x1400a93a0
movzx eax, word [r8 + 0x38]
test ax, ax
je 0x1400a93dd
mov r8, qword [r8 + 0x40]
lea rcx, [rbp + 0x20]
mov r9d, eax
mov edx, 0x100
shr r9, 1
call fcn.1400e8844
jmp 0x1400a93f2
lea r8, str._Non_existent_Process_
jmp 0x1400a93e4
lea r8, str.System_Idle_Process
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.1400e86e4
mov eax, dword [rbp - 0x28]
lea r9, [rbp + 0x20]
lea r8, str._s__d_
mov dword [rsp + 0x20], eax
mov rdx, r13
mov rcx, r12
call fcn.1400192b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a954a
lea r8, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
jne 0x1400a94c6
mov rcx, qword [rbp - 0x68]
cmp ecx, 0xfffffff6
jne 0x1400a9441
lea r8, str.Hardware_Interrupts_and_DPCs
jmp 0x1400a9494
mov r8, qword [0x1401941b8]
cmp ecx, dword [r8 + 0x50]
je 0x1400a9460
nop
mov eax, dword [r8]
test eax, eax
je 0x1400a9484
add r8, rax
cmp ecx, dword [r8 + 0x50]
jne 0x1400a9450
movzx eax, word [r8 + 0x38]
test ax, ax
je 0x1400a948d
mov r8, qword [r8 + 0x40]
lea rcx, [rbp + 0x20]
mov r9d, eax
mov edx, 0x100
shr r9, 1
call fcn.1400e8844
jmp 0x1400a94a2
lea r8, str._Non_existent_Process_
jmp 0x1400a9494
lea r8, str.System_Idle_Process
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.1400e86e4
mov eax, dword [rbp - 0x60]
lea r9, [rbp + 0x20]
mov dword [rsp + 0x28], eax
lea r8, str._s__d_:__d
mov eax, dword [rbp - 0x68]
mov rdx, r13
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.1400192b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a954a
cmp qword [0x140173248], 0xffffffffffffffff
je 0x1400a954a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov r9d, r14d
mov qword [rsp + 0x30], rcx
mov r8d, eax
mov dword [rsp + 0x28], ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x50]
lea r8, [0x14011f2ac]
mov edx, 0x104
lea rcx, [rbp + 0x640]
call fcn.1400192b0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r9, [rbp + 0x640]
mov rdx, r13
lea r8, [0x140137dc0]
mov rcx, r12
call fcn.1400192b0
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.1400e17a0
add rsp, 0x1168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret