Function at 0x1401be680
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 [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea rcx, [0x140353ae8]
call fcn.140100af0
mov ecx, 0xb
call fcn.1401bedc0
test rax, rax
je 0x1401be6e1
mov r13, qword [rax + 0x18]
mov r12d, dword [rax + 0x20]
add r12, r13
jmp 0x1401be6e9
mov r13, qword [rbp - 0x61]
mov r12, qword [rbp - 0x61]
lea rcx, str.Locating_TDL_watchdog..._n
call fcn.1401b5550
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.1401bedc0
mov r15, rax
test rax, rax
je 0x1401be9a9
mov rsi, rax
cmp qword [rax + 0x50], 4
je 0x1401be744
mov ecx, dword [rsi]
test ecx, ecx
je 0x1401be972
add rsi, rcx
cmp qword [rsi + 0x50], 4
jne 0x1401be730
test r14, r14
jne 0x1401be8b2
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 0x1401be826
lea rbx, [rsi + 0x148]
mov rdx, qword [rbx - 0x28]
cmp rdx, r13
jb 0x1401be814
cmp rdx, r12
jae 0x1401be814
cmp dword [rbx], 0xf
jne 0x1401be814
mov rax, qword [r9 + 8]
mov rcx, r9
cmp byte [rax + 0x19], 0
jne 0x1401be7cd
nop
cmp qword [rax + 0x20], rdx
jae 0x1401be7ac
mov rax, qword [rax + 0x10]
jmp 0x1401be7b2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401be7a0
cmp rcx, r9
je 0x1401be7cd
cmp rdx, qword [rcx + 0x20]
jb 0x1401be7cd
mov qword [rbp - 0x39], rcx
lea rax, [rbp - 0x39]
jmp 0x1401be7d5
mov qword [rbp - 0x31], r9
lea rax, [rbp - 0x31]
mov rax, qword [rax]
cmp rax, r9
jne 0x1401be80d
mov qword [rbp - 0x19], rdx
mov dword [rbp - 0x11], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x1f]
call fcn.1401c0650
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x1f]
call fcn.14000a990
jmp 0x1401be810
inc dword [rax + 0x28]
mov r9, qword [rbp + 0x1f]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401be773
mov ebx, dword [rbp - 0x69]
xor edx, edx
mov r8, qword [r9]
mov rax, r8
cmp r8, r9
je 0x1401be893
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401be840
mov edx, ecx
mov r14, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401be88e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401be86e
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401be88e
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401be860
jmp 0x1401be88e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401be88b
cmp rax, qword [rcx + 0x10]
jne 0x1401be88b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401be878
mov rax, rcx
cmp rax, r9
jne 0x1401be833
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x1f]
call fcn.140009350
mov rcx, qword [rbp + 0x1f]
call fcn.14021ae20
test r14, r14
je 0x1401be99d
xor edi, edi
cmp dword [rsi + 4], edi
jbe 0x1401be972
lea rbx, [rsi + 0x120]
cmp dword [rbx + 0x28], 0
jne 0x1401be960
cmp qword [rbx], r14
jne 0x1401be960
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbp - 0x59]
mov rax, qword [r8 + 8]
mov rcx, r8
cmp byte [rax + 0x19], 0
jne 0x1401be91d
nop dword [rax]
cmp qword [rax + 0x20], rdx
jae 0x1401be8fc
mov rax, qword [rax + 0x10]
jmp 0x1401be902
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401be8f0
cmp rcx, r8
je 0x1401be91d
cmp rdx, qword [rcx + 0x20]
jb 0x1401be91d
mov qword [rbp - 0x41], rcx
lea rax, [rbp - 0x41]
jmp 0x1401be925
mov qword [rbp - 0x61], r8
lea rax, [rbp - 0x61]
mov rax, qword [rax]
cmp rax, r8
jne 0x1401be95d
mov qword [rbp - 0x29], rdx
mov dword [rbp - 0x21], 1
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.1401c0650
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x59]
call fcn.14000a990
jmp 0x1401be960
inc dword [rax + 0x28]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401be8c4
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 0x1401be9a9
jmp 0x1401be710
lea rcx, str.ExpWorkerThread_not_found__r_n
call fcn.1401b5550
xor esi, esi
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rax, qword [r8]
cmp rax, r8
je 0x1401beb75
nop dword [rax]
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401be9cd
mov edx, ecx
mov rsi, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401bea1e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401be9fe
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401bea1e
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401be9f0
jmp 0x1401bea1e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401bea1b
cmp rax, qword [rcx + 0x10]
jne 0x1401bea1b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401bea08
mov rax, rcx
cmp rax, r8
jne 0x1401be9c0
cmp edx, 0x14
jne 0x1401beb75
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 0x1401bea8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1401beafe
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1401beafe
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 0x1401beafe
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, [0x140353ae8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1401beaf4
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 0x1401beb2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenThread___failed_with_error__d_r_n
call fcn.1401b5550
jmp 0x1401beb75
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1401beb51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SuspendThread___failed_with_error__d_r_n
call fcn.1401b5550
jmp 0x1401beb54
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1401beb75
mov rdx, rsi
lea rcx, str._d_:__r_n
call fcn.1401b5550
mov bl, 1
jmp 0x1401beb83
lea rcx, str.:__r_n
call fcn.1401b5550
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.14021ae20
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1402bcad0
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