Function at 0x140001014
Capabilities:
Acquire debug privileges
Delete registry value
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x410
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400010bd
lea r8, [rbp + 0x77]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400010b4
lea r8, [rbp + 0x67]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400010b4
mov rax, qword [rbp + 0x67]
lea r8, [rbp - 0x69]
and qword [rsp + 0x28], 0
mov r9d, 0x10
mov rcx, qword [rbp + 0x77]
xor edx, edx
and qword [rsp + 0x20], 0
mov qword [rbp - 0x65], rax
mov dword [rbp - 0x69], 1
mov dword [rbp - 0x5d], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400010b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x6f]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000111a
mov rcx, qword [rbp + 0x6f]
lea rdx, str._77stager
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x6f]
lea rdx, str._77dll32
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x6f]
lea rdx, str._77dll64
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rcx, str._77svc64
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, [0x1400021ac]
mov rdi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140001263
and qword [rsp + 0x40], 0
xor r9d, r9d
and dword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
or edx, 0xffffffff
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], 6
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140001195
cmp eax, 0x80010119
jne 0x14000125d
and qword [rbp + 0x67], 0
lea rax, [rbp + 0x67]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9, [0x1400020f0]
lea rcx, [0x140002100]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000125d
lea rcx, [rbp - 0x69]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm1, xmmword [rbp - 0x69]
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp + 0x67]
movsd xmm0, qword [rbp - 0x59]
lea r9, [rbp - 0x29]
mov qword [rsp + 0x20], rdx
lea r8, [rbp - 9]
lea rdx, [rbp + 0x17]
movaps xmmword [rbp - 0x49], xmm1
mov rax, qword [rcx]
movsd qword [rbp - 0x39], xmm0
movaps xmmword [rbp - 0x29], xmm1
movsd qword [rbp - 0x19], xmm0
movaps xmmword [rbp - 9], xmm1
movsd qword [rbp + 7], xmm0
movaps xmmword [rbp + 0x17], xmm1
movsd qword [rbp + 0x27], xmm0
call qword [rax + 0x50]
test eax, eax
js 0x140001253
mov rcx, qword [rbp + 0x67]
lea r8, [rbp + 0x77]
and qword [rbp + 0x77], 0
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
js 0x140001253
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x67]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x3e80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rbp + 0x67]
mov dword [rbp + 0x67], 0x3e8
mov rcx, rax
mov r14, rax
call fcn.140001388
test eax, eax
je 0x1400012f6
mov ecx, dword [rbp + 0x67]
test ecx, ecx
je 0x1400012f6
mov rbx, r14
mov esi, ecx
mov eax, 0x7273
cmp word [rbx + 4], ax
jne 0x1400012ec
cmp dword [rbx], 0xffffffff
je 0x1400012ec
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400012ec
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x10
sub rsi, 1
jne 0x1400012b2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x3e80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rbp + 0x67]
mov dword [rbp + 0x67], 0x3e8
mov rcx, rax
mov rsi, rax
call fcn.140001388
test eax, eax
je 0x140001364
mov ecx, dword [rbp + 0x67]
test ecx, ecx
je 0x140001364
mov rbx, rsi
mov edi, ecx
mov eax, 0x7277
cmp word [rbx + 4], ax
jne 0x14000135a
mov rcx, rbx
call fcn.140001584
add rbx, 0x10
sub rdi, 1
jne 0x140001347
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret