Function at 0x1400b3dc0
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 [0x1401970d0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov esi, edx
xor r14d, r14d
mov rbx, qword [0x1401a5410]
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, [0x140197f18]
mov qword [rbp + 0xf], r15
lea r8, [rbp + 7]
lea rdx, [rbp + 0x1f]
lea rcx, [rbx + 0x40]
call fcn.1400ba170
lea rdx, [rbp + 7]
cmp dword [rbp + 7], r14d
jne 0x1400b4036
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r15
lea rcx, [rbx + 0x40]
call fcn.1400b5a60
cmp dword [rbp + 7], r14d
jne 0x1400b400f
cmp byte [rbx + 0x528], r14b
je 0x1400b3fda
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 0x1400b3f13
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140014900
nop
lea r9d, [r14 + 0x30]
lea r8, str._WritePortNumToRegistry__Error_in_RegOpenKeyEx:
mov rcx, rax
call fcn.14001f910
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.1400647c0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x1f]
call fcn.140064380
nop
lea rcx, [rbp + 0x1f]
call fcn.14000e730
nop
lea rcx, [rsp + 0x30]
call fcn.14000e730
jmp 0x1400b3fb7
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 0x1400b3fd0
mov edx, eax
lea rcx, [rbp - 0x69]
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 + 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.1400647c0
mov rcx, rax
mov r8b, 1
lea rdx, [rbp + 0x1f]
call fcn.140064380
nop
lea rcx, [rbp + 0x1f]
call fcn.14000e730
nop
lea rcx, [rbp - 0x69]
call fcn.14000e730
mov rcx, qword [rbp + 7]
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 0x1400b3fda
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx + 0x180]
call fcn.140077880
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14010a950
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.140071f80
lea rdx, [0x1401939e8]
lea rcx, [rbp - 0x49]
call fcn.14010e3ec
int3
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x49]
call fcn.140071f80
lea rdx, [0x1401939e8]
lea rcx, [rbp - 0x49]
call fcn.14010e3ec
int3