Function at 0x140005640
Capabilities:
Acquire debug privileges
Enumerate threads

Disassembly:
jmp 0x140005640
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x140028018]
xor rax, rbp
mov qword [rbp + 0x210], rax
lea rcx, [0x14002e1cb]
call fcn.140001645
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x88], 0xffffffffffffffff
mov qword [rbp + 0xa8], 0
mov dword [rbp + 0x134], 0
lea rcx, [0x14001ca70]
call fcn.1400011f4
test eax, eax
jne 0x1400056d1
jmp 0x1400058af
lea rcx, str.SeImpersonatePrivilege
call fcn.1400011f4
test eax, eax
jne 0x1400056eb
jmp 0x1400058af
lea rdx, [rbp + 0x44]
lea rcx, str.TrustedInstaller
call fcn.1400011e0
test eax, eax
jne 0x140005709
jmp 0x1400058af
cmp dword [rbp + 0x44], 4
je 0x140005741
lea rdx, str.TrustedInstaller
lea rcx, str.___Starting_service__ws..._r_n
call fcn.140001037
mov edx, 1
lea rcx, str.TrustedInstaller
call fcn.1400015e6
test eax, eax
jne 0x140005741
jmp 0x1400058af
lea rdx, [rbp + 0x64]
lea rcx, str.TrustedInstaller
call fcn.1400010d2
test eax, eax
jne 0x14000575f
jmp 0x1400058af
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
jne 0x140005786
jmp 0x1400058af
mov r8d, 0x1c
xor edx, edx
lea rcx, [rbp + 0xc8]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0xc8], 0x1c
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1400057c5
jmp 0x1400058af
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xd4], eax
jne 0x1400057f7
mov r8d, dword [rbp + 0xd0]
xor edx, edx
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x1400057f7
jmp 0x14000580e
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x88]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400057c5
mov r8d, 0xc
xor edx, edx
lea rcx, [rbp + 0x108]
call sub.VCRUNTIME140D.dll_memset
mov dword [rbp + 0x108], 0xc
mov dword [rbp + 0x10c], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r8, [rbp + 0x108]
mov rdx, qword [rbp + 0xa8]
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtImpersonateThread]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140005866
jmp 0x1400058af
mov dword [rbp + 0x24], 1
mov rax, qword [rbp + 0x240]
add rax, 0x28
mov qword [rbp + 0x208], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, qword [rbp + 0x208]
mov r9, rcx
xor r8d, r8d
mov edx, 0x2000000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400058a8
jmp 0x1400058af
mov dword [rbp + 4], 1
cmp dword [rbp + 0x24], 0
je 0x1400058c1
mov rcx, qword [rbp + 0x240]
call fcn.1400012da
lea rcx, [rbp + 0xa8]
call fcn.140001113
lea rcx, [rbp + 0x88]
call fcn.140001113
mov ecx, dword [rbp + 0x134]
call fcn.140001131
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.140001546
mov eax, edi
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.14000132a
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret