Function at 0x140005d70
Capabilities:
Acquire debug privileges
Create process on windows
Get common file path
Impersonate user

Disassembly:
mov dword [rsp + 8], ecx
push rsi
push rdi
mov eax, 0x1278
call fcn.140017e60
sub rsp, rax
mov qword [rsp + 0x2f0], 0xfffffffffffffffe
mov rax, qword [0x140051080]
xor rax, rsp
mov qword [rsp + 0x1260], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x2b0]
call fcn.140007ab0
nop
mov qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140005ea2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x5c0]
call fcn.140003c40
mov qword [rsp + 0x288], rax
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x290], rax
mov rcx, qword [rsp + 0x290]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.OpenProcessToken_GetCurrentProcess____TOKEN_ALL_ACCESS__hToken__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x5c0]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140005ea2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x2bc
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
jmp 0x140007270
lea rdx, str.SeTcbPrivilege
mov rcx, qword [rsp + 0x78]
call fcn.140003d80
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rsp + 0x78]
call fcn.140003d80
cmp qword [rsp + 0x78], 0
je 0x140005ee8
cmp qword [rsp + 0x78], 0xffffffffffffffff
je 0x140005ee8
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], 0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x138], rax
cmp qword [rsp + 0x138], 0
jne 0x140005fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x5e0]
call fcn.140003c40
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.LoadLibraryW_L_Advapi32.dll___failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x5e0]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140005fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 2
mov r8d, 0x2c8
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 2
jmp 0x140007270
lea rdx, str.LogonUserExExW
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 0
jne 0x140006060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x3e0]
call fcn.140003c40
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x170]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.GetProcAddress_hMod___LogonUserExExW___failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x3e0]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140006060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 3
mov r8d, 0x2cf
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 3
jmp 0x140007270
lea rcx, [rsp + 0xa0]
call fcn.140007ab0
nop
lea rcx, [rsp + 0xa0]
call fcn.140004500
lea rdx, [rsp + 0x80]
mov ecx, dword [rsp + 0x1290]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140006140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x400]
call fcn.140003c40
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0x180]
call fcn.1400081b0
mov r8, rax
mov edx, dword [rsp + 0x1290]
lea rcx, str.WTSQueryUserToken__u__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x400]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140006140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x2d8
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
mov dword [rsp + 0x64], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rsp + 0x64], 0
ja 0x140006217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x420]
call fcn.140003c40
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x190], rax
mov rcx, qword [rsp + 0x190]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.GetTokenInformation_TokenUser__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x420]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140006217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x2e0
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
lea rcx, [rsp + 0x8c]
call fcn.1400018f0
mov ecx, dword [rsp + 0x64]
mov r8, rax
mov edx, ecx
lea rcx, [rsp + 0x100]
call fcn.140007a30
nop
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140007960
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x64]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140006326
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x440]
call fcn.140003c40
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a0], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.GetTokenInformation_TokenUser__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x440]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140006326
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x2e7
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140007960
lea rcx, [rsp + 0x2e0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x600]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x810]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0xa20]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x120], 0x103
mov dword [rsp + 0x11c], 0x103
mov dword [rsp + 0x118], 1
lea rax, [rsp + 0x118]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x11c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x810]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x120]
lea r8, [rsp + 0x600]
mov rdx, qword [rsp + 0x2e0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1400064a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x460]
call fcn.140003c40
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x1b0], rax
mov rcx, qword [rsp + 0x1b0]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.LookupAccountSid___failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x460]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x1400064a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x2f7
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
lea r8, [rsp + 0xa20]
lea rdx, [rsp + 0x810]
lea rcx, [rsp + 0x600]
call fcn.1400042e0
mov dword [rsp + 0x64], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rsp + 0x64], 0
ja 0x1400065a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x480]
call fcn.140003c40
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x1c0], rax
mov rcx, qword [rsp + 0x1c0]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.GetTokenInformation_TokenGroups__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x480]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x1400065a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x301
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
mov eax, dword [rsp + 0x64]
mov edx, eax
lea rcx, [rsp + 0x100]
call fcn.140007990
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140007960
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x64]
mov r8, rax
mov edx, 2
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400066a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x4a0]
call fcn.140003c40
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.GetTokenInformation_TokenGroups__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x4a0]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x1400066a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x308
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140007960
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x88], 0
jmp 0x1400066d9
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x140]
mov eax, dword [rax]
cmp dword [rsp + 0x88], eax
jae 0x140006836
mov eax, dword [rsp + 0x88]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x140]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 8]
and eax, 0xc0000000
cmp eax, 0xc0000000
je 0x140006729
jmp 0x1400066c9
mov qword [rsp + 0xc0], 0
lea rdx, [rsp + 0xc0]
mov rax, qword [rsp + 0x148]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
cmp qword [rsp + 0xc0], 0
jne 0x14000675e
jmp 0x1400066c9
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0xa0]
call fcn.140007ba0
mov qword [rsp + 0x1d8], rax
lea rdx, [rsp + 0x2c8]
lea rcx, [rsp + 0xa0]
call fcn.140007c00
lea r9, [rsp + 0xc0]
mov rcx, qword [rsp + 0x1d8]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0x2d0]
call fcn.1400104f0
mov qword [rsp + 0x1e0], rax
lea rdx, [rsp + 0x2d8]
lea rcx, [rsp + 0xa0]
call fcn.140007ba0
mov rcx, qword [rsp + 0x1e0]
mov rdx, rcx
mov rcx, rax
call fcn.140007910
movzx eax, al
test eax, eax
je 0x140006823
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x3c0]
call fcn.140008380
nop
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0xa0]
call fcn.140007c60
nop
lea rcx, [rsp + 0x3c0]
call fcn.1400082c0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400066c9
lea rcx, [rsp + 0xa0]
call fcn.140007b50
movzx eax, al
test eax, eax
jne 0x1400069b2
lea rcx, [rsp + 0xa0]
call fcn.140007b10
dec rax
imul rax, rax, 0x10
add rax, 0x18
mov qword [rsp + 0x1e8], rax
mov rdx, qword [rsp + 0x1e8]
lea rcx, [rsp + 0x2b0]
call fcn.140007990
xor edx, edx
lea rcx, [rsp + 0x2b0]
call fcn.140007960
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xa0]
call fcn.140007b10
mov rcx, qword [rsp + 0x70]
mov dword [rcx], eax
mov qword [rsp + 0x90], 0
jmp 0x1400068cc
mov rax, qword [rsp + 0x90]
inc rax
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xa0]
call fcn.140007b10
cmp qword [rsp + 0x90], rax
jae 0x140006985
imul rax, qword [rsp + 0x90], 0x10
mov rcx, qword [rsp + 0x70]
mov dword [rcx + rax + 0x10], 7
imul rax, qword [rsp + 0x90], 0x10
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0x1f0], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xa0]
call fcn.140007ae0
mov rcx, rax
call fcn.1400081b0
mov rcx, qword [rsp + 0x1f0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x140006980
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x323
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
jmp 0x140006985
jmp 0x1400068b9
mov eax, dword [rsp + 0x60]
and eax, 0xfff
test eax, eax
je 0x1400069b2
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
mov qword [rsp + 0xc8], 0
lea r9, [rsp + 0xc8]
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x810]
lea rcx, [rsp + 0x600]
call fcn.140005140
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
and eax, 0xfff
test eax, eax
jne 0x1400069f6
jmp 0x140006bd1
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 2
lea r8, [rsp + 0xa20]
lea rdx, [rsp + 0x810]
lea rcx, [rsp + 0x600]
call qword [rsp + 0x130]
test eax, eax
je 0x140006a6f
mov dword [rsp + 0x60], 0
jmp 0x140006bd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x4c0]
call fcn.140003c40
mov qword [rsp + 0x1f8], rax
mov rax, qword [rsp + 0x1f8]
mov qword [rsp + 0x200], rax
mov rcx, qword [rsp + 0x200]
call fcn.1400081b0
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa20]
lea r8, [rsp + 0x810]
lea rdx, [rsp + 0x600]
lea rcx, str.LogonUserExExW__s___s___s__LOGON32_LOGON_INTERACTIVE__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x4c0]
call fcn.1400082c0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 9
lea r8, [rsp + 0xa20]
lea rdx, [rsp + 0x810]
lea rcx, [rsp + 0x600]
call qword [rsp + 0x130]
test eax, eax
je 0x140006b56
mov dword [rsp + 0x60], 0
jmp 0x140006bd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x4e0]
call fcn.140003c40
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x210]
call fcn.1400081b0
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa20]
lea r8, [rsp + 0x810]
lea rdx, [rsp + 0x600]
lea rcx, str.LogonUserExExW__s___s___s__LOGON32_LOGON_NEW_CREDENTIALS__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x4e0]
call fcn.1400082c0
xor eax, eax
test eax, eax
jne 0x1400069be
mov eax, dword [rsp + 0x60]
and eax, 0xfff
test eax, eax
je 0x140006bfe
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140006cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x500]
call fcn.140003c40
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x220], rax
mov rcx, qword [rsp + 0x220]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.DuplicateTokenEx_failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x500]
call fcn.1400082c0
xor eax, eax
cmp eax, 1
je 0x140006cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x357
lea rdx, str.d:_basecodeepm13.5_20190424_spacerecall_spacerecall_spacerecall_adjustprivileges.hpp
lea rcx, str.file:__S__line:__d__error__Ox_x__lasterr___d
call fcn.140003ac0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
jmp 0x140007270
mov r9d, 4
lea r8, [rsp + 0x1290]
mov edx, 0xc
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140006d75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x520]
call fcn.140003c40
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x230], rax
mov rcx, qword [rsp + 0x230]
call fcn.1400081b0
mov r8, rax
mov edx, dword [rsp + 0x1290]
lea rcx, str.SetTokenInformation_TokenSessionId___u__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x520]
call fcn.1400082c0
mov qword [rsp + 0xe8], 0
mov r8d, 1
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140006df8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x540]
call fcn.140003c40
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x240], rax
mov rcx, qword [rsp + 0x240]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.CreateEnvironmentBlock_failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x540]
call fcn.1400082c0
mov dword [rsp + 0x124], 0x104
lea rax, [rsp + 0xc30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea r8, [rsp + 0x124]
lea rdx, [rsp + 0xc30]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140006e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x560]
call fcn.140003c40
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x248]
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x250]
call fcn.1400081b0
mov rdx, rax
lea rcx, str.GetUserProfileDirectory_failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x560]
call fcn.1400082c0
lea rax, [rsp + 0x1050]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea r9, [rsp + 0x600]
lea r8, [rsp + 0x810]
lea rdx, str._s_s
lea rcx, [rsp + 0x1050]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x300]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov dword [rsp + 0x300], 0x38
lea rax, [rsp + 0x1050]
mov qword [rsp + 0x308], rax
mov qword [rsp + 0xd0], 0
lea r9, [rsp + 0xd0]
mov r8d, 3
lea rdx, [rsp + 0x600]
lea rcx, [rsp + 0x810]
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
je 0x140006f5f
mov r9d, dword [rsp + 0xb8]
lea r8, [rsp + 0x600]
lea rdx, [rsp + 0x810]
lea rcx, str.NetUserGetInfo__s_s__failed__NetStatus__0x_x
call fcn.140003ac0
jmp 0x140006f76
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x310], rax
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x140006ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x580]
call fcn.140003c40
mov qword [rsp + 0x258], rax
mov rax, qword [rsp + 0x258]
mov qword [rsp + 0x260], rax
mov rcx, qword [rsp + 0x260]
call fcn.1400081b0
mov r9, rax
lea r8, [rsp + 0x600]
lea rdx, [rsp + 0x810]
lea rcx, str.LoadUserProfile__s_s__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x580]
call fcn.1400082c0
cmp qword [rsp + 0xd0], 0
je 0x140007010
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
lea rcx, [rsp + 0x298]
call fcn.140007ab0
nop
lea rcx, [rsp + 0x298]
call fcn.140003f30
mov qword [rsp + 0xd8], 0
jmp 0x14000704c
mov rax, qword [rsp + 0xd8]
inc rax
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0x298]
call fcn.140007b10
cmp qword [rsp + 0xd8], rax
jae 0x140007223
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x298]
call fcn.140007ae0
mov qword [rsp + 0x268], rax
lea rax, [rsp + 0x350]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x350], 0x68
lea rax, [rsp + 0x338]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0xe40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x268]
call fcn.1400081b0
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0xe40]
call fcn.14001fe24
lea rax, [rsp + 0xc30]
mov qword [rsp + 0x270], rax
mov qword [rsp + 0xe0], 0xffffffffffffffff
inc qword [rsp + 0xe0]
mov rax, qword [rsp + 0x270]
mov rcx, qword [rsp + 0xe0]
cmp word [rax + rcx*2], 0
jne 0x140007109
mov rax, qword [rsp + 0xe0]
test rax, rax
jbe 0x140007147
lea rax, [rsp + 0xc30]
mov qword [rsp + 0x150], rax
jmp 0x140007153
mov qword [rsp + 0x150], 0
lea rax, [rsp + 0x338]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x350]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xe40]
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000721e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x5a0]
call fcn.140003c40
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x280], rax
mov rcx, qword [rsp + 0x280]
call fcn.1400081b0
mov r8, rax
lea rdx, [rsp + 0xe40]
lea rcx, str.CreateProcessAsUser__s__failed__err___s
call fcn.140003ac0
nop
lea rcx, [rsp + 0x5a0]
call fcn.1400082c0
jmp 0x140007039
cmp qword [rsp + 0xe8], 0
je 0x14000723d
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop
lea rcx, [rsp + 0x298]
call fcn.140007f20
nop
lea rcx, [rsp + 0x100]
call fcn.140007a00
nop
lea rcx, [rsp + 0xa0]
call fcn.140007f20
xor eax, eax
test eax, eax
jne 0x140005ded
cmp qword [rsp + 0x70], 0
je 0x1400072ca
mov dword [rsp + 0x68], 0
jmp 0x14000728c
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rsp + 0x68], eax
jae 0x1400072ca
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x70]
cmp qword [rcx + rax + 8], 0
jne 0x1400072b0
jmp 0x1400072ca
mov eax, dword [rsp + 0x68]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140007282
cmp qword [rsp + 0x80], 0
je 0x1400072fa
cmp qword [rsp + 0x80], 0xffffffffffffffff
je 0x1400072fa
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x80], 0
cmp qword [rsp + 0x78], 0
je 0x14000731e
cmp qword [rsp + 0x78], 0xffffffffffffffff
je 0x14000731e
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0xf0], 0
je 0x14000734e
cmp qword [rsp + 0xf0], 0xffffffffffffffff
je 0x14000734e
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xf0], 0
cmp qword [rsp + 0xf8], 0
je 0x14000737e
cmp qword [rsp + 0xf8], 0xffffffffffffffff
je 0x14000737e
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xf8], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x128], eax
lea rcx, [rsp + 0x2b0]
call fcn.140007a00
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x1260]
xor rcx, rsp
call fcn.140017790
add rsp, 0x1278
pop rdi
pop rsi
ret