Function at 0x1400779d8
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x79], rdx
mov qword [rbp - 0x71], rbx
mov r12d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x51], r12
xor r14d, r14d
mov qword [rbp - 0x59], r14
mov byte [rbp - 0x69], r14b
lea r8d, [r12 + 0x2f]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea rcx, [rbp - 0x69]
call fcn.140007260
nop
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.140009470
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rdx, qword [rbp - 0x69]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140077b16
lea esi, [r12 - 0xe]
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140077aab
inc rdx
mov r8d, esi
mov rcx, qword [rbp - 0x69]
call fcn.140002a70
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x59], r14
mov byte [rbp - 0x69], r14b
cmp qword [rdi + 0x18], 0x10
jb 0x140077ad0
mov rdx, qword [rdi + 0x18]
add rdx, rsi
mov r8, rsi
mov rcx, qword [rdi]
call fcn.140002a70
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r14
cmp qword [rdi + 0x18], 0x10
jb 0x140077ae2
mov rdi, qword [rdi]
mov byte [rdi], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140077afd
inc rdx
mov r8, rsi
mov rcx, qword [rbx]
call fcn.140002a70
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 0x10
jb 0x140077b0f
mov rbx, qword [rbx]
xor al, al
jmp 0x140077c04
cmp qword [rbx + 0x18], 0x10
jb 0x140077b22
mov r8, qword [rbx]
jmp 0x140077b25
mov r8, rbx
mov edx, 0x64
lea r9d, [rdx - 2]
lea rcx, [rbp - 0x49]
call fcn.140132848
lea rax, [rbp - 0x49]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x140077b3b
mov eax, esi
mov byte [rbp + rax - 0x48], r14b
add esi, 2
mov dword [rsp + 0x28], esi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov esi, 1
mov r9d, esi
xor r8d, r8d
lea rdx, str.NameServer
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x140077b9d
inc rdx
mov r8d, esi
mov rcx, qword [rbp - 0x69]
call fcn.140002a70
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x59], r14
mov byte [rbp - 0x69], r14b
cmp qword [rdi + 0x18], 0x10
jb 0x140077bc2
mov rdx, qword [rdi + 0x18]
add rdx, rsi
mov r8, rsi
mov rcx, qword [rdi]
call fcn.140002a70
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r14
cmp qword [rdi + 0x18], 0x10
jb 0x140077bd4
mov rdi, qword [rdi]
mov byte [rdi], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140077bef
inc rdx
mov r8, rsi
mov rcx, qword [rbx]
call fcn.140002a70
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 0x10
jb 0x140077c01
mov rbx, qword [rbx]
mov al, sil
mov byte [rbx], r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14012a1e0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret