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

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor edx, edx
lea rcx, [0x140020904]
mov r8d, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 0x2000000
lea rdx, str.EventLog
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor ecx, ecx
lea r8, [rbp + 7]
mov dword [rbp + 0x27], ecx
xorps xmm0, xmm0
lea rcx, [rbp + 3]
xor r12d, r12d
mov qword [rsp + 0x20], rcx
mov r9d, 0x24
mov rcx, rax
mov dword [rbp + 3], r12d
xor edx, edx
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400015c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Unable_to_get_PID_of_svchost.exe_that_hosts_EventLog_service___u__n
call fcn.1400011f0
mov eax, 0xffffffff
jmp 0x140001820
mov qword [rsp + 0xe8], r14
lea rcx, str._n___Targeting_svchost.exe_hosting_eventlog_service_with_PID:__d_n
mov r14d, dword [rbp + 0x23]
mov edx, r14d
mov qword [rsp + 0xe0], r15
call fcn.1400011f0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.OpenProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, r14d
xor edx, edx
mov ecx, 0x10
call rax
mov r15, rax
test rax, rax
jne 0x140001632
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_get_a_handle_to_svchost.exe_that_hosts_EventLog_service___u__n
call fcn.1400011f0
mov eax, 0xffffffff
jmp 0x140001810
mov qword [rsp + 0x118], rsi
xor edx, edx
mov qword [rsp + 0x120], rdi
mov ecx, 4
mov edi, r12d
mov dword [rbp - 1], r12d
mov qword [rbp - 0x79], r12
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001698
lea rdx, [rbp - 0x59]
mov dword [rbp - 0x59], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x1400016a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread32First___and_we_died___u__n
call fcn.1400011f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140001800
mov qword [rsp + 0xf0], r13
mov r13d, 0xf60
mov qword [rsp + 0x110], rbx
nop dword [rax + rax]
cmp dword [rbp - 0x4d], r14d
jne 0x1400017b7
mov r8d, dword [rbp - 0x51]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140001837
mov r9d, 0x38
mov qword [rsp + 0x20], r12
lea r8, [rbp - 0x39]
xor edx, edx
mov rcx, rax
call qword [0x140025d90]
lea rdx, [rbp - 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edx, 0x1720
mov qword [rsp + 0x20], r12
test eax, eax
mov dword [rbp - 1], eax
mov r9d, 8
lea r8, [rbp - 0x79]
cmovne rdx, r13
mov rcx, r15
add rdx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9, qword [0x140025d88]
xor eax, eax
mov qword [rbp - 0x61], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
test r9, r9
je 0x1400017ae
mov eax, dword [rbp - 0x79]
lea r8, [rbp - 0x71]
mov edx, 1
mov dword [rbp - 0x6d], eax
xor ecx, ecx
mov dword [rbp - 0x71], r14d
mov dword [rbp - 0x69], r12d
mov qword [rbp - 0x61], r12
call r9
mov edx, dword [rbp - 0x51]
lea rcx, str.___Thread_FOUND:_TID_____d
call fcn.1400011f0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x14000179f
lea rcx, str._tTerminated__n
call fcn.1400011f0
inc edi
jmp 0x1400017ae
mov edx, dword [rbp - 0x51]
lea rcx, str._n____Failed_to_terminate_EventLog_thread__TID:__d____n
call fcn.1400011f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x59]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400016c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400017ee
lea rcx, str.___Event_Logger_is_Either_NOT_running_or_Already_Killed_Previously__n
call fcn.1400011f0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x118]
mov r14, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140002880
add rsp, 0xf8
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_get_a_handle_to_one_of_EventLog_service_Threads___u__n
call fcn.1400011f0
mov eax, 0xffffffff
jmp 0x1400017f0