Function at 0x140008340
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400fd010]
xor rax, rsp
mov qword [rbp + 0x70], rax
movzx eax, word [0x1400e4600]
lea rdx, str.SOFTWAREWOW6432NodeSophosAutoUpdateUpdateStatusPolicyFeatures
movaps xmm0, xmmword [str.SophosSophos_UISophos_UI.exe_]
xor ebx, ebx
movaps xmm1, xmmword [0x1400e45d0]
xor r8d, r8d
and qword [rsp + 0x60], 0
mov rcx, 0xffffffff80000002
and qword [rsp + 0x58], rbx
xor r13b, r13b
and dword [rsp + 0x50], ebx
lea r9d, [rbx + 1]
movaps xmmword [rbp + 0x20], xmm0
xor r12b, r12b
movaps xmm0, xmmword [0x1400e45e0]
mov word [rbp + 0x60], ax
movzx eax, word [0x1400e4418]
movaps xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [0x1400e4408]
mov word [rbp + 0x10], ax
lea rax, [rsp + 0x58]
movaps xmmword [rbp + 0x30], xmm1
movaps xmm1, xmmword [0x1400e45f0]
movups xmmword [rbp], xmm0
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x50], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400084e0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x20]
and qword [rsp + 0x28], rbx
lea r8, str.Features
and qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000843e
cmp eax, 0xea
jne 0x1400084e0
mov ecx, dword [rsp + 0x50]
call fcn.1400948dc
mov r14, rax
test rax, rax
je 0x1400084e0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, str.Features
mov qword [rsp + 0x28], r14
mov r9d, 0x20
and qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400084d8
mov edi, dword [rsp + 0x50]
cmp edi, 6
jb 0x1400084d8
shr edi, 1
mov r15, r14
je 0x1400084d8
mov edx, edi
mov rcx, r15
call fcn.140093620
mov rsi, rax
test eax, eax
je 0x1400084d8
cmp esi, edi
je 0x1400084d8
cmp esi, 8
jne 0x1400084c2
mov r8d, esi
lea rdx, [rbp]
mov rcx, r15
call fcn.140094028
test eax, eax
je 0x1400084d5
mov eax, esi
lea r15, [r15 + rax*2]
or eax, 0xffffffff
sub eax, esi
add r15, 2
add edi, eax
jmp 0x140008493
mov r12b, 1
mov rcx, r14
call fcn.1400924bc
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400084f0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r12b, r12b
je 0x14000850b
call fcn.140008208
mov rbx, rax
test rax, rax
jne 0x1400085ca
jmp 0x14000864e
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSophos_Endpoint_DefensePaths
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000864e
mov ecx, 0x208
call fcn.1400948dc
mov rbx, rax
test rax, rax
je 0x14000864e
lea rcx, [rax + 2]
xor edx, edx
mov r8d, 0x206
call fcn.1400735b0
mov eax, 0x22
lea rcx, [rbp - 0x80]
mov word [rbx], ax
lea r9, [rbp - 0x7c]
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 2]
mov rcx, qword [rsp + 0x60]
lea rdx, str.ProgramFilesDrive
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x80], 0x204
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000864e
cmp dword [rbp - 0x7c], 1
jne 0x14000864e
lea r9d, [rax + 0x20]
mov edx, 0x103
lea r8, [rbp + 0x20]
mov rcx, rbx
call fcn.140093ca0
test eax, eax
jne 0x14000864e
xor eax, eax
lea rcx, [rbp - 0x6c]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x68], xmm0
lea r8d, [rax + 0x64]
call fcn.1400735b0
lea rax, [rsp + 0x68]
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rbx
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140008635
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000864e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13b, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000865e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14000866b
mov rcx, rbx
call fcn.1400924bc
mov al, r13b
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400494a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret