Function at 0x180001bbc
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
xor r12d, r12d
lea rdi, [rbp - 0x40]
mov dword [rbp + 0x260], r12d
lea rdx, [rbp - 0x40]
mov rax, qword gs:[0x30]
lea r14, str.Unknown
mov rcx, qword [rax + 0x60]
xor eax, eax
mov r15d, dword [rcx + 0x2c0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov edi, 0x104
mov dword [rbp + 0x268], r15d
mov r8d, edi
mov qword [rbp + 0x270], r12
xor ecx, ecx
mov qword [rsp + 0x38], r12
mov qword [rbp + 0x278], r12
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1800024bc
mov rax, qword gs:[0x30]
lea edx, [r12 + 8]
mov r8d, 0x2000
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1800024bc
lea r13d, [r12 + 2]
mov eax, edi
mov rcx, rbx
cmp word [rbp - 0x40], r12w
je 0x180001cb0
lea rdx, [rbp - 0x40]
sub rdx, rbx
lea rdi, [rax - 1]
test rdi, rdi
je 0x180001cb0
test rax, rax
je 0x180001cb0
movzx eax, word [rdx + rcx]
mov word [rcx], ax
add rcx, r13
mov rax, rdi
cmp word [rdx + rcx], r12w
jne 0x180001c8e
xor eax, eax
mov word [rcx], r12w
lea rdi, [rbp - 0x70]
lea r8, [rbp - 0x70]
lea edx, [rax + 0x30]
mov ecx, edx
mov r9d, edx
rep stosb byte [rdi], al
lea rax, [rbp + 0x260]
or rcx, 0xffffffffffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQuer]
test eax, eax
js 0x180001eab
lea rdx, str._r_nInherited_from_PID
lea rcx, [rbp - 0x40]
call fcn.18000271c
movzx ecx, word [rbp - 0x40]
lea rdi, [rbp - 0x40]
test cx, cx
je 0x180001d0e
add rdi, r13
cmp word [rdi], r12w
jne 0x180001d05
mov r10, qword [rbp - 0x48]
movabs rsi, 0xcccccccccccccccd
mov r9d, 1
cmp r10, 0xa
jb 0x180001d3e
mov rdx, r10
mov rax, rsi
inc r9
mul rdx
shr rdx, 3
cmp rdx, 0xa
jae 0x180001d2b
test rdi, rdi
je 0x180001d98
lea r8, [r9 + r9]
test r9, r9
je 0x180001d8f
lea r11, [rdi - 2]
mov r15d, 0x30
add r11, r8
mov rax, rsi
mul r10
shr rdx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r10w, cx
add r10w, r15w
mov word [r11], r10w
sub r11, r13
mov r10, rdx
sub r9, 1
jne 0x180001d59
mov r15d, dword [rbp + 0x268]
mov word [r8 + rdi], r12w
movzx ecx, word [rbp - 0x40]
mov rax, rbx
cmp word [rbx], r12w
je 0x180001daa
add rax, r13
cmp word [rax], r12w
jne 0x180001da1
test cx, cx
je 0x180001dc5
lea rdx, [rbp - 0x40]
sub rdx, rax
mov word [rax], cx
add rax, r13
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x180001db6
lea rdx, [0x180004314]
mov word [rax], r12w
mov rcx, rbx
call fcn.180002670
xor eax, eax
lea rdi, [rbp - 0x40]
mov ecx, 0x20a
mov esi, r12d
rep stosb byte [rdi], al
call fcn.180001778
mov rdi, rax
test rax, rax
je 0x180001e8d
mov rcx, qword [rbp - 0x48]
mov r8, rax
cmp qword [rax + 0x50], rcx
je 0x180001e17
cmp dword [r8], r12d
je 0x180001e36
mov eax, dword [r8]
add r8, rax
cmp qword [r8 + 0x50], rcx
jne 0x180001e06
movzx r9d, word [r8 + 0x38]
lea rcx, [rbp - 0x40]
mov r8, qword [r8 + 0x40]
mov edx, 0x104
shr r9, 1
call fcn.18000275c
mov esi, 1
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
je 0x180001e8d
mov rax, rbx
cmp word [rbx], r12w
je 0x180001e68
add rax, r13
cmp word [rax], r12w
jne 0x180001e5f
movzx ecx, word [rbp - 0x40]
test cx, cx
je 0x180001e87
lea rdx, [rbp - 0x40]
sub rdx, rax
mov word [rax], cx
add rax, r13
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x180001e78
mov word [rax], r12w
jmp 0x180001e9c
lea rdx, str.Non_existent_Process
mov rcx, rbx
call fcn.180002670
lea rdx, [0x18000434c]
mov rcx, rbx
call fcn.180002670
lea r8, [rbp + 0x270]
mov edx, 8
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtOp]
test eax, eax
js 0x1800023e0
mov rcx, qword [rbp + 0x270]
lea rax, [rbp + 0x260]
xor r9d, r9d
mov dword [rbp + 0x260], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edi, [r9 + 0x19]
mov edx, edi
call qword [sym.imp.ntdll.dll_NtQuer_1]
cmp eax, 0xc0000023
jne 0x1800020b3
mov rax, qword gs:[0x30]
lea edx, [rdi - 0x11]
mov r8d, dword [rbp + 0x260]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x1800020b3
mov r9d, dword [rbp + 0x260]
lea rax, [rbp + 0x260]
mov rcx, qword [rbp + 0x270]
mov r8, rsi
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQuer_1]
test eax, eax
js 0x180002097
mov rcx, qword [rsi]
call qword [sym.imp.ntdll.dll_RtlS_1]
mov cl, byte [rax]
dec cl
movzx edx, cl
mov rcx, qword [rsi]
call qword [sym.imp.ntdll.dll_RtlS]
cmp dword [rax], r12d
jne 0x180001f81
lea r14, [0x180004350]
jmp 0x180001fd4
cmp dword [rax], 0x1000
jne 0x180001f92
lea r14, str.LowIL
jmp 0x180001fd4
cmp dword [rax], 0x2000
jb 0x180001fd4
cmp dword [rax], 0x3000
jae 0x180001fab
lea r14, str.MediumIL
jmp 0x180001fd4
cmp dword [rax], 0x4000
jae 0x180001fbc
lea r14, str.HighIL
jmp 0x180001fd4
cmp dword [rax], 0x5000
lea r14, str.SystemIL
lea rcx, str.ProtectedProcessIL
cmovae r14, rcx
lea rdx, str._r_nPID
lea rcx, [rbp - 0x40]
call fcn.18000271c
lea rdi, [rbp - 0x40]
cmp word [rbp - 0x40], r12w
je 0x180001ff8
add rdi, r13
cmp word [rdi], r12w
jne 0x180001fef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov rdx, rdi
call fcn.1800010e8
lea rax, [rbp - 0x40]
cmp word [rbp - 0x40], r12w
je 0x18000201c
add rax, r13
cmp word [rax], r12w
jne 0x180002013
lea rdx, [0x1800043f0]
mov ecx, 0x2c
sub rdx, rax
mov word [rax], cx
add rax, r13
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x18000202b
mov word [rax], r12w
lea rcx, [rbp - 0x40]
cmp word [rbp - 0x40], r12w
je 0x180002052
add rcx, r13
cmp word [rcx], r12w
jne 0x180002049
mov edx, 0x28
mov r8, r14
mov r9d, edx
call fcn.18000275c
mov rcx, rbx
cmp word [rbx], r12w
je 0x180002074
add rcx, r13
cmp word [rcx], r12w
jne 0x18000206b
movzx eax, word [rbp - 0x40]
test ax, ax
je 0x180002093
lea rdx, [rbp - 0x40]
sub rdx, rcx
mov word [rcx], ax
add rcx, r13
movzx eax, word [rdx + rcx]
test ax, ax
jne 0x180002084
mov word [rcx], r12w
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x270]
lea rax, [rbp + 0x260]
xor r9d, r9d
mov dword [rbp + 0x260], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtQuer_1]
mov esi, 0xc
cmp eax, 0xc0000023
jne 0x180002307
mov rax, qword gs:[0x30]
lea edx, [rsi - 4]
mov r8d, dword [rbp + 0x260]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180002307
mov r9d, dword [rbp + 0x260]
lea rax, [rbp + 0x260]
mov rcx, qword [rbp + 0x270]
lea edx, [rsi - 0xb]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQuer_1]
test eax, eax
js 0x1800022eb
lea eax, [rsi + 0x24]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x60], eax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], r13d
mov r8d, 0x800
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x60]
mov word [rsp + 0x48], 1
xor ecx, ecx
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_LsaOp]
test eax, eax
js 0x1800022eb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rbp + 0x278]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea edx, [rsi - 0xb]
call qword [sym.imp.ADVAPI32.dll_LsaLo]
test eax, eax
js 0x1800022b6
cmp eax, 0x107
je 0x1800022b6
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x180002258
mov word [rbp - 0x40], r12w
lea rcx, [rbp - 0x40]
mov r8, qword [rax + 8]
mov edx, 0x104
movzx r9d, word [r8]
mov r8, qword [r8 + 8]
shr r9, 1
call fcn.18000275c
lea rdx, [0x1800043f8]
mov rcx, rbx
call fcn.180002670
mov rax, rbx
cmp word [rbx], r12w
je 0x18000221f
add rax, r13
cmp word [rax], r12w
jne 0x180002216
movzx ecx, word [rbp - 0x40]
test cx, cx
je 0x18000223e
lea rdx, [rbp - 0x40]
sub rdx, rax
mov word [rax], cx
add rax, r13
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x18000222f
lea rdx, [0x180004400]
mov word [rax], r12w
mov rcx, rbx
call fcn.180002670
mov rax, qword [rbp + 0x278]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800022c2
mov word [rbp - 0x40], r12w
mov edx, 0x104
movzx r9d, word [rcx + 8]
mov r8, qword [rcx + 0x10]
lea rcx, [rbp - 0x40]
shr r9, 1
call fcn.18000275c
mov rcx, rbx
cmp word [rbx], r12w
je 0x180002293
add rcx, r13
cmp word [rcx], r12w
jne 0x18000228a
movzx eax, word [rbp - 0x40]
test ax, ax
je 0x1800022b2
lea rdx, [rbp - 0x40]
sub rdx, rcx
mov word [rcx], ax
add rcx, r13
movzx eax, word [rdx + rcx]
test ax, ax
jne 0x1800022a3
mov word [rcx], r12w
mov rcx, qword [rsp + 0x30]
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x1800022d5
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFr]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800022e0
call qword [sym.imp.ADVAPI32.dll_LsaFr]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_Lsa]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rdx, str._r_nSessionId
mov dword [rbp + 0x260], r12d
lea rcx, [rbp - 0x40]
call fcn.18000271c
lea rdx, [rbp - 0x40]
cmp word [rbp - 0x40], r12w
je 0x180002332
add rdx, r13
cmp word [rdx], r12w
jne 0x180002329
mov ecx, r15d
call fcn.1800010e8
mov rax, rbx
cmp word [rbx], r12w
je 0x18000234c
add rax, r13
cmp word [rax], r12w
jne 0x180002343
movzx ecx, word [rbp - 0x40]
test cx, cx
je 0x18000236b
lea rdx, [rbp - 0x40]
sub rdx, rax
mov word [rax], cx
add rax, r13
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x18000235c
lea rdx, str._r_nInteractive_Winstation
mov word [rax], r12w
mov rcx, rbx
call fcn.180002670
mov edi, 1
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
test rax, rax
je 0x1800023b7
mov r9d, esi
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x1800023b7
mov al, byte [rsp + 0x58]
and al, dil
neg al
sbb eax, eax
and edi, eax
lea rax, [0x180004468]
test edi, edi
lea rdx, [0x180004460]
mov rcx, rbx
cmove rdx, rax
call fcn.180002670
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov qword [rsp + 0x20], r12
lea rdi, [rbp + 0x1d0]
xor edx, edx
lea r8, [rbp + 0x1d0]
lea esi, [rax + 0x40]
mov ecx, esi
mov r9d, esi
rep stosb byte [rdi], al
or rcx, 0xffffffffffffffff
mov qword [rbp + 0x1d0], rsi
call qword [sym.imp.ntdll.dll_NtQuer]
test eax, eax
js 0x18000247f
lea rdx, str._r_nWOW64_Enabled
lea rcx, [rbp - 0x40]
call fcn.18000271c
lea rdx, [rbp - 0x40]
cmp word [rbp - 0x40], r12w
je 0x18000243a
add rdx, r13
cmp word [rdx], r12w
jne 0x180002431
mov ecx, dword [rbp + 0x208]
shr ecx, 1
and ecx, 1
call fcn.1800010e8
mov rax, rbx
cmp word [rbx], r12w
je 0x18000245c
add rax, r13
cmp word [rax], r12w
jne 0x180002453
movzx ecx, word [rbp - 0x40]
test cx, cx
je 0x18000247b
lea rdx, [rbp - 0x40]
sub rdx, rax
mov word [rax], cx
add rax, r13
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x18000246c
mov word [rax], r12w
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov r9d, esi
mov r8, rdi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret