Function at 0x14009b49c
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov r15d, ecx
lea rcx, [0x14011cae0]
mov edi, r9d
mov rbp, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cl, byte [rsp + 0xf8]
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x50], r15d
mov al, cl
and cl, 0xf
mov qword [rsp + 0x58], rbx
and al, 0xc0
mov byte [rsp + 0x70], cl
mov byte [rsp + 0xf8], cl
mov byte [rsp + 0xe8], al
mov eax, dword [rsp + 0xf0]
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x6c], eax
lea rax, [0x14011c678]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8, [0x14009b3a8]
mov esi, 1
xor edi, edi
mov edx, 0x20000
xor ecx, ecx
mov dword [rsp + 0x20], 0x10000
mov dword [rsp + 0x74], esi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp rax, rdi
jne 0x14009b56a
lea rcx, [0x14011cae0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14009b966
mov ebx, 0x270f
mov eax, dword [rsp + 0x74]
cmp eax, edi
je 0x14009b583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
jns 0x14009b56f
mov eax, dword [rsp + 0x74]
cmp eax, edi
je 0x14009b59d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x74]
cmp r11d, edi
jne 0x14009b58b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r12, str.32770
mov rsi, rdi
mov r14, rbp
mov r13, rdi
mov qword [rsp + 0x40], r12
cmp r15d, 2
jne 0x14009b5d4
lea r14, [0x140109758]
mov r12, rdi
mov qword [rsp + 0x40], rdi
lea r13, [0x140109748]
movzx eax, word [0x14011d00c]
mov ecx, 4
mov dword [rsp + 0xd8], edi
mov bl, dil
test cl, al
jne 0x14009b60c
or ax, cx
lea edx, [rcx - 2]
lea rcx, str.SeDebugPrivilege
xor r8d, r8d
mov bl, 1
mov word [0x14011d00c], ax
call fcn.14001a7c8
mov ebp, 0xa
sub ebp, 1
js 0x14009b653
mov rdx, r14
mov rcx, r12
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b653
cmp r13, rdi
je 0x14009b643
mov rdx, r13
mov rcx, r12
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b653
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rsi, rdi
je 0x14009b611
mov ebp, 0xa
cmp rsi, rdi
jne 0x14009b6c7
sub ebp, 1
js 0x14009b69d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b6c7
cmp r13, rdi
je 0x14009b68d
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b6c7
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rsi, rdi
je 0x14009b65d
cmp rsi, rdi
jne 0x14009b6c7
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call fcn.1400cab00
mov rsi, rax
mov r12d, 0x5a
mov ebp, r12d
cmp rsi, rdi
jne 0x14009b76b
mov r15, qword [rsp + 0x40]
sub ebp, 1
js 0x14009b720
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b720
cmp r13, rdi
je 0x14009b710
mov rdx, r13
mov rcx, r15
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b720
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rsi, rdi
je 0x14009b6de
mov r15d, dword [rsp + 0xd0]
jmp 0x14009b766
sub r12d, 1
js 0x14009b76b
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b76b
cmp r13, rdi
je 0x14009b75b
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
jne 0x14009b76b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rsi, rdi
je 0x14009b72a
mov r13, qword [rsp + 0xe0]
cmp r15d, 2
jne 0x14009b78a
cmp rsi, rdi
je 0x14009b78a
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
cmp r15d, 1
jne 0x14009b7ac
cmp rsi, rdi
je 0x14009b7ac
mov rax, qword [0x14011b9b0]
cmp rax, rdi
je 0x14009b7ac
mov qword [rax], rsi
cmp byte [rsp + 0xe8], 0x80
je 0x14009b8b7
cmp r15d, 1
jne 0x14009b7c9
cmp rsi, rdi
je 0x14009b8b7
cmp r15d, 2
jne 0x14009b82e
mov r12d, dword [rsp + 0xf0]
cmp r12d, edi
jg 0x14009b816
cmp bl, dil
je 0x14009b957
mov eax, 0xfffb
lea edx, [r15 + 2]
lea rcx, str.SeDebugPrivilege
and word [0x14011d00c], ax
xor r8d, r8d
call fcn.14001a7c8
jmp 0x14009b957
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, r12d
jge 0x14009b821
mov al, byte [0x14011922f]
cmp al, dil
jg 0x14009b809
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
jmp 0x14009b8b7
mov al, byte [0x14011922f]
cmp al, dil
jle 0x14009b880
mov r12d, dword [rsp + 0xf0]
cmp r12d, edi
jle 0x14009b853
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, r12d
jge 0x14009b88e
mov rcx, qword [rsp + 0x40]
mov rdx, r13
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
cmp rax, rdi
je 0x14009b880
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14011922f]
cmp r11b, dil
jg 0x14009b841
mov rax, qword [rsp + 0x78]
cmp rax, rdi
je 0x14009b89f
mov ecx, dword [rax]
jmp 0x14009b8a1
movzx eax, byte [rsp + 0xf8]
mov dword [rsp + 0xd8], eax
jmp 0x14009b8a8
mov ecx, edi
mov dword [rsp + 0xd8], ecx
mov rax, qword [0x14011b9b0]
cmp rax, rdi
je 0x14009b8b7
mov qword [rax], rdi
mov rax, qword [rsp + 0x78]
cmp rax, rdi
je 0x14009b8c7
mov dword [rax], 0xffffffff
cmp rsi, rdi
je 0x14009b911
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
mov ebp, 0x111
lea r8d, [r9 + 2]
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov edx, ebp
lea r8d, [r9 + 7]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rsi, qword [rsp + 0x48]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0xd8]
cmp bl, dil
je 0x14009b955
xor r8d, r8d
mov eax, 0xfffb
lea rcx, str.SeDebugPrivilege
and word [0x14011d00c], ax
lea edx, [r8 + 4]
call fcn.14001a7c8
mov edi, esi
lea rcx, [0x14011cae0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret