Function at 0x14005f720
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov qword [rax - 0x80], 0xfffffffffffffffe
mov rsi, r8
mov r14, rdx
mov r15, rcx
call fcn.14000d980
mov rcx, rax
test rax, rax
je 0x14005fb1e
mov rax, qword [rax]
call qword [rax + 0x18]
mov qword [rsp + 0xd0], rax
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14005ff40
mov rbx, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14005f802
mov rdx, qword [r15]
mov qword [rsp + 0xe0], rdx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14005f9da
lea rdx, str.DWORD
mov rcx, rsi
call fcn.14000b750
test al, al
je 0x14005f86f
mov rcx, qword [r14]
mov qword [rsp + 0xe8], rcx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rsp + 0x168], eax
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x168]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
jmp 0x14005f9df
lea rdx, str.STRING
mov rcx, rsi
call fcn.14000b750
test al, al
je 0x14005f8cc
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0xf0], rcx
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
jmp 0x14005f9df
lea rdx, str.MULTI_STRING
mov rcx, rsi
call fcn.14000b750
test al, al
je 0x14005f929
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0xf8], rcx
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 7
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
jmp 0x14005f9df
lea rdx, str.EXPANDABLE_STRING
mov rcx, rsi
call fcn.14000b750
test al, al
je 0x14005f983
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x100], rcx
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
jmp 0x14005f9df
lea rdx, str.NONE
mov rcx, rsi
call fcn.14000b750
test al, al
je 0x14005f9da
mov dword [rsp + 0x50], 0xffffffff
mov rcx, qword [r14]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x108], rcx
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
jmp 0x14005f9df
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rbx, 0xffffffffffffffe8
mov qword [rsp + 0x78], rbx
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x14005fa14
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [r15]
sub rcx, 0x18
mov qword [rsp + 0x80], rcx
mov eax, edi
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14005fa41
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [r14]
sub rcx, 0x18
mov qword [rsp + 0x88], rcx
mov eax, edi
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14005fa6e
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [rsi]
sub rax, 0x18
mov qword [rsp + 0x90], rax
lock xadd dword [rax + 0x10], edi
sub edi, 1
jg 0x14005fa98
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, dword [rsp + 0x50]
jmp 0x14005fb0f
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.14000dd90
int3