Function at 0x1401ab110
Capabilities:
Acquire debug privileges
Suspend thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea rcx, str.SeDebugPrivilege
call fcn.1400ffc40
mov ecx, 0xb
call fcn.1401ab850
test rax, rax
je 0x1401ab171
mov r13, qword [rax + 0x18]
mov r12d, dword [rax + 0x20]
add r12, r13
jmp 0x1401ab179
mov r13, qword [rbp - 0x61]
mov r12, qword [rbp - 0x61]
lea rcx, str.Locating_TDL_watchdog..._n
call fcn.1401a2060
xor r14d, r14d
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
call fcn.14000a210
mov qword [rbp - 0x59], rax
xor ebx, ebx
mov dword [rbp - 0x69], ebx
nop
mov ecx, 5
call fcn.1401ab850
mov r15, rax
test rax, rax
je 0x1401ab439
mov rsi, rax
cmp qword [rax + 0x50], 4
je 0x1401ab1d4
mov ecx, dword [rsi]
test ecx, ecx
je 0x1401ab402
add rsi, rcx
cmp qword [rsi + 0x50], 4
jne 0x1401ab1c0
test r14, r14
jne 0x1401ab342
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
call fcn.14000a210
mov r9, rax
mov qword [rbp + 0x1f], rax
xor edi, edi
cmp dword [rsi + 4], edi
jbe 0x1401ab2b6
lea rbx, [rsi + 0x148]
mov rdx, qword [rbx - 0x28]
cmp rdx, r13
jb 0x1401ab2a4
cmp rdx, r12
jae 0x1401ab2a4
cmp dword [rbx], 0xf
jne 0x1401ab2a4
mov rax, qword [r9 + 8]
mov rcx, r9
cmp byte [rax + 0x19], 0
jne 0x1401ab25d
nop
cmp qword [rax + 0x20], rdx
jae 0x1401ab23c
mov rax, qword [rax + 0x10]
jmp 0x1401ab242
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401ab230
cmp rcx, r9
je 0x1401ab25d
cmp rdx, qword [rcx + 0x20]
jb 0x1401ab25d
mov qword [rbp - 0x39], rcx
lea rax, [rbp - 0x39]
jmp 0x1401ab265
mov qword [rbp - 0x31], r9
lea rax, [rbp - 0x31]
mov rax, qword [rax]
cmp rax, r9
jne 0x1401ab29d
mov qword [rbp - 0x19], rdx
mov dword [rbp - 0x11], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x1f]
call fcn.1401acf50
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x1f]
call fcn.14000a860
jmp 0x1401ab2a0
inc dword [rax + 0x28]
mov r9, qword [rbp + 0x1f]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401ab203
mov ebx, dword [rbp - 0x69]
xor edx, edx
mov r8, qword [r9]
mov rax, r8
cmp r8, r9
je 0x1401ab323
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401ab2d0
mov edx, ecx
mov r14, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401ab31e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401ab2fe
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401ab31e
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401ab2f0
jmp 0x1401ab31e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401ab31b
cmp rax, qword [rcx + 0x10]
jne 0x1401ab31b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401ab308
mov rax, rcx
cmp rax, r9
jne 0x1401ab2c3
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x1f]
call fcn.140009220
mov rcx, qword [rbp + 0x1f]
call fcn.1402012c0
test r14, r14
je 0x1401ab42d
xor edi, edi
cmp dword [rsi + 4], edi
jbe 0x1401ab402
lea rbx, [rsi + 0x120]
cmp dword [rbx + 0x28], 0
jne 0x1401ab3f0
cmp qword [rbx], r14
jne 0x1401ab3f0
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbp - 0x59]
mov rax, qword [r8 + 8]
mov rcx, r8
cmp byte [rax + 0x19], 0
jne 0x1401ab3ad
nop dword [rax]
cmp qword [rax + 0x20], rdx
jae 0x1401ab38c
mov rax, qword [rax + 0x10]
jmp 0x1401ab392
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401ab380
cmp rcx, r8
je 0x1401ab3ad
cmp rdx, qword [rcx + 0x20]
jb 0x1401ab3ad
mov qword [rbp - 0x41], rcx
lea rax, [rbp - 0x41]
jmp 0x1401ab3b5
mov qword [rbp - 0x61], r8
lea rax, [rbp - 0x61]
mov rax, qword [rax]
cmp rax, r8
jne 0x1401ab3ed
mov qword [rbp - 0x29], rdx
mov dword [rbp - 0x21], 1
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.1401acf50
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x59]
call fcn.14000a860
jmp 0x1401ab3f0
inc dword [rax + 0x28]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401ab354
mov ebx, dword [rbp - 0x69]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [rbp - 0x69], ebx
cmp ebx, 0x14
jge 0x1401ab439
jmp 0x1401ab1a0
lea rcx, str.ExpWorkerThread_not_found__r_n
call fcn.1401a2060
xor esi, esi
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rax, qword [r8]
cmp rax, r8
je 0x1401ab605
nop dword [rax]
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401ab45d
mov edx, ecx
mov rsi, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401ab4ae
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401ab48e
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401ab4ae
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401ab480
jmp 0x1401ab4ae
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401ab4ab
cmp rax, qword [rcx + 0x10]
jne 0x1401ab4ab
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401ab498
mov rax, rcx
cmp rax, r8
jne 0x1401ab450
cmp edx, 0x14
jne 0x1401ab605
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rbp - 0x69]
xor r8d, r8d
lea edx, [r8 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1401ab51c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1401ab58e
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1401ab58e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rbp - 0x69]
xor r8d, r8d
lea edx, [r8 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1401ab58e
mov rbx, qword [rbp - 0x69]
mov dword [rbp + 0x1f], 0
xor eax, eax
mov qword [rbp + 0x23], rax
mov dword [rbp + 0x2b], eax
lea r8, [rbp - 0x61]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1401ab584
mov dword [rbp + 0x1f], 1
mov rax, qword [rbp - 0x61]
mov qword [rbp + 0x23], rax
mov dword [rbp + 0x2b], 0x80000003
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rbp + 0x1f]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor dil, dil
mov r8d, esi
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x1401ab5bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenThread___failed_with_error__d_r_n
call fcn.1401a2060
jmp 0x1401ab605
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1401ab5e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SuspendThread___failed_with_error__d_r_n
call fcn.1401a2060
jmp 0x1401ab5e4
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1401ab605
mov rdx, rsi
lea rcx, str._d_:__r_n
call fcn.1401a2060
mov bl, 1
jmp 0x1401ab613
lea rcx, str.:__r_n
call fcn.1401a2060
xor bl, bl
mov r8, qword [rbp - 0x59]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x59]
call fcn.140009220
mov rcx, qword [rbp - 0x59]
call fcn.1402012c0
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret