Function at 0x140008db0
Capabilities:
Accept command line arguments
Create process on windows
Delete directory
Get token membership
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [0x14004f678]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov rsi, r8
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x64], ebx
lea rdx, [rsp + 0x64]
mov rcx, r8
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
jne 0x140008e19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffffff
test eax, eax
cmovne edi, eax
mov eax, edi
jmp 0x14000934e
test rsi, rsi
je 0x14000933f
cmp word [rsi], bx
je 0x14000933f
cmp dword [rsp + 0x64], 2
jl 0x14000933f
mov r8d, 0x104
lea rdx, [rbp + 0x230]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x103
ja 0x14000932e
lea rdx, [0x14002cba4]
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov r12d, 1
test eax, eax
jne 0x140008e78
mov r13d, r12d
jmp 0x140008eba
lea rdx, [0x14002cbac]
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140008eb4
lea rdx, [0x14002cbb4]
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140008eb4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, 0x57
jmp 0x14000934e
mov r13d, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140009399
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x70], ebx
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, 0xffffffff
test eax, eax
je 0x140008f3c
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140008f3c
xor ecx, ecx
jmp 0x140008f49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
test eax, eax
cmovne ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rax, rax
sete cl
test rax, rax
je 0x140008f6b
test cl, cl
je 0x140008f65
mov dword [rbx], ebx
cmp dword [rsp + 0x60], ebx
jne 0x1400090c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140008f98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, ebx
jmp 0x14000934e
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1400171d0
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jbe 0x140008fd2
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400090b0
mov dword [rbp - 0x80], 0x70
mov dword [rbp - 0x7c], 0x540
mov qword [rbp - 0x78], rbx
lea rax, str.runas
mov qword [rbp - 0x70], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rbx
mov dword [rbp - 0x50], 0xa
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400090a3
mov rsi, qword [rbp - 0x18]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140009062
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140009062
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140009062
nop dword [rax + rax]
jmp 0x140009060
mov dword [rsp + 0x60], r12d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400090a1
cmp dword [rsp + 0x60], 0x103
je 0x1400090a1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne cl
test eax, eax
jne 0x14000909b
test cl, cl
je 0x140009095
mov dword [rbx], ebx
mov ebx, dword [rsp + 0x60]
jmp 0x1400090b0
jmp 0x1400090a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
cmovne edi, eax
mov ebx, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, ebx
jmp 0x14000934e
mov qword [rsp + 0x28], r14
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov r9, qword [r14 + 8]
mov r8d, r13d
mov rdx, rsi
lea rcx, [rbp + 0x230]
call fcn.140006ba0
movsxd r15, dword [rsp + 0x64]
lea rsi, [r14 + r15*8]
mov rdi, r14
cmp r14, rsi
je 0x14000911d
nop word [rax + rax]
lea rdx, [0x14002cbbc]
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14000911d
add rdi, 8
cmp rdi, rsi
jne 0x140009100
lea rax, [r14 + r15*8]
mov r8d, ebx
cmp rax, rdi
setne r8b
mov rdx, qword [r14 + 8]
mov ecx, r13d
call fcn.140006f50
mov r15d, eax
mov rdi, qword [r14 + 8]
lea rcx, str.kvpins
call fcn.140004bb0
lea rcx, str.kvpuins
call fcn.140004bb0
cmp r13d, 2
jne 0x140009275
lea rax, str.setup64.vbs
mov qword [rbp - 0x10], rax
lea rax, [0x14002cb50]
mov qword [rbp - 8], rax
lea rax, str.kvpvbsext.dll
mov qword [rbp], rax
mov qword [rbp + 8], rdi
lea rax, [0x14002cae0]
mov qword [rbp + 0x10], rax
call fcn.1400051a0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.140001360
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140009239
lea r8, str.3kvpuni
mov rdx, rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x140009235
mov edi, ebx
lea rsi, [rbp - 0x10]
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r8, rax
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x440]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x140009202
lea rcx, [rbp + 0x440]
call fcn.140007480
inc edi
add rsi, 8
cmp edi, 5
jb 0x1400091d4
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14000925b
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140009393
jmp 0x140009250
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14000925b
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400093a4
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140009275
lea rdx, [rbp - 0x80]
cmp rcx, rdx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
nop
and r13d, 1
je 0x1400092bc
test r15d, r15d
jne 0x140009285
mov r12d, ebx
jmp 0x1400092b2
cmp r15d, 0xbb9
je 0x1400092b2
cmp r15d, 0x10a
je 0x1400092b2
cmp r15d, 0x70a
je 0x1400092b2
mov r12d, ebx
cmp r15d, 0x666
setne r12b
add r12d, 2
mov edx, r12d
xor ecx, ecx
call fcn.140010f70
call fcn.140010640
test eax, eax
setne cl
test eax, eax
jne 0x1400092d6
nop word [rax + rax]
test cl, cl
je 0x1400092d0
mov dword [rbx], ebx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0x64], 2
jg 0x14000931f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009378
lea rax, [0x14002cbe0]
lea rdx, [0x14002cbf0]
test r13d, r13d
cmovne rdx, rax
mov r9d, 0x40
lea r8, str.qZ
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, r15d
jmp 0x14000934e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, 0x6f
jmp 0x14000934e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, 0x667
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.1400153e0
mov rbx, qword [rsp + 0x7a8]
add rsp, 0x760
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [0x14002cc00]
lea rcx, [0x14002cc10]
test r13d, r13d
cmovne rcx, rax
call fcn.140008100
nop
call fcn.140014ea8
nop
mov ecx, 0x80004005
call fcn.140003410
nop
call fcn.140014ea8
int3