Function at 0x140006450
Capabilities:
Acquire debug privileges
Set current directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1401150f8]
xor rax, rsp
mov qword [rbp + 0x258], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x40]
call fcn.1400c1990
mov r8d, 0x104
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r14d, r14d
mov qword [rbp - 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x30]
lea edx, [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea esi, [r14 + 1]
test eax, eax
je 0x140006531
lea r8, [rbp + 0x24]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp - 0x30]
test eax, eax
je 0x14000652b
mov dword [rbp + 0x20], esi
mov dword [rbp + 0x2c], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x30], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x30]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006599
lea r8, [rbp + 0x24]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp - 0x30]
test eax, eax
je 0x140006593
mov dword [rbp + 0x20], esi
mov dword [rbp + 0x2c], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x18], sendto
mov qword [rbp + 0x10], r14
mov byte [rbp], r14b
call fcn.14000d400
mov rcx, rax
call fcn.140010bf0
nop
call fcn.14000d400
mov rcx, rax
lea r8, [rbp]
movabs rdx, 0x8d18a03854d26995
call fcn.140011a40
test al, al
je 0x140006601
call fcn.14000d400
mov qword [rbp - 0x30], r14
lea r8, [rbp - 0x30]
movabs rdx, 0x8d18a0390acd8b3d
mov rcx, rax
call fcn.140011860
test al, al
je 0x140006601
mov esi, dword [rbp - 0x30]
jmp 0x140006687
xor eax, eax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov eax, esi
xor ecx, ecx
cpuid
mov r8d, eax
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x28], ecx
mov dword [rbp - 0x24], edx
mov eax, 0x431bde83
imul r8d
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul eax, edx, 0xf4240
sub r8d, eax
lea rdx, str.100_d
lea rcx, [rbp + 0x20]
call fcn.14000d930
cmp byte [rbp + 0x20], 0
jne 0x140006663
mov r8, r14
jmp 0x14000667a
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140006670
lea rdx, [rbp + 0x20]
lea rcx, [rbp]
call fcn.140001610
call fcn.14000d400
mov qword [rbp - 0x30], r14
lea r8, [rbp - 0x30]
movabs rdx, 0x8d18a038575897fe
mov rcx, rax
call fcn.140011860
mov edi, r14d
test al, al
cmovne edi, dword [rbp - 0x30]
lea rbx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rbx, qword [rbp]
call fcn.140002f30
mov rcx, rax
mov r9d, edi
mov r8, rbx
mov edx, esi
call fcn.140005f60
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r14
mov word [rbp - 0x20], r14w
lea rdx, [rbp - 0x20]
call fcn.14000d210
test al, al
je 0x140006741
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov r8d, 3
lea rcx, [rsp + 0x40]
call fcn.140007e90
nop
call fcn.140002f30
mov rcx, rax
mov rdx, qword [rsp + 0x40]
call fcn.140006090
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x140006741
call fcn.1400c4368
nop
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x14000675b
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.140003450
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r14
mov word [rbp - 0x20], r14w
call fcn.14000d400
mov rcx, rax
call fcn.140010fb0
nop
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x1400067d0
inc rax
mov rcx, qword [rbp]
cmp rax, 0x1000
jb 0x1400067cb
test cl, 0x1f
je 0x14000679e
call fcn.1400c459c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400067ad
call fcn.1400c459c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400067bc
call fcn.1400c459c
int3
cmp rcx, 0x27
jbe 0x1400067c8
call fcn.1400c459c
int3
mov rcx, rax
call fcn.1400c0268
mov al, 1
mov rcx, qword [rbp + 0x258]
xor rcx, rsp
call fcn.1400c0280
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret