Function at 0x14002e440
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1400c6048]
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.14002ecc0
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 0x14002e4c1
mov rcx, qword [rbx]
test r8, r8
jne 0x14002e652
lea rdx, [0x1400a3565]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002e652
lea rdx, [rsp + 0x58]
call fcn.14002eb20
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, [0x1400a52b0]
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 0x14002e676
mov eax, dword [rbx + 0x10]
inc eax
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002e5b7
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 0x14002e6c3
lea rcx, [rsp + 0x78]
call fcn.1400040d0
nop
lea rcx, [rsp + 0x58]
call fcn.1400040d0
nop
lea rdx, str.Wrote
mov rcx, qword [0x1400a2470]
call fcn.14000fbe0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002e636
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14002f120
mov rcx, rax
lea rdx, str._TO_registery
call fcn.14000fbe0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
mov edx, eax
lea rcx, [rsp + 0xd0]
call fcn.14000ff70
nop
mov r8, rax
lea rdx, str.Error_creating_registry_key:
lea rcx, [rsp + 0xf0]
call fcn.1400206e0
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14002db10
lea rdx, [0x1400c10e8]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov edx, edi
lea rcx, [rsp + 0xf0]
call fcn.14000ff70
nop
mov r8, rax
lea rdx, str.Error_writing_registry_value:
lea rcx, [rsp + 0xd0]
call fcn.1400206e0
nop
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.14002db10
lea rdx, [0x1400c10e8]
lea rcx, [rsp + 0xb8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3