Function at 0x140074040
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rcx
mov rbp, r8
lea rcx, [rsp + 0x68]
mov r15, rdx
call fcn.14003f460
mov rsi, qword [r14 + 0x48]
mov rax, qword [rsp + 0x68]
mov rdi, rsi
mov rbx, qword [rsi + 8]
mov r10, rbx
cmp byte [rbx + 0x19], 0
jne 0x14007411e
test rax, rax
je 0x1400742b8
mov r9, qword [r10 + 0x20]
mov r11, rax
mov rcx, r9
sub r11, r9
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r11]
sub r8d, edx
jne 0x1400740c6
add rcx, 2
test edx, edx
jne 0x1400740b0
test r8d, r8d
jns 0x1400740d1
mov r10, qword [r10 + 0x10]
jmp 0x140074113
cmp byte [rdi + 0x19], 0
je 0x14007410d
test r9, r9
je 0x1400742b8
mov rcx, rax
sub r9, rax
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x140074106
add rcx, 2
test edx, edx
jne 0x1400740f0
test r8d, r8d
cmovs rdi, r10
mov rsi, r10
mov r10, qword [r10]
cmp byte [r10 + 0x19], 0
je 0x140074091
cmp byte [rdi + 0x19], 0
jne 0x140074127
mov rbx, qword [rdi]
cmp byte [rbx + 0x19], 0
jne 0x14007417d
nop dword [rax]
mov r9, qword [rbx + 0x20]
test r9, r9
je 0x1400742b8
mov rcx, rax
sub r9, rax
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x140074166
add rcx, 2
test edx, edx
jne 0x140074150
test r8d, r8d
jns 0x140074173
mov rdi, rbx
mov rbx, qword [rbx]
jmp 0x140074177
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140074130
mov qword [rsp + 0x50], rsi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rdi
lea rcx, [r14 + 0x48]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.140074de0
mov rdx, qword [rsp + 0x68]
mov rbx, 0xffffffffffffffff
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400741c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [r14 + 8]
lea rcx, [rsp + 0x68]
mov rdx, qword [r14 + 0x10]
xor esi, esi
mov qword [rsp + 0x40], rcx
or eax, 2
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [r14]
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor dil, dil
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14007428a
test rbp, rbp
je 0x140074254
cmp word [rbp], si
je 0x140074254
nop dword [rax + rax]
inc rbx
cmp word [rbp + rbx*2], si
jne 0x140074220
mov rcx, qword [rsp + 0x60]
add ebx, ebx
mov dword [rsp + 0x28], ebx
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete dil
jmp 0x14007427f
mov rcx, qword [rsp + 0x60]
mov ebx, 1
mov r9d, ebx
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx edi, dil
cmove edi, ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, r14
call fcn.140072f30
movzx eax, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ff350
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140002b00
int3