Function at 0x140003940
Capabilities:
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400eb0c0]
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 0x1400039a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea rcx, str.OpenThread_:__u_Error__ErrorCode:_u_n
mov r8d, eax
call fcn.140003810
xor eax, eax
jmp 0x140003cc8
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.140003810
xorps xmm0, xmm0
mov dword [rsp + 0x70], ebx
lea rcx, [0x1400d07e8]
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 0x140003c9e
mov r8d, esi
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x140003b14
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 0x140003b0b
mov r8d, r13d
lea ecx, [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140003b0b
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 0x140003b02
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 0x140003c9e
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 0x140003c9e
lea rdx, str.I_QueryTagInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003bdf
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 0x140003bdf
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 0x140003bc3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003bc3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003ba0
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 0x140003c9e
mov rbx, 0xffffffffffffffff
lea rax, [rbp - 0x50]
mov rdx, rbx
nop
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140003c00
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, [0x1400d0880]
movzx eax, word [rcx + rbx*2 + 2]
cmp ax, word [rdx + rbx*2 + 2]
jne 0x140003ca0
add rbx, 2
cmp rbx, 9
je 0x140003c44
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
je 0x140003c22
jmp 0x140003ca0
mov edx, esi
lea rcx, str.____Get_eventlog_thread__d__t____try_to_kill
call fcn.140003810
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.140003810
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x140003ca0
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.1400bcc60
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret