Function at 0x1400d7800
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x1401970d0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
mov rbx, qword [0x1401a5330]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rbp + 0x47], esi
mov eax, 2
mov word [rbp + 0x2f], ax
mov ecx, 0x2335
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x31], ax
mov dword [rbp + 0x33], esi
mov qword [rbp + 0x17], rsi
lea r14, [0x140197f18]
mov qword [rbp + 0x1f], r14
lea r8, [rbp + 0x17]
lea rdx, [rbp + 0x2f]
lea rcx, [rbx + 0x20]
call fcn.1400da9f0
lea rdx, [rbp + 0x17]
cmp dword [rbp + 0x17], esi
jne 0x1400d7ade
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], r14
lea rcx, [rbx + 0x20]
call fcn.1400d8810
cmp dword [rbp + 0x17], esi
jne 0x1400d7ab7
cmp byte [rbx + 0x4c8], sil
je 0x1400d7a18
mov dword [rbp + 0x27], 0x2335
mov qword [rbp + 0x17], rsi
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rbx + 0x4d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400d7951
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.140014900
nop
lea r9d, [rsi + 0x30]
lea r8, str._WritePortNumToRegistry__Error_in_RegOpenKeyEx:
mov rcx, rax
call fcn.14001f910
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], sil
call fcn.1400647c0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x2f]
call fcn.140064380
nop
lea rcx, [rbp + 0x2f]
call fcn.14000e730
nop
lea rcx, [rbp - 0x59]
call fcn.14000e730
jmp 0x1400d79f5
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx + 0x4d8]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400d7a0e
mov edx, eax
lea rcx, [rbp - 0x79]
call fcn.140014900
nop
mov r9d, 0x32
lea r8, str._WritePortNumToRegistry__Error_in_RegSetValueExA:
mov rcx, rax
call fcn.14001f910
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
call fcn.1400647c0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x2f]
call fcn.140064380
nop
lea rcx, [rbp + 0x2f]
call fcn.14000e730
nop
lea rcx, [rbp - 0x79]
call fcn.14000e730
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400647c0
mov rcx, rax
mov r8b, 1
lea rdx, str._Write_port_number_to_registry_fail
call fcn.140063fc0
jmp 0x1400d7a18
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x2335
lea rcx, [rbp - 0x79]
call fcn.140014900
nop
mov r9d, shutdown
lea r8, str._listen_to_port:
mov rcx, rax
call fcn.14001f910
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3f], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
call fcn.1400647c0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x2f]
call fcn.140064380
nop
lea rcx, [rbp + 0x2f]
call fcn.14000e730
nop
lea rcx, [rbp - 0x79]
call fcn.14000e730
mov rcx, qword [rbx + 0x120]
call fcn.140077880
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14010a950
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x17], xmm0
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x39]
call fcn.140071f80
lea rdx, [0x1401939e8]
lea rcx, [rbp - 0x39]
call fcn.14010e3ec
int3
movaps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x17], xmm0
lea rcx, [rbp - 0x39]
call fcn.140071f80
lea rdx, [0x1401939e8]
lea rcx, [rbp - 0x39]
call fcn.14010e3ec
int3