Function at 0x140048920
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rdx
mov qword [r11 - 0x30], rdx
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov dword [r11 - 0x28], ecx
mov edi, ebp
mov rcx, qword [rdx + 0x10]
test rcx, rcx
jne 0x140048983
lea rdx, str.CTaskMgrHandler::DisableTaskMgr_wstrLoggedInUserSID_is_empty
mov rcx, qword [0x140132990]
call fcn.140011f10
mov rcx, rbx
call fcn.140016890
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 1
jb 0x140048bb7
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400489a7
mov r9, qword [rbx]
mov r14d, 1
mov qword [rsp + 0x30], r14
lea rax, [0x1400ff634]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.140012680
nop
lea r8d, [r14 + 0x38]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
lea rcx, [rsp + 0x70]
call fcn.140012440
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
sete sil
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140048a92
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048a8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048bbd
call fcn.1400a59a4
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bp
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x140048aea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048ae5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048bab
call fcn.1400a59a4
test sil, sil
je 0x140048b37
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.DisableTaskMgr
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove edi, r14d
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140048b72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140048b6d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140048bb1
mov rcx, r8
call fcn.1400a59a4
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov eax, edi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400a5460
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400b4704
nop
call fcn.1400b4704
nop
call fcn.140003f10
nop
call fcn.1400b4704
int3