Function at 0x1400674e0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x118
mov rax, qword [0x1403f4280]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xe0], 0
movzx eax, byte [0x1403900a4]
movsx eax, al
mov dword [rsp + 0x3c], eax
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
call fcn.140069870
movsx eax, al
shl eax, 2
mov dword [rsp + 0x40], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x40]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14006764b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xe8]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400675af
mov qword [rsp + 0xc8], 1
jmp 0x1400675bb
mov qword [rsp + 0xc8], 0
cvtsi2sd xmm0, qword [rsp + 0xc8]
call fcn.140069b80
mov dword [rsp + 0x54], eax
movzx ecx, byte [0x1403900a4]
movsx ecx, cl
mov dword [rsp + 0x48], ecx
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0x4c], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x4c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x54]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14006764b
xor eax, eax
cmp eax, 4
je 0x14006764b
jmp 0x1400679ab
mov dword [rsp + 0xf0], 1
movzx eax, byte [0x1403900a4]
movsx eax, al
mov dword [rsp + 0x58], eax
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x5c], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x5c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140067793
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0xf4]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400676f7
mov qword [rsp + 0xd0], 1
jmp 0x140067703
mov qword [rsp + 0xd0], 0
cvtsi2sd xmm0, qword [rsp + 0xd0]
call fcn.140069b80
mov dword [rsp + 0x70], eax
movzx ecx, byte [0x1403900a4]
movsx ecx, cl
mov dword [rsp + 0x64], ecx
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0x68], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x68]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x70]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140067793
xor eax, eax
cmp eax, 1
je 0x140067793
jmp 0x1400679ab
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xfc], 2
movzx eax, byte [0x1403900a4]
movsx eax, al
mov dword [rsp + 0x74], eax
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x78], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x78]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140067906
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0xf0]
xor edx, edx
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140067855
mov qword [rsp + 0xd8], 1
jmp 0x140067861
mov qword [rsp + 0xd8], 0
cvtsi2sd xmm0, qword [rsp + 0xd8]
call fcn.140069b80
mov dword [rsp + 0x8c], eax
movzx ecx, byte [0x1403900a4]
movsx ecx, cl
mov dword [rsp + 0x80], ecx
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
call fcn.140069870
movsx eax, al
mov dword [rsp + 0x84], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x84]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x8c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140067906
xor eax, eax
cmp eax, 2
je 0x140067906
jmp 0x1400679ab
mov byte [rsp + 0x30], 1
xorps xmm0, xmm0
call fcn.140069b80
mov dword [rsp + 0x9c], eax
movzx ecx, byte [0x1403900a4]
movsx ecx, cl
mov dword [rsp + 0x90], ecx
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x98], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 7
mov dword [rsp + 0x94], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0x94]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x1400679ab
xor eax, eax
cmp eax, 2
jne 0x140067515
movzx eax, byte [0x1403900a4]
movsx eax, al
mov dword [rsp + 0xa0], eax
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0xa0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa8], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0xa4], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0xa4]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xa8]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140067adb
cvtsi2sd xmm0, qword [rsp + 0xe8]
call fcn.140069b80
mov dword [rsp + 0xb8], eax
movzx ecx, byte [0x1403900a4]
movsx ecx, cl
mov dword [rsp + 0xac], ecx
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0xac]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xb4], eax
call fcn.140069870
movsx eax, al
shl eax, 3
mov dword [rsp + 0xb0], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0xb0]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xb4]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0xb8]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140067adb
xor eax, eax
cmp eax, 9
je 0x140067adb
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x34], 0
jmp 0x140067aef
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, byte [0x1403900a4]
movsx eax, al
mov dword [rsp + 0xbc], eax
call fcn.1400698a0
movsx eax, al
mov ecx, dword [rsp + 0xbc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc4], eax
call fcn.140069870
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0xc0], eax
call fcn.140017ac0
movsx eax, al
mov ecx, dword [rsp + 0xc0]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xc4]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x1403900a3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403900a0]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.140069b80
cmp dword [rsp + 0x34], eax
jge 0x140067ba0
mov dword [rsp + 0x38], 0
jmp 0x140067b8b
cmp dword [rsp + 0x38], 0xe
jae 0x140067b9b
movzx eax, byte [rsp + 0x30]
jmp 0x140067ba0
jmp 0x140067ae5
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140100260
add rsp, 0x118
ret