Function at 0x14002dd20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1400c5048]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rbx, rdx
mov qword [rsp + 0x98], rdx
mov dword [rsp + 0x50], 1
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor edi, edi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdx], dil
mov dword [rsp + 0x50], 1
lea rdx, [rsp + 0x58]
call fcn.14002e5a0
mov rdx, rax
mov rcx, rbx
call fcn.1400039f0
lea rcx, [rsp + 0x58]
call fcn.1400040d0
mov r8, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002dda1
mov rcx, qword [rbx]
test r8, r8
jne 0x14002df32
lea rdx, [0x1400a2505]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002df32
lea rdx, [rsp + 0x58]
call fcn.14002e400
mov rdx, rax
mov rcx, rbx
call fcn.1400039f0
lea rcx, [rsp + 0x58]
call fcn.1400040d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov r8d, 4
lea rdx, [0x1400a40c0]
lea rcx, [rsp + 0x58]
call fcn.140001e10
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x88], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.SOFTWAREKOFTRSETTING
lea rcx, [rsp + 0x78]
call fcn.140001e10
nop
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 0x10
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x110]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14002df56
mov eax, dword [rbx + 0x10]
inc eax
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002de97
mov rcx, qword [rbx]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14002dfa3
lea rcx, [rsp + 0x78]
call fcn.1400040d0
nop
lea rcx, [rsp + 0x58]
call fcn.1400040d0
nop
lea rdx, str.Wrote
mov rcx, qword [0x1400a1418]
call fcn.14000f4c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002df16
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14002ea00
mov rcx, rax
lea rdx, str._TO_registery
call fcn.14000f4c0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140092210
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
mov edx, eax
lea rcx, [rsp + 0xd0]
call fcn.14000f850
nop
mov r8, rax
lea rdx, str.Error_creating_registry_key:
lea rcx, [rsp + 0xf0]
call fcn.14001ffc0
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14002d3f0
lea rdx, [0x1400bfe58]
lea rcx, [rsp + 0xa0]
call fcn.140093f92
nop
mov edx, edi
lea rcx, [rsp + 0xf0]
call fcn.14000f850
nop
mov r8, rax
lea rdx, str.Error_writing_registry_value:
lea rcx, [rsp + 0xd0]
call fcn.14001ffc0
nop
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.14002d3f0
lea rdx, [0x1400bfe58]
lea rcx, [rsp + 0xb8]
call fcn.140093f92
int3