Function at 0x14001edb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x1400b30c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x1f0]
call fcn.140009dd0
nop
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x30]
call fcn.14001eb70
mov rcx, rax
call fcn.14001fa80
lea r8, [rsp + 0x1f0]
mov rdx, rax
lea rcx, [rsp + 0x230]
call fcn.14001e9e0
nop
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x31]
call fcn.14001ebd0
mov rcx, rax
call fcn.14001f980
mov r8, qword [rsp + 0x2a0]
mov rdx, rax
lea rcx, [rsp + 0x210]
call fcn.14001e9e0
nop
lea rcx, [rsp + 0x230]
call fcn.14000d060
lea r8, [rsp + 0x1e0]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001eecd
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x32]
jmp 0x14001f316
lea rcx, [rsp + 0x210]
call fcn.14000e5f0
shl rax, 1
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x210]
call fcn.14000d060
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x33]
call fcn.14001ec30
mov rcx, rax
call fcn.14001eaf0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001efab
mov rcx, qword [rsp + 0x1e0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x34]
jmp 0x14001f316
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x35]
call fcn.14001ec90
mov rcx, rax
call fcn.14001eab0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x28], 4
lea rax, reloc.WS2_32.dll_accept
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001f06b
mov rcx, qword [rsp + 0x1e0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x36]
jmp 0x14001f316
mov rcx, qword [rsp + 0x1e0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x37]
call fcn.14001ecf0
mov rcx, rax
call fcn.14001ead0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14001f0f2
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x38]
jmp 0x14001f316
lea rax, [rsp + 0x39]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x39]
call fcn.14001ed20
mov rcx, rax
call fcn.14001eb10
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x3a]
call fcn.14001ed50
mov rcx, rax
call fcn.14001eb30
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x5c], 0xa
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0x1e8]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rsp + 0x5c]
call qword [rsp + 0x90]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x14001f1e7
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x3b]
jmp 0x14001f316
lea rax, [rsp + 0x3c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x3c]
call fcn.14001ed80
mov rcx, rax
call fcn.14001fac0
lea r8, [rsp + 0x1f0]
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.14001e9e0
nop
lea rcx, [rsp + 0x260]
call fcn.14000d060
mov rdx, rax
lea rcx, [rsp + 0x250]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x250]
call qword [rsp + 0xa0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xc000010e
jne 0x14001f2b8
mov byte [rsp + 0x3d], 1
lea rcx, [rsp + 0x260]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x3d]
jmp 0x14001f316
cmp dword [rsp + 0x44], 0
jl 0x14001f2c9
mov dword [rsp + 0x48], 1
jmp 0x14001f2d1
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x3e], al
lea rcx, [rsp + 0x260]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x210]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x230]
call fcn.1400067e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.1400067e0
movzx eax, byte [rsp + 0x3e]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140087a80
add rsp, 0x290
pop rdi
ret