Function at 0x100070af8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, r8
mov esi, edx
lea r13, [0x100153eb8]
mov r12d, 5
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x100070b62
test byte [rcx + 0x1c], 1
je 0x100070b62
cmp byte [rcx + 0x19], r12b
jb 0x100070b62
lea edx, [r12 + 0x55]
mov r9, r8
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.1000347a8
movabs rbx, 0x8000000000000000
cmp dword [0x100159e34], 0
je 0x100070bc1
mov al, byte [0x100159e38]
cmp al, 4
jae 0x100070b83
test al, al
jne 0x100070bc1
test qword [0x100159e20], rbx
je 0x100070bc1
mov rcx, qword [0x100159e28]
mov rax, rcx
and rax, rbx
cmp rax, rcx
jne 0x100070bc1
xor r8d, r8d
cmp esi, dword [0x100155af0]
sete r8b
mov r9, r15
lea rdx, [0x100002ef0]
mov rcx, qword [0x100159e08]
call fcn.10006af74
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.100035db8
nop
xor r14d, r14d
xor ebp, ebp
lea edi, [rbp + 2]
cmp esi, dword [0x100155af0]
jne 0x1000712e1
lea rdx, [rsp + 0x40]
lea rcx, [0x100158cf8]
call fcn.10006cd54
lea rcx, [0x100155b18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x100152100]
mov rax, qword [0x100152100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rbx, [0x100154320]
mov rcx, rbx
call fcn.1000d45b0
test al, al
je 0x100071287
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.100077264
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x100070c79
test byte [rcx + 0x1c], 4
je 0x100070c79
cmp byte [rcx + 0x19], r12b
jb 0x100070c79
lea edx, [rbp + 0x5b]
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.1000347a8
mov rcx, rbx
call fcn.10004d410
mov rsi, rax
lea r12, [0x10001f020]
mov r13d, 0x80070000
test rax, rax
je 0x100070cd7
mov rbx, rsi
mov rdx, rsi
lea rcx, [0x100154320]
call fcn.10004e2cc
mov rsi, rax
mov dword [rsp + 0x20], 1
or eax, 0xffffffff
mov r9d, eax
mov r8, qword [rsp + 0x48]
mov edx, eax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, edi
je 0x100070d85
test rsi, rsi
jne 0x100070c96
lea rcx, [rsp + 0x98]
call fcn.1000ea0e8
lea r11, fcn.1000eb330
mov qword [rsp + 0x98], r11
xor r9d, r9d
mov r8, r12
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x98]
call fcn.1000ec3f0
test eax, eax
je 0x100070d59
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100153eb8]
lea rsi, [0x100153eb8]
cmp rcx, rsi
je 0x100070d60
test byte [rcx + 0x1c], dil
je 0x100070d60
cmp byte [rcx + 0x19], dil
jb 0x100070d60
mov edx, 0x5c
mov dword [rsp + 0x20], ebp
mov r9, qword [rsp + 0x48]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
jmp 0x100070d60
lea rsi, [0x100153eb8]
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100070d8c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x100070d8c
lea rsi, [0x100153eb8]
mov dword [rsp + 0x20], 1
or r9d, 0xffffffff
lea r8, [0x1000214c0]
lea ebx, [r9 + 6]
mov edx, ebx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, edi
jne 0x100070e75
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.1000ea0e8
lea r11, [0x100020130]
mov qword [rsp + 0xa8], r11
xor r9d, r9d
mov r8, r12
lea rdx, [rbx + 0xa]
lea rcx, [rsp + 0xa8]
call fcn.1000ec3f0
test eax, eax
je 0x100070e46
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100153eb8]
cmp rcx, rsi
je 0x100070e46
test byte [rcx + 0x1c], dil
je 0x100070e46
cmp byte [rcx + 0x19], dil
jb 0x100070e46
mov edx, 0x5d
mov dword [rsp + 0x30], ebp
lea rax, [0x100021658]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbx + 0xa]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10006bb4c
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100070e70
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov ebx, 5
jmp 0x100070e75
mov ebx, 5
mov rax, qword [0x100154328]
mov dword [0x1001588f4], eax
mov dword [0x1001588f0], eax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [0x100154368]
call fcn.10004d80c
mov r11, rax
test rax, rax
je 0x100070f31
cmp rax, qword [0x100154368]
jne 0x100070ebd
mov rcx, qword [rax]
mov qword [0x100154368], rcx
jmp 0x100070ec7
mov rcx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rcx], rax
cmp r11, qword [0x100154370]
jne 0x100070edd
mov rax, qword [r11 + 8]
mov qword [0x100154370], rax
jmp 0x100070ee8
mov rdx, qword [r11]
mov rax, qword [r11 + 8]
mov qword [rdx + 8], rax
mov rdx, r11
lea rcx, [0x100154368]
call fcn.10004e614
mov rcx, qword [0x100153eb8]
lea r13, [0x100153eb8]
cmp rcx, r13
je 0x100070f38
test byte [rcx + 0x1c], 4
je 0x100070f38
cmp byte [rcx + 0x19], bl
jb 0x100070f38
mov edx, 0x5e
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.1000347a8
jmp 0x100070f38
lea r13, [0x100153eb8]
mov rax, qword [0x100154378]
mov dword [0x1001588fc], eax
mov dword [0x100158900], eax
xor ebx, ebx
and qword [rsp + 0x70], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20106
xor r8d, r8d
lea rdx, [0x10001eb70]
mov r12, 0xffffffff80000002
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x100070f87
mov rbx, qword [rsp + 0x70]
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x100070fc5
test byte [rcx + 0x1c], dil
je 0x100070fc5
mov edx, edi
test esi, esi
mov eax, 5
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x100070fc5
mov edx, 0x5f
mov r9d, esi
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
test esi, esi
jne 0x1000710e2
mov eax, dword [0x1001588f4]
mov dword [rsp + 0x118], eax
lea ecx, [rsi + 4]
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
lea rdx, [0x10001ef30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x10007104e
test byte [rcx + 0x1c], dil
je 0x100071055
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
mov esi, 5
cmove edx, esi
cmp r8d, edx
jl 0x10007105a
lea edx, [rsi + 0x5b]
mov eax, dword [0x1001588f4]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
jmp 0x10007105a
mov esi, 5
jmp 0x10007105a
mov esi, 5
mov eax, dword [0x1001588fc]
mov dword [rsp + 0x68], eax
mov ecx, 4
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor r8d, r8d
lea rdx, [0x10001ef58]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x1000710d2
test byte [rcx + 0x1c], dil
je 0x1000710d2
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
cmove edx, esi
cmp r8d, edx
jl 0x1000710d2
mov edx, 0x61
mov eax, dword [0x1001588fc]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
test rbx, rbx
je 0x1000710e2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
and qword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20106
xor r8d, r8d
lea rdx, [0x10001ec70]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x100071126
test rbx, rbx
je 0x100071121
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov rbx, qword [rsp + 0x78]
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x100071168
test byte [rcx + 0x1c], dil
je 0x100071170
mov edx, edi
test esi, esi
mov r12d, 5
cmove edx, r12d
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x100071176
lea edx, [r12 + 0x5d]
mov r9d, esi
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
jmp 0x100071176
mov r12d, 5
jmp 0x100071176
mov r12d, 5
test esi, esi
jne 0x100071269
mov eax, dword [0x1001588f0]
mov dword [rsp + 0x58], eax
mov esi, 4
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, [0x10001ef30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x1000711f5
test byte [rcx + 0x1c], dil
je 0x1000711f5
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
cmove edx, r12d
cmp r8d, edx
jl 0x1000711f5
lea edx, [rsi + 0x5f]
mov eax, dword [0x1001588f0]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
mov eax, dword [0x100158900]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, [0x10001ef58]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r13
je 0x100071269
test byte [rcx + 0x1c], dil
je 0x100071269
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
cmove edx, r12d
cmp r8d, edx
jl 0x100071269
mov edx, 0x64
mov eax, dword [0x100158900]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
test rbx, rbx
je 0x100071280
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x108]
jmp 0x100071287
mov esi, dword [rsp + 0x108]
lea rcx, [0x100155b18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000712cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r11, qword [0x100153eb8]
movabs rbx, 0x8000000000000000
jmp 0x100071696
mov r11, qword [0x100153eb8]
movabs rbx, 0x8000000000000000
jmp 0x100071696
cmp esi, dword [0x100155ac4]
jne 0x10007168f
or dword [rsp + 0x28], 0xffffffff
lea rbx, [0x1000214c0]
mov qword [rsp + 0x20], rbx
mov r9d, r12d
mov r8, qword [rsp + 0x40]
mov edx, 1
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, edi
je 0x10007136b
mov ebp, 0x80070057
mov r11, qword [0x100153eb8]
cmp r11, r13
je 0x100071356
test byte [r11 + 0x1c], dil
je 0x100071356
cmp byte [r11 + 0x19], dil
jb 0x100071356
mov edx, 0x65
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [r11 + 0x10]
call fcn.1000347a8
mov r11, qword [0x100153eb8]
movabs rbx, 0x8000000000000000
mov r14d, 1
jmp 0x100071696
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.100076f14
lea rcx, [0x100155b18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1001542e8]
call fcn.10004d80c
mov rbx, rax
test rax, rax
je 0x10007166f
lea rcx, [rsp + 0x88]
call fcn.1000ea0e8
lea r11, fcn.1000eb330
mov qword [rsp + 0x88], r11
xor r9d, r9d
lea r8, [0x10001f020]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.1000ec3f0
mov r13d, 0x80070000
test eax, eax
je 0x100071434
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100153eb8]
lea r12, [0x100153eb8]
cmp rcx, r12
je 0x10007142f
test byte [rcx + 0x1c], dil
je 0x10007142f
cmp byte [rcx + 0x19], dil
jb 0x10007142f
mov edx, 0x66
mov dword [rsp + 0x20], ebp
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b678
mov r14d, edi
jmp 0x10007143b
lea r12, [0x100153eb8]
cmp rbx, qword [0x1001542e8]
jne 0x100071450
mov rax, qword [rbx]
mov qword [0x1001542e8], rax
jmp 0x10007145a
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rbx, qword [0x1001542f0]
jne 0x100071470
mov rax, qword [rbx + 8]
mov qword [0x1001542f0], rax
jmp 0x10007147b
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
mov rdx, rbx
lea rcx, [0x1001542e8]
call fcn.10004e614
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x1000714ce
test byte [rcx + 0x1c], 4
je 0x1000714d5
mov edx, 5
cmp byte [rcx + 0x19], dl
jb 0x1000714da
mov edx, 0x67
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.1000347a8
mov rcx, qword [0x100153eb8]
mov edx, 5
jmp 0x1000714da
mov edx, 5
jmp 0x1000714da
mov edx, 5
mov rax, qword [0x1001542f8]
mov dword [0x1001588f8], eax
cmp rcx, r12
je 0x10007150f
test byte [rcx + 0x1c], 4
je 0x10007150f
cmp byte [rcx + 0x19], dl
jb 0x10007150f
mov edx, 0x68
mov r9d, eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
xor ebx, ebx
and qword [rsp + 0x80], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20106
xor r8d, r8d
lea rdx, [0x10001ecf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007154f
mov rbx, qword [rsp + 0x80]
test eax, eax
je 0x1000715a0
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100153eb8]
lea r13, [0x100153eb8]
cmp rcx, r13
je 0x100071595
test byte [rcx + 0x1c], dil
je 0x100071595
cmp byte [rcx + 0x19], dil
jb 0x100071595
mov edx, 0x69
mov r9d, ebp
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov r14d, 3
jmp 0x10007162f
mov eax, dword [0x1001588f8]
mov dword [rsp + 0x60], eax
mov r12d, 4
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, r12d
xor r8d, r8d
lea rdx, [0x10001ef80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100071628
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100153eb8]
lea r13, [0x100153eb8]
cmp rcx, r13
je 0x100071623
test byte [rcx + 0x1c], dil
je 0x100071623
cmp byte [rcx + 0x19], dil
jb 0x100071623
lea edx, [r12 + 0x66]
mov dword [rsp + 0x20], ebp
mov r9d, dword [0x1001588f8]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
mov r14d, r12d
jmp 0x10007162f
lea r13, [0x100153eb8]
test rbx, rbx
je 0x10007163e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100071669
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r12d, 5
jmp 0x10007166f
mov r12d, 5
lea rcx, [0x100155b18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [0x100153eb8]
movabs rbx, 0x8000000000000000
jmp 0x100071696
mov r11, qword [0x100153eb8]
cmp dword [0x100159e34], 0
je 0x1000716fb
mov al, byte [0x100159e38]
cmp al, 4
jae 0x1000716ad
test al, al
jne 0x1000716fb
test qword [0x100159e20], rbx
je 0x1000716fb
mov rcx, qword [0x100159e28]
mov rax, rcx
and rax, rbx
cmp rax, rcx
jne 0x1000716fb
xor r8d, r8d
cmp esi, dword [0x100155af0]
sete r8b
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebp
mov r9, r15
lea rdx, [0x100002f00]
mov rcx, qword [0x100159e08]
call fcn.10006affc
mov r11, qword [0x100153eb8]
cmp r11, r13
je 0x10007172f
test byte [r11 + 0x1c], 1
je 0x10007172f
movzx eax, byte [r11 + 0x19]
test ebp, ebp
cmovns edi, r12d
cmp eax, edi
jl 0x10007172f
mov edx, 0x6b
mov r9d, ebp
lea r8, [0x10001e430]
mov rcx, qword [r11 + 0x10]
call fcn.100036510
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10007174f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret