Function at 0x1000251c8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rdi, rcx
lea rax, [0x10000bba0]
mov qword [rcx], rax
lea r14, [0x1000dedd8]
lea r15, [0x100008e80]
mov rcx, qword [0x1000dedd8]
cmp rcx, r14
je 0x100025259
test byte [rcx + 0x1c], 1
je 0x100025230
cmp byte [rcx + 0x19], 5
jb 0x100025230
mov edx, 0x66
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.100020584
mov rcx, qword [0x1000dedd8]
cmp rcx, r14
je 0x100025259
test byte [rcx + 0x1c], 1
je 0x100025259
cmp byte [rcx + 0x19], 5
jb 0x100025259
mov edx, 0x238
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.100020584
mov rcx, qword [0x1000dedd8]
xor ebp, ebp
cmp qword [rdi + 0x368], rbp
je 0x1000252d5
mov rcx, qword [rdi + 0x360]
call qword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebp
je 0x10002528d
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x10]
mov rcx, qword [rdi + 0x360]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1000252a4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x464
mov ecx, dword [rdi + 0x370]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
or edx, 0xffffffff
mov rcx, qword [rdi + 0x368]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x368]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x368], rbp
mov dword [rdi + 0x370], ebp
mov rcx, qword [0x1000dedd8]
mov r9, qword [rdi + 0x4e8]
cmp r9, rbp
je 0x10002537d
mov rax, r9
neg rax
sbb edx, edx
not edx
and edx, 0x80070057
jl 0x10002537d
mov qword [rsp + 0xe8], rbp
lea r8, [rsp + 0xe8]
lea rdx, [0x10000c2d8]
mov rcx, r9
call qword [sym.imp.SHELL32.dll_SHGetPropertyStoreForWindow]
cmp eax, ebp
jl 0x10002535a
xor edx, edx
lea r8d, [rdx + 0x18]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
mov word [rsp + 0x78], bp
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rcx]
lea r8, [rsp + 0x78]
lea rdx, [0x10000a3f8]
call qword [rax + 0x30]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ole32.dll_PropVariantClear]
nop
mov rcx, qword [rsp + 0xe8]
cmp rcx, rbp
je 0x100025376
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1000dedd8]
jmp 0x10002537d
mov rcx, qword [0x1000dedd8]
mov rax, qword [rdi + 0x378]
cmp rax, rbp
je 0x1000253c0
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_PowerClearRequest]
mov rcx, qword [rdi + 0x378]
cmp rcx, rbp
je 0x1000253b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x378], rbp
mov rcx, qword [0x1000dedd8]
jmp 0x1000253c0
mov rcx, qword [0x1000dedd8]
mov rax, qword [rdi + 0x460]
cmp rax, rbp
je 0x1000253e2
mov rcx, rax
call fcn.100044ac4
mov qword [rdi + 0x460], rbp
mov rcx, qword [0x1000dedd8]
mov rax, qword [0x1000e1e08]
cmp rax, rbp
je 0x100025404
mov rcx, rax
call fcn.100044ac4
mov qword [0x1000e1e08], rbp
mov rcx, qword [0x1000dedd8]
mov rax, qword [0x1000e1e10]
cmp rax, rbp
je 0x100025426
mov rcx, rax
call fcn.100044ac4
mov qword [0x1000e1e10], rbp
mov rcx, qword [0x1000dedd8]
cmp rcx, r14
je 0x100025448
test byte [rcx + 0x1c], 1
je 0x100025448
cmp byte [rcx + 0x19], 5
jb 0x100025448
mov edx, 0x264
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.100020584
mov esi, ebp
mov rbx, rbp
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x10000b5e0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x10002549f
mov eax, ebp
mov rbx, qword [rsp + 0x50]
cdqe
cmp rax, rbp
je 0x1000254c4
movzx esi, ax
or esi, 0x80070000
cmp eax, ebp
cmovle esi, eax
cmp rbx, rbp
je 0x100025536
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100025536
mov eax, ebp
cmp byte [rdi + 0x354], bpl
setne al
mov dword [rsp + 0xd8], eax
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x10000b8e0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movsxd rcx, eax
cmp rcx, rbp
je 0x100025528
movzx esi, cx
or esi, 0x80070000
cmp ecx, ebp
cmovle esi, ecx
cmp rbx, rbp
je 0x100025536
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100025536
cmp rbx, rbp
je 0x100025536
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1000dedd8]
cmp rcx, r14
je 0x100025562
test byte [rcx + 0x1c], 1
je 0x100025562
cmp byte [rcx + 0x19], 5
jb 0x100025562
mov edx, 0x265
mov r9d, esi
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.100020d8c
cmp qword [rdi + 0x148], rbp
je 0x1000255dc
mov r9, qword [rdi + 0x198]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov rcx, qword [0x1000dedd8]
cmp rcx, r14
je 0x1000255ae
test byte [rcx + 0x1c], 1
je 0x1000255ae
cmp byte [rcx + 0x19], 5
jb 0x1000255ae
mov edx, 0x67
mov r9, rax
mov r8, r15
mov rcx, qword [rcx + 0x10]
call fcn.10002142c
cmp rbx, rbp
je 0x1000255c8
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x148], rbp
mov rcx, qword [rdi + 0x150]
cmp rcx, rbp
je 0x1000255f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x150], rbp
mov r9, qword [rdi + 0xe8]
mov r8, qword [rdi + 0xf8]
mov rdx, qword [rdi + 0xf0]
mov rcx, rdi
call fcn.100029304
mov r9, qword [rdi + 0x100]
mov r8, qword [rdi + 0x110]
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.100029304
mov r9, qword [rdi + 0x118]
mov r8, qword [rdi + 0x128]
mov rdx, qword [rdi + 0x120]
mov rcx, rdi
call fcn.100029304
mov r9, qword [rdi + 0x130]
mov r8, qword [rdi + 0x140]
mov rdx, qword [rdi + 0x138]
mov rcx, rdi
call fcn.100029304
lea rcx, [rdi + 0x468]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rdi + 0x490]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rdi + 0x4b8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, ebp
mov rbx, rbp
cmp qword [rdi + 0x2a0], rbp
jbe 0x1000256de
cmp rbx, qword [rdi + 0x2a0]
jae 0x1000256d3
mov rax, qword [rdi + 0x298]
mov rcx, qword [rax + rbx*8]
cmp rcx, rbp
je 0x1000256c1
mov edx, 1
call fcn.100025abc
inc esi
inc rbx
mov eax, esi
cmp rax, qword [rdi + 0x2a0]
jb 0x10002569e
jmp 0x1000256de
mov ecx, 0x80070057
call fcn.100046abc
int3
mov rcx, qword [rdi + 0x380]
cmp rcx, rbp
je 0x1000256f6
call fcn.10006f0b0
mov qword [rdi + 0x380], rbp
mov edx, dword [rdi + 0x168]
cmp edx, ebp
je 0x10002570d
mov rcx, qword [rdi + 0x160]
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp qword [rdi + 0x160], rbp
je 0x100025748
mov rcx, qword [rdi + 0x160]
cmp rcx, rbp
je 0x10002572f
mov qword [rdi + 0x160], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x160]
cmp rcx, rbp
je 0x100025748
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x160], rbp
cmp qword [rdi + 0x2d8], rbp
je 0x1000257ed
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rdi + 0x2d8]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov edx, 0x3ec
call qword [rax + 0x78]
cmp eax, ebp
jl 0x1000257c8
mov eax, 8
cmp ax, word [rsp + 0x60]
jne 0x1000257c8
mov rdx, qword [rsp + 0x68]
cmp rdx, rbp
je 0x1000257c8
mov rcx, qword [rdi + 0x2c8]
cmp rcx, rbp
je 0x1000257a4
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x2d8]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rdi + 0x2c0]
cmp rcx, rbp
je 0x1000257c8
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x2d8]
cmp rcx, rbp
je 0x1000257e2
mov qword [rdi + 0x2d8], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rdi + 0x2d0]
cmp rcx, rbp
je 0x100025806
mov qword [rdi + 0x2d0], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x2c8]
cmp rcx, rbp
je 0x10002581f
mov qword [rdi + 0x2c8], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x2c0]
cmp rcx, rbp
je 0x100025838
mov qword [rdi + 0x2c0], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 0x2b8]
cmp rcx, rbp
je 0x100025851
mov qword [rdi + 0x2b8], rbp
mov rax, qword [rcx]
call qword [rax + 0x10]
call fcn.10004dd7c
cmp eax, ebp
je 0x10002588d
mov rdx, qword [rdi + 0x430]
cmp rdx, rbp
je 0x10002588d
mov rcx, rdi
call fcn.10003d4e4
mov rcx, qword [0x1000e2c40]
cmp rcx, rbp
je 0x100025886
mov rdx, qword [rdi + 0x430]
call fcn.10004d8e0
mov qword [rdi + 0x430], rbp
mov rcx, qword [rdi + 0x420]
cmp rcx, rbp
je 0x1000258b9
lea rbx, [rcx - 8]
lea r9, [fcn.100046a8c]
mov r8d, dword [rbx]
mov edx, 0x10
call fcn.1000cd84c
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov qword [rdi + 0x420], rbp
lea rcx, [rdi + 0x438]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1000e2a90]
call fcn.10004cdd0
nop
mov rdx, qword [rdi + 0x418]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x1000258ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi + 0x410]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x100025921
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi + 0x2f8]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x100025943
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rdi + 0x2d8]
cmp rcx, rbp
je 0x100025956
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rdi + 0x2d0]
cmp rcx, rbp
je 0x100025969
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rdi + 0x2c8]
cmp rcx, rbp
je 0x10002597c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rdi + 0x2c0]
cmp rcx, rbp
je 0x10002598f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rdi + 0x2b8]
cmp rcx, rbp
je 0x1000259a2
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rdi + 0x298]
cmp rcx, rbp
je 0x1000259b5
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rdi + 0x278]
cmp rcx, rbp
je 0x1000259c8
call qword [sym.imp.msvcrt.dll_free]
nop
mov rdx, qword [rdi + 0x198]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x1000259ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi + 0x190]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x100025a0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi + 0x188]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x100025a2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi + 0x180]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x100025a50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rdi + 0x178]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, ebp
jg 0x100025a72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rdi + 0x170]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rdi + 0x160]
cmp rcx, rbp
je 0x100025a93
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
lea rax, [0x1000108a0]
mov qword [rdi], rax
mov rcx, rdi
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.10005a84c