Function at 0x14010f420
Capabilities:
Acquire debug privileges
Check for debugger via api
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rdx
mov r14, rcx
xor r12d, r12d
call qword [0x1401f20c8]
lea r13d, [r12 + 1]
test eax, eax
jne 0x14010f597
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14010f63b
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0x30]
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, rax
call qword [0x1401f21d8]
test eax, eax
jne 0x14010f766
mov rsi, qword [rbp + 8]
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14010f766
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], r12
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x14010f75d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x14010f75d
mov rax, qword [rbp - 0x50]
cmp qword [rbp - 0x48], rax
jle 0x14010f75d
mov rcx, rdi
call qword [0x1401f2070]
mov rcx, rbx
call qword [0x1401f2070]
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [rsp + 0x60], r12d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x14010f63b
cmp dword [rsp + 0x60], r12d
je 0x14010f63b
mov qword [rbp - 0x68], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x68]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14010f63b
mov r8, qword [rbp - 0x68]
mov rdx, qword [0x1401f2070]
lea rcx, [rsp + 0x78]
call fcn.140029d60
nop
lea r8, [rbp - 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14010f626
mov dword [rbp + 0x10], r13d
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], 2
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14010f626
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp byte [rsp + 0x78], 0
jne 0x14010f63b
mov rcx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x80]
call qword [case.0x1400309a4.0]
lea rax, [0x14010f900]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.14010fca0
nop
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [r15]
call qword [0x1401f2088]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14010f83c
mov dword [rsp + 0x50], r13d
nop dword [rax]
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14010f833
movzx eax, byte [rsp + 0x70]
test al, al
je 0x14010f6f4
cmp byte [rbx + 0xb8], 0
jne 0x14010f833
mov dword [rbp - 0x70], r12d
mov qword [rbp - 0x28], 0x64
test rbx, rbx
je 0x14010f8eb
test al, al
je 0x14010f71a
cmp byte [rbx + 0xb8], 0
jne 0x14010f8eb
lea rdi, [rbx + 0x20]
mov qword [rbp - 0x60], rdi
mov byte [rbp - 0x58], 0
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14010f8ac
mov byte [rbp - 0x58], 1
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x1400309a4.0]
test al, al
je 0x14010f774
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x14010f6d0
mov rcx, rdi
call qword [0x1401f2070]
mov rcx, rbx
call qword [0x1401f2070]
jmp 0x14010f63b
lea rcx, [rbx + 0x70]
mov r9, rbx
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x60]
call fcn.14010ff10
nop
test al, al
jne 0x14010f89a
cmp byte [rbp - 0x58], al
je 0x14010f7a0
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp dword [rsp + 0x50], 0x63
ja 0x14010f6d0
call fcn.140110b20
test al, al
je 0x14010f80e
mov ecx, r12d
mov dword [rsp + 0x50], ecx
mov rax, qword [0x1401f2c00]
test rax, rax
je 0x14010f80e
cmp qword [rax], rcx
je 0x14010f80e
mov rax, qword [rax + 8]
test rax, rax
je 0x14010f7eb
lea rdx, [rsp + 0x50]
mov ecx, 0x2ee3
call qword [case.0x1400309a4.0]
mov ecx, dword [rsp + 0x50]
jmp 0x14010f7f0
mov eax, 0x1b67
test eax, eax
jne 0x14010f80e
cmp ecx, 0x64
jle 0x14010f803
mov dword [rsp + 0x50], 0x64
jmp 0x14010f80e
cmp ecx, 1
cmovl ecx, r13d
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x70]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14010f6d0
mov rcx, rsi
call qword [0x1401f2070]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14010f861
cmp byte [rsp + 0x70], 0
je 0x14010f856
cmp byte [rax + 0xb8], 0
jne 0x14010f861
lea rcx, [rsp + 0x68]
call fcn.140094670
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14010f8c4
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010f8c4
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x14010f8b5
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
mov rax, qword [rax]
call qword [case.0x1400309a4.0]
jmp 0x14010f8c4
cmp byte [rbp - 0x58], 0
je 0x14010f833
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x14010f833
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rax, qword [rcx]
mov edx, r13d
mov rax, qword [rax]
call qword [case.0x1400309a4.0]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140160900
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 4
call fcn.140094450
int3