Function at 0x1401bae60
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 [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea rcx, [0x14034dd08]
call fcn.1400fe3d0
mov ecx, 0xb
call fcn.1401bb5a0
test rax, rax
je 0x1401baec1
mov r13, qword [rax + 0x18]
mov r12d, dword [rax + 0x20]
add r12, r13
jmp 0x1401baec9
mov r13, qword [rbp - 0x61]
mov r12, qword [rbp - 0x61]
lea rcx, str.Locating_TDL_watchdog..._n
call fcn.1401b1eb0
xor r14d, r14d
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], r14
call fcn.14000a340
mov qword [rbp - 0x59], rax
xor ebx, ebx
mov dword [rbp - 0x69], ebx
nop
mov ecx, 5
call fcn.1401bb5a0
mov r15, rax
test rax, rax
je 0x1401bb189
mov rsi, rax
cmp qword [rax + 0x50], 4
je 0x1401baf24
mov ecx, dword [rsi]
test ecx, ecx
je 0x1401bb152
add rsi, rcx
cmp qword [rsi + 0x50], 4
jne 0x1401baf10
test r14, r14
jne 0x1401bb092
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
call fcn.14000a340
mov r9, rax
mov qword [rbp + 0x1f], rax
xor edi, edi
cmp dword [rsi + 4], edi
jbe 0x1401bb006
lea rbx, [rsi + 0x148]
mov rdx, qword [rbx - 0x28]
cmp rdx, r13
jb 0x1401baff4
cmp rdx, r12
jae 0x1401baff4
cmp dword [rbx], 0xf
jne 0x1401baff4
mov rax, qword [r9 + 8]
mov rcx, r9
cmp byte [rax + 0x19], 0
jne 0x1401bafad
nop
cmp qword [rax + 0x20], rdx
jae 0x1401baf8c
mov rax, qword [rax + 0x10]
jmp 0x1401baf92
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401baf80
cmp rcx, r9
je 0x1401bafad
cmp rdx, qword [rcx + 0x20]
jb 0x1401bafad
mov qword [rbp - 0x39], rcx
lea rax, [rbp - 0x39]
jmp 0x1401bafb5
mov qword [rbp - 0x31], r9
lea rax, [rbp - 0x31]
mov rax, qword [rax]
cmp rax, r9
jne 0x1401bafed
mov qword [rbp - 0x19], rdx
mov dword [rbp - 0x11], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x1f]
call fcn.1401bce30
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x1f]
call fcn.14000a990
jmp 0x1401baff0
inc dword [rax + 0x28]
mov r9, qword [rbp + 0x1f]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401baf53
mov ebx, dword [rbp - 0x69]
xor edx, edx
mov r8, qword [r9]
mov rax, r8
cmp r8, r9
je 0x1401bb073
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401bb020
mov edx, ecx
mov r14, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401bb06e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401bb04e
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401bb06e
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401bb040
jmp 0x1401bb06e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401bb06b
cmp rax, qword [rcx + 0x10]
jne 0x1401bb06b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401bb058
mov rax, rcx
cmp rax, r9
jne 0x1401bb013
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x1f]
call fcn.140009350
mov rcx, qword [rbp + 0x1f]
call fcn.1402150f0
test r14, r14
je 0x1401bb17d
xor edi, edi
cmp dword [rsi + 4], edi
jbe 0x1401bb152
lea rbx, [rsi + 0x120]
cmp dword [rbx + 0x28], 0
jne 0x1401bb140
cmp qword [rbx], r14
jne 0x1401bb140
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbp - 0x59]
mov rax, qword [r8 + 8]
mov rcx, r8
cmp byte [rax + 0x19], 0
jne 0x1401bb0fd
nop dword [rax]
cmp qword [rax + 0x20], rdx
jae 0x1401bb0dc
mov rax, qword [rax + 0x10]
jmp 0x1401bb0e2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401bb0d0
cmp rcx, r8
je 0x1401bb0fd
cmp rdx, qword [rcx + 0x20]
jb 0x1401bb0fd
mov qword [rbp - 0x41], rcx
lea rax, [rbp - 0x41]
jmp 0x1401bb105
mov qword [rbp - 0x61], r8
lea rax, [rbp - 0x61]
mov rax, qword [rax]
cmp rax, r8
jne 0x1401bb13d
mov qword [rbp - 0x29], rdx
mov dword [rbp - 0x21], 1
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.1401bce30
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x59]
call fcn.14000a990
jmp 0x1401bb140
inc dword [rax + 0x28]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401bb0a4
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 0x1401bb189
jmp 0x1401baef0
lea rcx, str.ExpWorkerThread_not_found__r_n
call fcn.1401b1eb0
xor esi, esi
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rax, qword [r8]
cmp rax, r8
je 0x1401bb355
nop dword [rax]
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401bb1ad
mov edx, ecx
mov rsi, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401bb1fe
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401bb1de
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401bb1fe
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401bb1d0
jmp 0x1401bb1fe
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401bb1fb
cmp rax, qword [rcx + 0x10]
jne 0x1401bb1fb
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401bb1e8
mov rax, rcx
cmp rax, r8
jne 0x1401bb1a0
cmp edx, 0x14
jne 0x1401bb355
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 0x1401bb26c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1401bb2de
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1401bb2de
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 0x1401bb2de
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, [0x14034dd08]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1401bb2d4
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 0x1401bb30d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenThread___failed_with_error__d_r_n
call fcn.1401b1eb0
jmp 0x1401bb355
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1401bb331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SuspendThread___failed_with_error__d_r_n
call fcn.1401b1eb0
jmp 0x1401bb334
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1401bb355
mov rdx, rsi
lea rcx, str._d_:__r_n
call fcn.1401b1eb0
mov bl, 1
jmp 0x1401bb363
lea rcx, str.:__r_n
call fcn.1401b1eb0
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.140009350
mov rcx, qword [rbp - 0x59]
call fcn.1402150f0
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1402b6d40
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