Function at 0x14005e610
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x80
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx r9d, word [rdx]
xor r14d, r14d
movzx eax, word [rcx]
mov ebp, r8d
mov r12, qword [rsp + 0xd0]
mov r13, rcx
mov qword [rsp + 0x40], rdx
lea esi, [r9 + 4]
mov dword [rsp + 0x58], r14d
add esi, eax
mov dword [rsp + 0x54], r14d
mov qword [rsp + 0x48], r14
test r9w, r9w
je 0x14005e671
test r8d, r8d
je 0x14005e671
add esi, 2
jmp 0x14005e674
mov ebp, r14d
lea rax, [rsp + 0x48]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSophos_Endpoint_Defense
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005e84b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0xc0], rbx
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14005e6fd
cmp dword [rsp + 0x58], 7
jne 0x14005e6f4
mov ebx, dword [rsp + 0x54]
cmp ebx, 2
jb 0x14005e6f4
add ebx, 0xfffffffe
mov dword [rsp + 0x54], ebx
jmp 0x14005e70a
mov ebx, r14d
mov dword [rsp + 0x54], ebx
jmp 0x14005e70a
cmp eax, 2
jne 0x14005e831
mov ebx, dword [rsp + 0x54]
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x5c], r14d
lea r14d, [rsi + 2]
add r14d, ebx
mov qword [rsp + 0x70], r15
mov r15, qword [rsp + 0x48]
mov ecx, r14d
call fcn.14006ca18
mov rsi, rax
test rax, rax
je 0x14005e827
test ebx, ebx
je 0x14005e795
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x30], rax
mov r9d, 0x20
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rsi
mov r8, r12
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
jne 0x14005e81d
mov eax, dword [rsp + 0x50]
cmp eax, 2
jb 0x14005e78b
add eax, 0xfffffffe
mov dword [rsp + 0x50], eax
jmp 0x14005e799
xor edi, edi
mov eax, edi
mov dword [rsp + 0x50], eax
jmp 0x14005e79b
mov eax, dword [rsp + 0x50]
xor edi, edi
cmp ebx, eax
jne 0x14005e818
movzx r8d, word [r13]
add rbx, rsi
mov rdx, qword [r13 + 8]
mov rcx, rbx
call fcn.140064500
movzx eax, word [r13]
add rbx, rax
mov word [rbx], di
add rbx, 2
test ebp, ebp
je 0x14005e7d2
mov eax, 0x21
mov word [rbx], ax
add rbx, 2
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
movzx r8d, word [rdi]
mov rdx, qword [rdi + 8]
call fcn.140064500
movzx eax, word [rdi]
xor ecx, ecx
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rsi
mov dword [rax + rbx], ecx
lea r9d, [rcx + 7]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
mov edi, eax
call fcn.140068be8
jmp 0x14005e82c
mov edi, 0x18
mov rcx, rsi
call fcn.140068be8
jmp 0x14005e82c
mov edi, 8
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xc0]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x80
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret