Function at 0x180040740
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x10]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800407ca
lea r8, [rbp + 0x18]
lea rdx, [0x1800ffd08]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp + 0x10]
test eax, eax
je 0x1800407c4
mov dword [rbp - 0x20], 1
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
lea r8, [rbp - 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.180040c40
call fcn.180041510
call fcn.180040920
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0xa
mov qword [rbp - 8], 0xf
movsd xmm0, qword [str.ctfmon.exe]
movsd qword [rbp - 0x20], xmm0
movzx eax, word [0x1800ffc18]
mov word [rbp - 0x18], ax
mov byte [rbp - 0x16], 0
lea rcx, [rbp - 0x20]
call fcn.18003dcc0
mov ebx, eax
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180040855
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040850
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180040850
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
test ebx, ebx
je 0x180040901
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0xd
mov qword [rbp - 8], 0xf
movsd xmm0, qword [str.taskhostw.exe]
movsd qword [rbp - 0x20], xmm0
mov ecx, dword [0x1800ffc28]
mov dword [rbp - 0x18], ecx
movzx ecx, byte [0x1800ffc2c]
mov byte [rbp - 0x14], cl
mov byte [rbp - 0x13], 0
mov r9, rax
lea r8, [rbp - 0x20]
mov edx, ebx
call fcn.180040460
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1800408f8
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800408f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800408f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1800410f0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
jmp 0x180041920
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0xb
mov qword [rbp - 8], 0xf
movsd xmm0, qword [str.MsMpEng.exe]
movsd qword [rbp - 0x20], xmm0
movzx eax, word [0x1800ffdb0]
mov word [rbp - 0x18], ax
movzx eax, byte [0x1800ffdb2]
mov byte [rbp - 0x16], al
mov byte [rbp - 0x15], 0
lea rcx, [rbp - 0x20]
call fcn.18003dcc0
mov ebx, eax
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1800419b8
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800419b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800419b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
test ebx, ebx
je 0x180041c05
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0xf
mov ecx, 0x20
call fcn.1800d1df4
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], 0x11
mov qword [rbp - 8], 0x1f
movups xmm0, xmmword [str.api.tzproject.com]
movups xmmword [rax], xmm0
movzx ecx, byte [0x1800ffbe8]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], 0
mov r9, rdi
lea r8, [rbp - 0x20]
mov edx, ebx
call fcn.180040460
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180041a6d
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041a68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041a68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0xd
mov qword [rbp - 8], 0xf
movsd xmm0, qword [str.api_ttzproject]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x1800ffbf8]
mov dword [rbp - 0x18], eax
movzx eax, byte [0x1800ffbfc]
mov byte [rbp - 0x14], al
mov byte [rbp - 0x13], 0
mov r9, rdi
lea r8, [rbp - 0x20]
mov edx, ebx
call fcn.180040460
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180041af5
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041af0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041af0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0xd
mov qword [rbp - 8], 0xf
movsd xmm0, qword [str.tzproject.com]
movsd qword [rbp - 0x20], xmm0
mov eax, dword [0x1800ffbd0]
mov dword [rbp - 0x18], eax
movzx eax, byte [0x1800ffbd4]
mov byte [rbp - 0x14], al
mov byte [rbp - 0x13], 0
mov r9, rdi
lea r8, [rbp - 0x20]
mov edx, ebx
call fcn.180040460
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180041b7d
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041b78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041b78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 9
mov qword [rbp - 8], 0xf
movsd xmm0, qword [str.tzproject]
movsd qword [rbp - 0x20], xmm0
movzx eax, byte [0x1800ffc58]
mov byte [rbp - 0x18], al
mov byte [rbp - 0x17], 0
mov r9, rdi
lea r8, [rbp - 0x20]
mov edx, ebx
call fcn.180040460
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180041bfc
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041bf7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041bf7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d2278
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret