Function at 0x1400aeb50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov esi, edx
xor r14d, r14d
mov rbx, qword [0x14019e570]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 0x37], r14d
mov eax, 2
mov word [rbp + 0x1f], ax
movzx ecx, dx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x21], ax
mov dword [rbp + 0x23], r14d
mov qword [rbp + 7], r14
lea r15, [0x140190f18]
mov qword [rbp + 0xf], r15
lea r8, [rbp + 7]
lea rdx, [rbp + 0x1f]
lea rcx, [rbx + 0x40]
call fcn.1400b4f00
lea rdx, [rbp + 7]
cmp dword [rbp + 7], r14d
jne 0x1400aedc6
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r15
lea rcx, [rbx + 0x40]
call fcn.1400b07f0
cmp dword [rbp + 7], r14d
jne 0x1400aed9f
cmp byte [rbx + 0x528], r14b
je 0x1400aed6a
mov dword [rbp + 0x17], esi
mov qword [rbp + 7], r14
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rbx + 0x530]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400aeca3
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400134e0
nop
lea r9d, [r14 + 0x30]
lea r8, str._WritePortNumToRegistry__Error_in_RegOpenKeyEx:
mov rcx, rax
call fcn.14001db30
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x2f], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r14b
call fcn.140061ec0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x1f]
call fcn.140061a90
nop
lea rcx, [rbp + 0x1f]
call fcn.14000d2f0
nop
lea rcx, [rsp + 0x30]
call fcn.14000d2f0
jmp 0x1400aed47
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx + 0x538]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400aed60
mov edx, eax
lea rcx, [rbp - 0x69]
call fcn.1400134e0
nop
mov r9d, 0x32
lea r8, str._WritePortNumToRegistry__Error_in_RegSetValueExA:
mov rcx, rax
call fcn.14001db30
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x2f], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
call fcn.140061ec0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x1f]
call fcn.140061a90
nop
lea rcx, [rbp + 0x1f]
call fcn.14000d2f0
nop
lea rcx, [rbp - 0x69]
call fcn.14000d2f0
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140061ec0
mov rcx, rax
mov r8b, 1
lea rdx, str._Write_port_number_to_registry_fail
call fcn.1400616d0
jmp 0x1400aed6a
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx + 0x180]
call fcn.140072600
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140105820
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp + 7], xmm0
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x49]
call fcn.14006cd00
lea rdx, [0x14018cdf8]
lea rcx, [rbp - 0x49]
call fcn.1401092bc
int3
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x49]
call fcn.14006cd00
lea rdx, [0x14018cdf8]
lea rcx, [rbp - 0x49]
call fcn.1401092bc
int3