Function at 0x100070898
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, [0x100152eb8]
mov r12d, 5
mov rcx, qword [0x100152eb8]
cmp rcx, r13
je 0x100070902
test byte [rcx + 0x1c], 1
je 0x100070902
cmp byte [rcx + 0x19], r12b
jb 0x100070902
lea edx, [r12 + 0x55]
mov r9, r8
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100034788
movabs rbx, 0x8000000000000000
cmp dword [0x100158e34], 0
je 0x100070961
mov al, byte [0x100158e38]
cmp al, 4
jae 0x100070923
test al, al
jne 0x100070961
test qword [0x100158e20], rbx
je 0x100070961
mov rcx, qword [0x100158e28]
mov rax, rcx
and rax, rbx
cmp rax, rcx
jne 0x100070961
xor r8d, r8d
cmp esi, dword [0x100154af0]
sete r8b
mov r9, r15
lea rdx, [0x100002ef0]
mov rcx, qword [0x100158e08]
call fcn.10006acc8
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.100035d98
nop
xor r14d, r14d
xor ebp, ebp
lea edi, [rbp + 2]
cmp esi, dword [0x100154af0]
jne 0x100071081
lea rdx, [rsp + 0x40]
lea rcx, [0x100157cf8]
call fcn.10006caf4
lea rcx, [0x100154b18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x100151100]
mov rax, qword [0x100151100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
lea rbx, [0x100153320]
mov rcx, rbx
call fcn.1000d41ec
test al, al
je 0x100071027
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.100077004
mov rcx, qword [0x100152eb8]
cmp rcx, r13
je 0x100070a19
test byte [rcx + 0x1c], 4
je 0x100070a19
cmp byte [rcx + 0x19], r12b
jb 0x100070a19
lea edx, [rbp + 0x5b]
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100034788
mov rcx, rbx
call fcn.1000d9f1c
mov rsi, rax
lea r12, [0x10001f020]
mov r13d, 0x80070000
test rax, rax
je 0x100070a77
mov rbx, rsi
mov rdx, rsi
lea rcx, [0x100153320]
call fcn.10004dfcc
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 0x100070b25
test rsi, rsi
jne 0x100070a36
lea rcx, [rsp + 0x98]
call fcn.1000e9bf4
lea r11, fcn.1000eae3c
mov qword [rsp + 0x98], r11
xor r9d, r9d
mov r8, r12
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x98]
call fcn.1000ebefc
test eax, eax
je 0x100070af9
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100152eb8]
lea rsi, [0x100152eb8]
cmp rcx, rsi
je 0x100070b00
test byte [rcx + 0x1c], dil
je 0x100070b00
cmp byte [rcx + 0x19], dil
jb 0x100070b00
mov edx, 0x5c
mov dword [rsp + 0x20], ebp
mov r9, qword [rsp + 0x48]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
jmp 0x100070b00
lea rsi, [0x100152eb8]
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100070b2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x100070b2c
lea rsi, [0x100152eb8]
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 0x100070c15
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.1000e9bf4
lea r11, [0x100020130]
mov qword [rsp + 0xa8], r11
xor r9d, r9d
mov r8, r12
lea rdx, [rbx + 0xa]
lea rcx, [rsp + 0xa8]
call fcn.1000ebefc
test eax, eax
je 0x100070be6
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100152eb8]
cmp rcx, rsi
je 0x100070be6
test byte [rcx + 0x1c], dil
je 0x100070be6
cmp byte [rcx + 0x19], dil
jb 0x100070be6
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.10006b744
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100070c10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov ebx, 5
jmp 0x100070c15
mov ebx, 5
mov rax, qword [0x100153328]
mov dword [0x1001578f4], eax
mov dword [0x1001578f0], eax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [0x100153368]
call fcn.10004d6dc
mov r11, rax
test rax, rax
je 0x100070cd1
cmp rax, qword [0x100153368]
jne 0x100070c5d
mov rcx, qword [rax]
mov qword [0x100153368], rcx
jmp 0x100070c67
mov rcx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rcx], rax
cmp r11, qword [0x100153370]
jne 0x100070c7d
mov rax, qword [r11 + 8]
mov qword [0x100153370], rax
jmp 0x100070c88
mov rdx, qword [r11]
mov rax, qword [r11 + 8]
mov qword [rdx + 8], rax
mov rdx, r11
lea rcx, [0x100153368]
call fcn.10004e480
mov rcx, qword [0x100152eb8]
lea r13, [0x100152eb8]
cmp rcx, r13
je 0x100070cd8
test byte [rcx + 0x1c], 4
je 0x100070cd8
cmp byte [rcx + 0x19], bl
jb 0x100070cd8
mov edx, 0x5e
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100034788
jmp 0x100070cd8
lea r13, [0x100152eb8]
mov rax, qword [0x100153378]
mov dword [0x1001578fc], eax
mov dword [0x100157900], 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 0x100070d27
mov rbx, qword [rsp + 0x70]
mov rcx, qword [0x100152eb8]
cmp rcx, r13
je 0x100070d65
test byte [rcx + 0x1c], dil
je 0x100070d65
mov edx, edi
test esi, esi
mov eax, 5
cmove edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x100070d65
mov edx, 0x5f
mov r9d, esi
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
test esi, esi
jne 0x100070e82
mov eax, dword [0x1001578f4]
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 [0x100152eb8]
cmp rcx, r13
je 0x100070dee
test byte [rcx + 0x1c], dil
je 0x100070df5
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
mov esi, 5
cmove edx, esi
cmp r8d, edx
jl 0x100070dfa
lea edx, [rsi + 0x5b]
mov eax, dword [0x1001578f4]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
jmp 0x100070dfa
mov esi, 5
jmp 0x100070dfa
mov esi, 5
mov eax, dword [0x1001578fc]
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 [0x100152eb8]
cmp rcx, r13
je 0x100070e72
test byte [rcx + 0x1c], dil
je 0x100070e72
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
cmove edx, esi
cmp r8d, edx
jl 0x100070e72
mov edx, 0x61
mov eax, dword [0x1001578fc]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
test rbx, rbx
je 0x100070e82
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 0x100070ec6
test rbx, rbx
je 0x100070ec1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov rbx, qword [rsp + 0x78]
mov rcx, qword [0x100152eb8]
cmp rcx, r13
je 0x100070f08
test byte [rcx + 0x1c], dil
je 0x100070f10
mov edx, edi
test esi, esi
mov r12d, 5
cmove edx, r12d
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jl 0x100070f16
lea edx, [r12 + 0x5d]
mov r9d, esi
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
jmp 0x100070f16
mov r12d, 5
jmp 0x100070f16
mov r12d, 5
test esi, esi
jne 0x100071009
mov eax, dword [0x1001578f0]
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 [0x100152eb8]
cmp rcx, r13
je 0x100070f95
test byte [rcx + 0x1c], dil
je 0x100070f95
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
cmove edx, r12d
cmp r8d, edx
jl 0x100070f95
lea edx, [rsi + 0x5f]
mov eax, dword [0x1001578f0]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
mov eax, dword [0x100157900]
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 [0x100152eb8]
cmp rcx, r13
je 0x100071009
test byte [rcx + 0x1c], dil
je 0x100071009
movzx r8d, byte [rcx + 0x19]
mov edx, edi
test eax, eax
cmove edx, r12d
cmp r8d, edx
jl 0x100071009
mov edx, 0x64
mov eax, dword [0x100157900]
mov dword [rsp + 0x20], eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
test rbx, rbx
je 0x100071020
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x108]
jmp 0x100071027
mov esi, dword [rsp + 0x108]
lea rcx, [0x100154b18]
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 0x10007106b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r11, qword [0x100152eb8]
movabs rbx, 0x8000000000000000
jmp 0x100071436
mov r11, qword [0x100152eb8]
movabs rbx, 0x8000000000000000
jmp 0x100071436
cmp esi, dword [0x100154ac4]
jne 0x10007142f
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 0x10007110b
mov ebp, 0x80070057
mov r11, qword [0x100152eb8]
cmp r11, r13
je 0x1000710f6
test byte [r11 + 0x1c], dil
je 0x1000710f6
cmp byte [r11 + 0x19], dil
jb 0x1000710f6
mov edx, 0x65
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [r11 + 0x10]
call fcn.100034788
mov r11, qword [0x100152eb8]
movabs rbx, 0x8000000000000000
mov r14d, 1
jmp 0x100071436
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.100076cb4
lea rcx, [0x100154b18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1001532e8]
call fcn.10004d6dc
mov rbx, rax
test rax, rax
je 0x10007140f
lea rcx, [rsp + 0x88]
call fcn.1000e9bf4
lea r11, fcn.1000eae3c
mov qword [rsp + 0x88], r11
xor r9d, r9d
lea r8, [0x10001f020]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.1000ebefc
mov r13d, 0x80070000
test eax, eax
je 0x1000711d4
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100152eb8]
lea r12, [0x100152eb8]
cmp rcx, r12
je 0x1000711cf
test byte [rcx + 0x1c], dil
je 0x1000711cf
cmp byte [rcx + 0x19], dil
jb 0x1000711cf
mov edx, 0x66
mov dword [rsp + 0x20], ebp
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10009b2f4
mov r14d, edi
jmp 0x1000711db
lea r12, [0x100152eb8]
cmp rbx, qword [0x1001532e8]
jne 0x1000711f0
mov rax, qword [rbx]
mov qword [0x1001532e8], rax
jmp 0x1000711fa
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rbx, qword [0x1001532f0]
jne 0x100071210
mov rax, qword [rbx + 8]
mov qword [0x1001532f0], rax
jmp 0x10007121b
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
mov rdx, rbx
lea rcx, [0x1001532e8]
call fcn.10004e480
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10007126e
test byte [rcx + 0x1c], 4
je 0x100071275
mov edx, 5
cmp byte [rcx + 0x19], dl
jb 0x10007127a
mov edx, 0x67
mov r9, qword [rsp + 0x40]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100034788
mov rcx, qword [0x100152eb8]
mov edx, 5
jmp 0x10007127a
mov edx, 5
jmp 0x10007127a
mov edx, 5
mov rax, qword [0x1001532f8]
mov dword [0x1001578f8], eax
cmp rcx, r12
je 0x1000712af
test byte [rcx + 0x1c], 4
je 0x1000712af
cmp byte [rcx + 0x19], dl
jb 0x1000712af
mov edx, 0x68
mov r9d, eax
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
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 0x1000712ef
mov rbx, qword [rsp + 0x80]
test eax, eax
je 0x100071340
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100152eb8]
lea r13, [0x100152eb8]
cmp rcx, r13
je 0x100071335
test byte [rcx + 0x1c], dil
je 0x100071335
cmp byte [rcx + 0x19], dil
jb 0x100071335
mov edx, 0x69
mov r9d, ebp
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov r14d, 3
jmp 0x1000713cf
mov eax, dword [0x1001578f8]
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 0x1000713c8
movzx ebp, ax
or ebp, r13d
test eax, eax
cmovle ebp, eax
mov rcx, qword [0x100152eb8]
lea r13, [0x100152eb8]
cmp rcx, r13
je 0x1000713c3
test byte [rcx + 0x1c], dil
je 0x1000713c3
cmp byte [rcx + 0x19], dil
jb 0x1000713c3
lea edx, [r12 + 0x66]
mov dword [rsp + 0x20], ebp
mov r9d, dword [0x1001578f8]
lea r8, [0x10001e430]
mov rcx, qword [rcx + 0x10]
call fcn.10003b338
mov r14d, r12d
jmp 0x1000713cf
lea r13, [0x100152eb8]
test rbx, rbx
je 0x1000713de
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 0x100071409
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r12d, 5
jmp 0x10007140f
mov r12d, 5
lea rcx, [0x100154b18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [0x100152eb8]
movabs rbx, 0x8000000000000000
jmp 0x100071436
mov r11, qword [0x100152eb8]
cmp dword [0x100158e34], 0
je 0x10007149b
mov al, byte [0x100158e38]
cmp al, 4
jae 0x10007144d
test al, al
jne 0x10007149b
test qword [0x100158e20], rbx
je 0x10007149b
mov rcx, qword [0x100158e28]
mov rax, rcx
and rax, rbx
cmp rax, rcx
jne 0x10007149b
xor r8d, r8d
cmp esi, dword [0x100154af0]
sete r8b
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebp
mov r9, r15
lea rdx, [0x100002f00]
mov rcx, qword [0x100158e08]
call fcn.10006ad50
mov r11, qword [0x100152eb8]
cmp r11, r13
je 0x1000714cf
test byte [r11 + 0x1c], 1
je 0x1000714cf
movzx eax, byte [r11 + 0x19]
test ebp, ebp
cmovns edi, r12d
cmp eax, edi
jl 0x1000714cf
mov edx, 0x6b
mov r9d, ebp
lea r8, [0x10001e430]
mov rcx, qword [r11 + 0x10]
call fcn.100036328
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000714ef
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