Function at 0x180001940
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1c0]
mov eax, 0x2c0
call fcn.1800320e0
sub rsp, rax
mov rax, qword [0x180072008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
cmp qword [rcx + 0x18], 8
jb 0x18000197b
mov rcx, qword [rcx]
lea rdx, [rbp - 0x60]
call fcn.180003240
test eax, eax
je 0x180001bbe
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], di
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800019b1
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.180002050
nop
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rdx
cmp rax, 2
jb 0x180001a0b
lea rcx, [rdx + 2]
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x58]
cmp r8, 8
cmovae rax, qword [rsp + 0x58]
mov dword [rax + rdx*2], 0x30005c
mov word [rax + rcx*2], di
lea rax, [rsp + 0x58]
jmp 0x180001a2a
mov qword [rsp + 0x20], 2
lea r9, [0x18006902c]
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.180002be0
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
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
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x180001ae0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001ada
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001bea
call fcn.1800035bc
nop
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], di
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x180001b34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001b2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001be4
call fcn.1800035bc
nop
test bl, bl
jne 0x180001bbe
mov bl, 1
mov dword [rsp + 0x28], 0x38
lea rax, str.Certum_Code_Signing_2021_CA
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.issuer
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, edi
mov dword [rsp + 0x28], 0x30
lea rax, str.The_Document_Foundation
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.name
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmovne ebx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, bl
test eax, eax
cmovne ecx, edi
movzx eax, cl
jmp 0x180001bc0
xor al, al
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180003550
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.180005a60
nop
call fcn.180005a60
int3