Function at 0x1401bc480
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 [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea rcx, [0x14034fce0]
call fcn.1400ff510
mov ecx, 0xb
call fcn.1401bcbc0
test rax, rax
je 0x1401bc4e1
mov r13, qword [rax + 0x18]
mov r12d, dword [rax + 0x20]
add r12, r13
jmp 0x1401bc4e9
mov r13, qword [rbp - 0x61]
mov r12, qword [rbp - 0x61]
lea rcx, str.Locating_TDL_watchdog..._n
call fcn.1401b34f0
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.1401bcbc0
mov r15, rax
test rax, rax
je 0x1401bc7a9
mov rsi, rax
cmp qword [rax + 0x50], 4
je 0x1401bc544
mov ecx, dword [rsi]
test ecx, ecx
je 0x1401bc772
add rsi, rcx
cmp qword [rsi + 0x50], 4
jne 0x1401bc530
test r14, r14
jne 0x1401bc6b2
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 0x1401bc626
lea rbx, [rsi + 0x148]
mov rdx, qword [rbx - 0x28]
cmp rdx, r13
jb 0x1401bc614
cmp rdx, r12
jae 0x1401bc614
cmp dword [rbx], 0xf
jne 0x1401bc614
mov rax, qword [r9 + 8]
mov rcx, r9
cmp byte [rax + 0x19], 0
jne 0x1401bc5cd
nop
cmp qword [rax + 0x20], rdx
jae 0x1401bc5ac
mov rax, qword [rax + 0x10]
jmp 0x1401bc5b2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401bc5a0
cmp rcx, r9
je 0x1401bc5cd
cmp rdx, qword [rcx + 0x20]
jb 0x1401bc5cd
mov qword [rbp - 0x39], rcx
lea rax, [rbp - 0x39]
jmp 0x1401bc5d5
mov qword [rbp - 0x31], r9
lea rax, [rbp - 0x31]
mov rax, qword [rax]
cmp rax, r9
jne 0x1401bc60d
mov qword [rbp - 0x19], rdx
mov dword [rbp - 0x11], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x1f]
call fcn.1401be450
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x1f]
call fcn.14000a990
jmp 0x1401bc610
inc dword [rax + 0x28]
mov r9, qword [rbp + 0x1f]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401bc573
mov ebx, dword [rbp - 0x69]
xor edx, edx
mov r8, qword [r9]
mov rax, r8
cmp r8, r9
je 0x1401bc693
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401bc640
mov edx, ecx
mov r14, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401bc68e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401bc66e
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401bc68e
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401bc660
jmp 0x1401bc68e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401bc68b
cmp rax, qword [rcx + 0x10]
jne 0x1401bc68b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401bc678
mov rax, rcx
cmp rax, r9
jne 0x1401bc633
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x1f]
call fcn.140009350
mov rcx, qword [rbp + 0x1f]
call fcn.1402177e0
test r14, r14
je 0x1401bc79d
xor edi, edi
cmp dword [rsi + 4], edi
jbe 0x1401bc772
lea rbx, [rsi + 0x120]
cmp dword [rbx + 0x28], 0
jne 0x1401bc760
cmp qword [rbx], r14
jne 0x1401bc760
mov rdx, qword [rbx + 0x10]
mov r8, qword [rbp - 0x59]
mov rax, qword [r8 + 8]
mov rcx, r8
cmp byte [rax + 0x19], 0
jne 0x1401bc71d
nop dword [rax]
cmp qword [rax + 0x20], rdx
jae 0x1401bc6fc
mov rax, qword [rax + 0x10]
jmp 0x1401bc702
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401bc6f0
cmp rcx, r8
je 0x1401bc71d
cmp rdx, qword [rcx + 0x20]
jb 0x1401bc71d
mov qword [rbp - 0x41], rcx
lea rax, [rbp - 0x41]
jmp 0x1401bc725
mov qword [rbp - 0x61], r8
lea rax, [rbp - 0x61]
mov rax, qword [rax]
cmp rax, r8
jne 0x1401bc75d
mov qword [rbp - 0x29], rdx
mov dword [rbp - 0x21], 1
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.1401be450
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x59]
call fcn.14000a990
jmp 0x1401bc760
inc dword [rax + 0x28]
add rbx, 0x50
inc edi
cmp edi, dword [rsi + 4]
jb 0x1401bc6c4
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 0x1401bc7a9
jmp 0x1401bc510
lea rcx, str.ExpWorkerThread_not_found__r_n
call fcn.1401b34f0
xor esi, esi
xor edx, edx
mov r8, qword [rbp - 0x59]
mov rax, qword [r8]
cmp rax, r8
je 0x1401bc975
nop dword [rax]
mov ecx, dword [rax + 0x28]
cmp ecx, edx
jle 0x1401bc7cd
mov edx, ecx
mov rsi, qword [rax + 0x20]
cmp byte [rax + 0x19], 0
jne 0x1401bc81e
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x1401bc7fe
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1401bc81e
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1401bc7f0
jmp 0x1401bc81e
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401bc81b
cmp rax, qword [rcx + 0x10]
jne 0x1401bc81b
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401bc808
mov rax, rcx
cmp rax, r8
jne 0x1401bc7c0
cmp edx, 0x14
jne 0x1401bc975
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 0x1401bc88c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1401bc8fe
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1401bc8fe
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 0x1401bc8fe
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, [0x14034fce0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1401bc8f4
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 0x1401bc92d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenThread___failed_with_error__d_r_n
call fcn.1401b34f0
jmp 0x1401bc975
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1401bc951
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SuspendThread___failed_with_error__d_r_n
call fcn.1401b34f0
jmp 0x1401bc954
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
je 0x1401bc975
mov rdx, rsi
lea rcx, str._d_:__r_n
call fcn.1401b34f0
mov bl, 1
jmp 0x1401bc983
lea rcx, str.:__r_n
call fcn.1401b34f0
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.1402177e0
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1402b9610
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