Function at 0x180002c80
Capabilities:
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x18010e080]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov esi, edx
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x30], rax
mov rdi, rax
test rax, rax
jne 0x180002ce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea rcx, str.OpenThread_:__u_Error__ErrorCode:_u_n
mov r8d, eax
call fcn.180002b50
xor eax, eax
jmp 0x180003008
mov qword [rsp + 0x300], rbx
lea rcx, str.ntdll
mov qword [rsp + 0x310], r12
mov qword [rsp + 0x318], r13
mov qword [rsp + 0x2d8], r14
mov qword [rsp + 0x2d0], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
lea r8, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rdi
lea r9d, [rbx + 0x30]
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13d, dword [rbp - 0x78]
lea rcx, str.___Query_Service_Tag__u._u_n
mov r8d, esi
mov edx, r13d
call fcn.180002b50
xorps xmm0, xmm0
mov dword [rsp + 0x70], ebx
lea rcx, [0x1800e2b50]
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x40], xmm0
mov r12d, ebx
mov r15d, ebx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x180002fde
mov r8d, esi
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180002e54
lea r9d, [rbx + 0x30]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call r14
test eax, eax
jne 0x180002e4b
mov r8d, r13d
lea ecx, [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x180002e4b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, 0xf60
mov qword [rsp + 0x20], rbx
test eax, eax
mov dword [rsp + 0x70], eax
mov edx, 0x1720
lea r9d, [rbx + 8]
cmove edx, ecx
lea r8, [rsp + 0x38]
add rdx, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180002e42
mov r12d, dword [rsp + 0x38]
lea r15d, [rbx + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x180002fde
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rcx, str.advapi32.dll
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x180002fde
lea rdx, str.I_QueryTagInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002f1f
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov edx, 1
mov dword [rsp + 0x44], r12d
xor ecx, ecx
call rax
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x180002f1f
lea rax, [rbp - 0x50]
mov r8, r9
sub r8, rax
lea rcx, [rbp - 0x50]
mov edx, 0x104
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x180002f03
movzx eax, word [r8 + rcx]
test ax, ax
je 0x180002f03
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x180002ee0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov rcx, r9
mov word [rax], bx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x180002fde
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x50]
mov rdx, rbx
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180002f40
inc rdx
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rcx, [rbp - 0x50]
lea rdx, [0x1800e2bf8]
movzx eax, word [rcx + rbx*2 + 2]
cmp ax, word [rdx + rbx*2 + 2]
jne 0x180002fe0
add rbx, 2
cmp rbx, 9
je 0x180002f84
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
je 0x180002f62
jmp 0x180002fe0
mov edx, esi
lea rcx, str.____Get_eventlog_thread__d__t____try_to_kill
call fcn.180002b50
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
lea rdx, str._success_n
lea rcx, str._error_n
cmovne rcx, rdx
call fcn.180002b50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x180002fe0
xor eax, eax
mov r14, qword [rsp + 0x2d8]
mov r13, qword [rsp + 0x318]
mov r12, qword [rsp + 0x310]
mov rbx, qword [rsp + 0x300]
mov r15, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1800cd370
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret