Function at 0x140079f70
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x118
mov rax, qword [0x140413c00]
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 [0x1403b00b4]
movsx eax, al
mov dword [rsp + 0x3c], eax
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
call fcn.14007d120
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0x40], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14007a0db
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 0x14007a03f
mov qword [rsp + 0xc8], 1
jmp 0x14007a04b
mov qword [rsp + 0xc8], 0
cvtsi2sd xmm0, qword [rsp + 0xc8]
call fcn.14007e160
mov dword [rsp + 0x54], eax
movzx ecx, byte [0x1403b00b4]
movsx ecx, cl
mov dword [rsp + 0x48], ecx
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
call fcn.14007d120
movsx eax, al
shl eax, 2
mov dword [rsp + 0x4c], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x54]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14007a0db
xor eax, eax
cmp eax, 9
je 0x14007a0db
jmp 0x14007a43a
mov dword [rsp + 0xf0], 1
movzx eax, byte [0x1403b00b4]
movsx eax, al
mov dword [rsp + 0x58], eax
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
call fcn.14007d120
movsx eax, al
shl eax, 2
mov dword [rsp + 0x5c], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14007a223
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 0x14007a187
mov qword [rsp + 0xd0], 1
jmp 0x14007a193
mov qword [rsp + 0xd0], 0
cvtsi2sd xmm0, qword [rsp + 0xd0]
call fcn.14007e160
mov dword [rsp + 0x70], eax
movzx ecx, byte [0x1403b00b4]
movsx ecx, cl
mov dword [rsp + 0x64], ecx
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
call fcn.14007d120
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x68], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x70]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14007a223
xor eax, eax
cmp eax, 0xa
je 0x14007a223
jmp 0x14007a43a
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xfc], 2
movzx eax, byte [0x1403b00b4]
movsx eax, al
mov dword [rsp + 0x74], eax
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
call fcn.14007d120
movsx eax, al
mov dword [rsp + 0x78], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14007a396
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 0x14007a2e2
mov qword [rsp + 0xd8], 1
jmp 0x14007a2ee
mov qword [rsp + 0xd8], 0
cvtsi2sd xmm0, qword [rsp + 0xd8]
call fcn.14007e160
mov dword [rsp + 0x8c], eax
movzx ecx, byte [0x1403b00b4]
movsx ecx, cl
mov dword [rsp + 0x80], ecx
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
call fcn.14007d120
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x84], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x8c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14007a396
xor eax, eax
cmp eax, 1
je 0x14007a396
jmp 0x14007a43a
mov byte [rsp + 0x30], 1
xorps xmm0, xmm0
call fcn.14007e160
mov dword [rsp + 0x9c], eax
movzx ecx, byte [0x1403b00b4]
movsx ecx, cl
mov dword [rsp + 0x90], ecx
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x98], eax
call fcn.14007d120
movsx eax, al
shl eax, 1
mov dword [rsp + 0x94], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14007a43a
xor eax, eax
cmp eax, 7
jne 0x140079fa5
movzx eax, byte [0x1403b00b4]
movsx eax, al
mov dword [rsp + 0xa0], eax
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0xa0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa8], eax
call fcn.14007d120
movsx eax, al
shl eax, 1
mov dword [rsp + 0xa4], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14007a569
cvtsi2sd xmm0, qword [rsp + 0xe8]
call fcn.14007e160
mov dword [rsp + 0xb8], eax
movzx ecx, byte [0x1403b00b4]
movsx ecx, cl
mov dword [rsp + 0xac], ecx
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0xac]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xb4], eax
call fcn.14007d120
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0xb0], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0xb8]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14007a569
xor eax, eax
cmp eax, 8
je 0x14007a569
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x34], 0
jmp 0x14007a57d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, byte [0x1403b00b4]
movsx eax, al
mov dword [rsp + 0xbc], eax
call fcn.14007d150
movsx eax, al
mov ecx, dword [rsp + 0xbc]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc4], eax
call fcn.14007d120
movsx eax, al
shl eax, 2
mov dword [rsp + 0xc0], eax
call fcn.14001b4e0
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 [0x1403b00b3]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x1403b00b0]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.14007e160
cmp dword [rsp + 0x34], eax
jge 0x14007a62e
mov dword [rsp + 0x38], 0
jmp 0x14007a619
cmp dword [rsp + 0x38], 0x31
jae 0x14007a629
movzx eax, byte [rsp + 0x30]
jmp 0x14007a62e
jmp 0x14007a573
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14011cd30
add rsp, 0x118
ret