Function at 0x1400d25a0
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 [0x1401900d0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
mov rbx, qword [0x14019e490]
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, [0x140190f18]
mov qword [rbp + 0x1f], r14
lea r8, [rbp + 0x17]
lea rdx, [rbp + 0x2f]
lea rcx, [rbx + 0x20]
call fcn.1400d58e0
lea rdx, [rbp + 0x17]
cmp dword [rbp + 0x17], esi
jne 0x1400d287e
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], r14
lea rcx, [rbx + 0x20]
call fcn.1400d3700
cmp dword [rbp + 0x17], esi
jne 0x1400d2857
cmp byte [rbx + 0x4c8], sil
je 0x1400d27b8
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 0x1400d26f1
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.1400134e0
nop
lea r9d, [rsi + 0x30]
lea r8, str._WritePortNumToRegistry__Error_in_RegOpenKeyEx:
mov rcx, rax
call fcn.14001db30
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.140061ec0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x2f]
call fcn.140061a90
nop
lea rcx, [rbp + 0x2f]
call fcn.14000d2f0
nop
lea rcx, [rbp - 0x59]
call fcn.14000d2f0
jmp 0x1400d2795
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 0x1400d27ae
mov edx, eax
lea rcx, [rbp - 0x79]
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 + 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.140061ec0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x2f]
call fcn.140061a90
nop
lea rcx, [rbp + 0x2f]
call fcn.14000d2f0
nop
lea rcx, [rbp - 0x79]
call fcn.14000d2f0
mov rcx, qword [rbp + 0x17]
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 0x1400d27b8
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x2335
lea rcx, [rbp - 0x79]
call fcn.1400134e0
nop
mov r9d, setsockopt
lea r8, str._listen_to_port:
mov rcx, rax
call fcn.14001db30
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.140061ec0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x2f]
call fcn.140061a90
nop
lea rcx, [rbp + 0x2f]
call fcn.14000d2f0
nop
lea rcx, [rbp - 0x79]
call fcn.14000d2f0
mov rcx, qword [rbx + 0x120]
call fcn.140072600
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140105820
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.14006cd00
lea rdx, [0x14018cdf8]
lea rcx, [rbp - 0x39]
call fcn.1401092bc
int3
movaps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x17], xmm0
lea rcx, [rbp - 0x39]
call fcn.14006cd00
lea rdx, [0x14018cdf8]
lea rcx, [rbp - 0x39]
call fcn.1401092bc
int3