Function at 0x180014bc0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x180058500]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r12, rcx
mov r9, rcx
movzx edi, dl
xor esi, esi
lea rcx, [rsp + 0x60]
lea r8, [0x180044a20]
or r13d, 0xffffffff
mov edx, 0x104
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x5c], esi
or r15d, r13d
call fcn.180019520
lea rax, [rsp + 0x40]
lea r9d, [rsi + 3]
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180015169
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, [0x1800449fc]
xor r8d, r8d
mov qword [rsp + 0x1b8], rbx
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x180015161
lea rax, [rsp + 0x40]
lea r9d, [rsi + 3]
lea rdx, str.SYSTEMCurrentControlSetControlGroupOrderList
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180015161
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x180044a78]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180014cff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180015161
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x1c0], r14
add rcx, 4
call fcn.1800178a8
mov rcx, qword [rsp + 0x40]
mov r14, rax
test rax, rax
jne 0x180014d2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180015159
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
lea rdx, [0x180044a80]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x18001514b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
shr esi, 2
test dil, dil
je 0x180014e40
test ecx, ecx
je 0x180015151
mov edi, 1
cmp esi, edi
jbe 0x180015151
lea rax, [r14 + 4]
cmp dword [rax], ecx
je 0x180014da3
inc edi
add rax, 4
cmp edi, esi
jb 0x180014d90
jmp 0x180015151
cmp edi, 0xffffffff
je 0x180015151
mov eax, edi
sub esi, edi
lea rcx, [r14 + rax*4]
lea r8d, [rsi - 1]
lea rdx, [rcx + 4]
shl r8, 2
call fcn.180017de0
add dword [rsp + 0x30], 0xfffffffc
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetControlGroupOrderList
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180015151
mov eax, dword [rsp + 0x30]
cmp eax, 4
jbe 0x180014e09
shr eax, 2
dec eax
jmp 0x180014e0b
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov dword [r14], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rdx, [0x180044a88]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
jmp 0x18001514b
test ecx, ecx
jne 0x180014ee9
cmp esi, 1
jbe 0x180014e6b
lea rdx, [r14 + 4]
lea r8d, [rsi - 1]
mov eax, dword [rdx]
cmp eax, ecx
jb 0x180014e62
lea ecx, [rax + 1]
mov dword [rsp + 0x34], ecx
add rdx, 4
dec r8
jne 0x180014e55
lea r8, [0x180044a20]
lea rcx, [rsp + 0x60]
mov r9, r12
mov edx, 0x104
call fcn.180019520
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180014ee5
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x34]
lea rdx, [0x180044a14]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x34]
mov edi, 1
mov eax, edi
cmp esi, eax
jbe 0x180014f0b
lea rdx, [r14 + 4]
cmp dword [rdx], ecx
je 0x180014f08
inc eax
add rdx, 4
cmp eax, esi
jb 0x180014ef8
jmp 0x180014f0b
mov r13d, eax
lea r9, [0x180044a90]
lea r8, [0x180044a20]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.180019520
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180014f9c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5c]
lea rdx, [0x1800449fc]
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180015023
lea r9, str.Tcpip
lea r8, [0x180044a20]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.180019520
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180015023
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5c]
lea rdx, [0x1800449fc]
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x5c]
test ecx, ecx
je 0x180015046
cmp esi, edi
jbe 0x180015046
lea rax, [r14 + 4]
cmp dword [rax], ecx
je 0x180015043
inc edi
add rax, 4
cmp edi, esi
jb 0x180015033
jmp 0x180015046
mov r15d, edi
cmp r13d, 0xffffffff
je 0x18001509a
cmp r15d, 0xffffffff
je 0x1800150de
cmp r15d, r13d
jae 0x180015151
sub r13d, r15d
cmp r13d, 1
jbe 0x180015151
mov ecx, r15d
lea rdx, [r14 + 4]
lea r8d, [r13 - 1]
lea rdx, [rdx + rcx*4]
add rcx, 2
shl r8, 2
lea rcx, [r14 + rcx*4]
call fcn.180017de0
mov eax, dword [rsp + 0x34]
lea ecx, [r15 + 1]
mov dword [r14 + rcx*4], eax
jmp 0x1800150de
cmp r15d, 0xffffffff
je 0x1800150d1
mov eax, r15d
sub esi, r15d
lea rdx, [r14 + 4]
lea rcx, [r14 + 8]
lea r8d, [rsi - 1]
lea rdx, [rdx + rax*4]
lea rcx, [rcx + rax*4]
shl r8, 2
call fcn.180017de0
mov eax, dword [rsp + 0x34]
lea ecx, [r15 + 1]
mov dword [r14 + rcx*4], eax
jmp 0x1800150d9
mov eax, dword [rsp + 0x34]
mov dword [r14 + rsi*4], eax
add dword [rsp + 0x30], 4
lea rax, [rsp + 0x48]
lea rdx, str.SYSTEMCurrentControlSetControlGroupOrderList
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180015151
mov eax, dword [rsp + 0x30]
cmp eax, 4
jbe 0x180015119
shr eax, 2
dec eax
jmp 0x18001511b
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov dword [r14], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rdx, [0x180044a88]
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.180017818
mov r14, qword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180019420
mov rsi, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret