Function at 0x140003460
Capabilities:
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140071030]
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 0x1400034c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea rcx, str.OpenThread_:__u_Error__ErrorCode:_u_n
mov r8d, eax
call fcn.140003330
xor eax, eax
jmp 0x1400037e8
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_GetModuleHandleA]
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.140003330
xorps xmm0, xmm0
mov dword [rsp + 0x70], ebx
lea rcx, [0x14005deb0]
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_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400037be
mov r8d, esi
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x140003634
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 0x14000362b
mov r8d, r13d
lea ecx, [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14000362b
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 0x140003622
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 0x1400037be
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_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1400037be
lea rdx, str.I_QueryTagInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400036ff
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 0x1400036ff
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 0x1400036e3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400036e3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400036c0
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 0x1400037be
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x50]
mov rdx, rbx
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140003720
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, [0x14005df48]
movzx eax, word [rcx + rbx*2 + 2]
cmp ax, word [rdx + rbx*2 + 2]
jne 0x1400037c0
add rbx, 2
cmp rbx, 9
je 0x140003764
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
je 0x140003742
jmp 0x1400037c0
mov edx, esi
lea rcx, str.____Get_eventlog_thread__d__t____try_to_kill
call fcn.140003330
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.140003330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1400037c0
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.140059f80
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret