Function at 0x140001070
Capabilities:
Accept command line arguments
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r14d, r14d
lea rdx, [rbp + 0x47]
mov rcx, rax
mov dword [rbp + 0x47], r14d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea rcx, str.1000
mov rdx, qword [rax + 8]
test rdx, rdx
cmovne rcx, rdx
call fcn.1400055bc
mov r8d, eax
mov qword [rbp + 0x2f], r14
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [0x140020bf0], r14d
mov rsi, rax
je 0x140001118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x140001118
mov r8d, eax
lea rdx, [0x14001c7b0]
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
lea r8, [rbp + 0x27]
mov qword [rbp + 0x27], r14
mov edx, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [0x140020bf0], r14d
mov dword [0x140020c14], eax
je 0x14000116a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x14000116a
mov r8d, eax
lea rdx, [0x14001c7c8]
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
xor r9d, r9d
mov qword [rsp + 0xa0], rdi
xor r8d, r8d
mov dword [rbp + 0x17], r14d
cmp dword [0x140020c14], r14d
lea rax, [rbp + 0x17]
mov rbx, r14
mov qword [rsp + 0x20], rax
je 0x140001350
mov rcx, qword [rbp + 0x27]
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [0x140020bf0], ebx
mov dword [0x140020c14], eax
je 0x1400011de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x1400011de
mov r8d, eax
lea rdx, [0x14001c7f0]
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
mov rcx, qword [rbp + 0x27]
lea rax, [rbp + 0x17]
xor r9d, r9d
mov dword [rbp + 0x17], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x14000121d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001591
mov r9d, dword [rbp + 0x17]
lea rax, [rbp + 0x17]
mov rcx, qword [rbp + 0x27]
mov r8, rdi
mov edx, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
movsxd rbx, dword [rdi]
lea rcx, str.Number_of_process_privileges:__d_n
mov edx, ebx
call fcn.140001010
mov rsi, rbx
test ebx, ebx
jle 0x1400012cf
add rdi, 4
nop dword [rax + rax]
movsd xmm0, qword [rdi]
lea r9, [rbp + 0x37]
movsd qword [rbp + 7], xmm0
lea rdx, [rbp + 0x3f]
mov rax, qword [rbp + 7]
xor r8d, r8d
xor ecx, ecx
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x37], r14d
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
movsxd rdx, dword [rbp + 0x37]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea r9, [rbp + 0x37]
xor ecx, ecx
mov r8, rax
lea rdx, [rbp + 0x3f]
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
mov rdx, rbx
lea rcx, [0x14001c868]
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rdi, [rdi + 0xc]
sub rsi, 1
jne 0x140001260
mov edx, dword [rbp + 0x17]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rbp + 0x17]
mov edx, 4
mov rcx, qword [rbp + 0x27]
mov rbx, rax
lea rax, [rbp + 0x17]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [0x140020bf0], r14d
mov dword [0x140020c14], eax
je 0x14000133b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x14000133b
mov r8d, eax
lea rdx, str.GetTokenInformation1
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
test rbx, rbx
je 0x14000146c
mov rdx, qword [rbx]
mov qword [rbp + 0x2f], rdx
jmp 0x140001467
lea rdx, [rbp + 0x37]
mov dword [rbp + 0x37], 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetUserObjectSecurity]
cmp dword [0x140020bf0], ebx
mov dword [0x140020c14], eax
je 0x14000139f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x14000139f
mov r8d, eax
lea rdx, [0x14001c8a0]
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
mov edx, dword [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rbp + 0x17]
lea rdx, [rbp + 0x37]
mov rdi, rax
mov rcx, rsi
lea rax, [rbp + 0x17]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_GetUserObjectSecurity]
cmp dword [0x140020bf0], ebx
mov dword [0x140020c14], eax
je 0x140001405
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x140001405
mov r8d, eax
lea rdx, str.GetUserObjectSecurity1
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
mov dword [rbp + 0x3f], r14d
test rdi, rdi
je 0x140001425
lea r8, [rbp + 0x3f]
mov rcx, rdi
lea rdx, [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
mov dword [0x140020c14], eax
cmp dword [0x140020bf0], ebx
je 0x14000145a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x14000145a
mov r8d, eax
lea rdx, [0x14001c900]
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdx, qword [rbp + 0x2f]
test rdx, rdx
jne 0x140001476
mov eax, 1
jmp 0x140001591
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f]
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov dword [rbp + 0x1f], r14d
mov dword [rbp + 0x1b], r14d
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp dword [0x140020bf0], r14d
mov dword [0x140020c14], eax
je 0x1400014dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x1400014dc
mov r8d, eax
lea rdx, [0x14001c938]
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
mov edx, dword [rbp + 0x1f]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [rbp + 0x1b]
xor ecx, ecx
add rdx, rdx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdx, qword [rbp + 0x2f]
lea r9, [rbp + 0x1f]
mov rsi, rax
mov qword [rsp + 0x30], r14
lea rax, [rbp + 0x1b]
mov r8, rdi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp dword [0x140020bf0], r14d
mov dword [0x140020c14], eax
je 0x140001560
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140020c10], eax
test eax, eax
je 0x140001560
mov r8d, eax
lea rdx, str.LookupAccountSidW1
lea rcx, str._s_error__d_n
call fcn.140001010
mov dword [0x140020c10], r14d
mov rdx, rdi
lea rcx, str.Process_owner_name:__s_n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rbx, rbx
je 0x14000158f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400015d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret