Function at 0x140008120
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address
Hide thread from debugger

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x1400ed140]
xor rax, rsp
mov qword [rbp + 0x230], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rbx
xor r9d, r9d
mov qword [rbp - 0x80], rbx
lea r8, [rsp + 0x70]
mov dword [rbp - 0x78], 0x40
mov edx, 0x1f0001
lea rcx, [rsp + 0x60]
movdqu xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtCreateMutant]
test eax, eax
mov ecx, ebx
cmovns rcx, qword [rsp + 0x60]
mov qword [0x1400f63a0], rcx
test rcx, rcx
je 0x1400084f5
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
lea r8d, [rbx + 0x18]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [0x1400f6388], rax
test rax, rax
je 0x1400084e3
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword gs:[0x30]
mov edx, dword [rcx + 0x10]
lea rcx, [rbp - 0x30]
xor edx, dword [rax + 0x48]
xor edx, 0x34365746
mov dword [rbp - 0x30], edx
call qword [sym.imp.ntdll.dll_RtlRandomEx]
lea r8, str.BaseNamedObjectsGlobalBluewater_08X
mov edx, 0x208
mov r9d, eax
lea rcx, [rbp + 0x20]
call fcn.140007640
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x28]
mov dword [rsp + 0x70], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
lea r9d, [rbx + 1]
mov qword [rsp + 0x78], rbx
lea r8, [rsp + 0x70]
mov dword [rbp - 0x78], 0x40
mov edx, 0x1f0003
mov byte [rsp + 0x20], bl
lea rcx, [rsp + 0x68]
movdqu xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
mov ecx, ebx
cmovns rcx, qword [rsp + 0x68]
mov qword [0x1400f6398], rcx
test rcx, rcx
jne 0x1400082bc
cmp qword [0x1400f6388], rbx
je 0x1400082a4
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [0x1400f6388]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x1400f6398]
mov rax, qword [0x1400f63a0]
test rax, rax
je 0x1400084fc
mov rcx, rax
jmp 0x1400084ef
mov rax, qword [0x1400f6388]
lea r8, [rbp - 0x60]
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x48], 0x1000
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x40], 0x1000
mov edx, 0x1fffff
mov qword [rsp + 0x38], rbx
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rax
lea rax, [0x140007720]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], rbx
mov dword [rbp - 0x48], 0x40
mov qword [rbp - 0x50], rbx
movdqu xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ntdll.dll_NtCreateThreadEx]
test eax, eax
js 0x140008397
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x18]
mov r9d, 0x30
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x140008397
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x2c]
mov r9d, 4
mov dword [rbp + 0x10], 0x10
lea edx, [r9 - 1]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
test eax, eax
js 0x140008397
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
test eax, eax
cmovns rbx, qword [rsp + 0x60]
mov qword [0x1400f6390], rbx
mov rbx, qword [0x1400f6398]
test rbx, rbx
jne 0x14000840a
cmp qword [0x1400f6388], rbx
je 0x1400083e0
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [0x1400f6388]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [0x1400f6398]
mov rcx, qword [0x1400f63a0]
test rcx, rcx
je 0x1400083f9
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [0x1400f6398]
test rbx, rbx
je 0x140008507
mov rcx, rbx
jmp 0x140008501
mov eax, ebx
cmp ebx, 0xfffffff4
jb 0x140008460
jne 0x14000842a
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
mov rbx, qword [rax + 0x30]
jmp 0x140008460
cmp eax, 0xfffffff5
jne 0x140008446
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
mov rbx, qword [rax + 0x28]
jmp 0x140008460
cmp eax, 0xfffffff6
jne 0x140008460
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
mov rbx, qword [rax + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ecx, eax
test eax, eax
je 0x14000851d
sub ecx, 0xc0
je 0x1400084a7
sub ecx, 0x41
je 0x140008460
cmp ecx, 1
je 0x1400084a7
test eax, eax
js 0x140008497
cmp eax, 0x101
je 0x140008460
jmp 0x1400084a7
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x1400f6390]
mov edx, 0xc0000001
call qword [sym.imp.ntdll.dll_NtTerminateThread]
cmp qword [0x1400f6388], 0
je 0x1400084e3
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [0x1400f6388]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x1400f63a0]
test rcx, rcx
je 0x1400084f5
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x1400f6398]
test rcx, rcx
je 0x140008507
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [0x1400f6390]
test rcx, rcx
je 0x140008519
call qword [sym.imp.ntdll.dll_NtClose]
xor al, al
jmp 0x14000851f
mov al, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400c27c0
mov rbx, qword [rsp + 0x350]
add rsp, 0x340
pop rbp
ret