Function at 0x7d22114f
Capabilities:
Set registry value

Disassembly:
jmp 0x7d22c050
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
xor r14d, r14d
mov dword [rbp + 0x108], 1
lea rax, str.Word
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x50], rax
lea rbx, str.Excel
lea rax, str.PowerPoint
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x48], rax
lea r15, str.DisableAttachmentsInPV
lea rax, str.DisableInternetFilesInPV
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], rax
lea rdx, str._registryusercurrent_softwareMicrosoftOffice14.0
lea rax, str.DisableUnsafeLocationsInPV
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x48]
movzx eax, byte [0x7d2abfa8]
xorps xmm0, xmm0
neg al
mov dword [rbp + 0x110], r14d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x58], 0x30
sbb esi, esi
mov qword [rsp + 0x60], r14
and esi, 0x100
mov dword [rsp + 0x70], 0x40
mov qword [rsp + 0x68], rax
movdqu xmmword [rsp + 0x78], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
or esi, 0xf003f
lea r8, [rsp + 0x58]
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.7d221834
test eax, eax
js 0x7d22c309
mov qword [rsp + 0x200], rdi
mov edi, r14d
nop word [rax + rax]
mov rax, qword [rsp + 0x40]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x60], rax
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x7d22c160
lea rax, [rbp - 0x30]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], r14w
lea rax, [rax + 2]
jne 0x7d22c180
movups xmm0, xmmword [str.SecurityProtectedView]
lea rdx, [rbp - 0x30]
movups xmm1, xmmword [0x7d2901b8]
lea rcx, [rsp + 0x48]
movups xmmword [rax], xmm0
movups xmm0, xmmword [0x7d2901c8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r8, [rsp + 0x58]
mov edx, esi
lea rcx, [rbp + 0x118]
call fcn.7d221834
cmp eax, 0xc0000034
jne 0x7d22c1fa
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x58]
mov dword [rsp + 0x28], r14d
lea rcx, [rbp + 0x118]
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov edx, esi
call qword [sym.imp.ntdll.dll_NtCreateKey]
test eax, eax
js 0x7d22c267
mov ebx, r14d
mov rax, r15
nop dword [rax]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x118]
lea rax, [rbp + 0x108]
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x48]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
lea ebx, [rbx + 1]
mov rax, qword [rbp + rbx*8 - 0x78]
test rax, rax
jne 0x7d22c210
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
inc edi
mov rbx, qword [rbp + rdi*8 - 0x58]
test rbx, rbx
jne 0x7d22c140
mov rax, qword [rsp + 0x40]
lea rdx, [0x7d2901e8]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r8, [rsp + 0x58]
mov edx, esi
lea rcx, [rbp + 0x118]
call fcn.7d221834
mov rdi, qword [rsp + 0x200]
test eax, eax
js 0x7d22c2fe
lea rdx, str.FirstBoot
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x118]
lea rax, [rbp + 0x110]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
add rsp, 0x1d0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret