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

Disassembly:
push rbp
push rbx
push rdi
push r13
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rcx
mov r9, rcx
movzx ebx, dl
lea rcx, [rsp + 0x60]
lea r8, str.SYSTEMCurrentControlSetServices_s
or r14d, 0xffffffff
mov edx, 0x104
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x48], 0
or r13d, r14d
call fcn.1400251f4
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f14b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x140044250]
xor r8d, r8d
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
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 0x14000f59d
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov cl, 1
call fcn.14000ef60
test al, al
je 0x14000f59d
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x1b8], rsi
mov esi, edx
shr esi, 2
test bl, bl
je 0x14000f265
mov rbx, qword [rsp + 0x50]
test ecx, ecx
je 0x14000f24f
mov edi, 1
cmp esi, edi
jbe 0x14000f202
lea rax, [rbx + 4]
nop
cmp dword [rax], ecx
je 0x14000f1e0
inc edi
add rax, 4
cmp edi, esi
jb 0x14000f1d0
jmp 0x14000f202
cmp edi, 0xffffffff
je 0x14000f202
mov eax, edi
sub esi, edi
lea rcx, [rbx + rax*4]
lea r8d, [rsi - 1]
lea rdx, [rcx + 4]
shl r8, 2
call fcn.1400234c0
mov edx, dword [rsp + 0x40]
add edx, 0xfffffffc
lea rax, [rsp + 0x38]
mov r9d, 3
mov dword [rsp + 0x40], edx
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 0x14000f24f
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14000ef60
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000f595
mov rcx, rbx
call fcn.1400237f4
jmp 0x14000f595
mov qword [rsp + 0x1c0], r12
mov r12, qword [rsp + 0x50]
test ecx, ecx
jne 0x14000f31c
cmp esi, 1
jbe 0x14000f29e
lea rdx, [r12 + 4]
lea r8d, [rsi - 1]
mov eax, dword [rdx]
cmp eax, ecx
jb 0x14000f295
lea ecx, [rax + 1]
mov dword [rsp + 0x30], ecx
add rdx, 4
dec r8
jne 0x14000f288
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov r9, rdi
mov edx, 0x104
call fcn.1400251f4
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f318
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x140044250]
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 + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x30]
mov edi, 1
mov eax, edi
cmp esi, eax
jbe 0x14000f343
lea rdx, [r12 + 4]
nop dword [rax]
cmp dword [rdx], ecx
je 0x14000f340
inc eax
add rdx, 4
cmp eax, esi
jb 0x14000f330
jmp 0x14000f343
mov r14d, eax
lea r9, [0x140044288]
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.1400251f4
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f3d9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x140044250]
xor r8d, r8d
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
test al, al
jne 0x14000f460
lea r9, str.Tcpip
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.1400251f4
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f460
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x140044250]
xor r8d, r8d
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x14000f484
cmp esi, edi
jbe 0x14000f484
lea rax, [r12 + 4]
cmp dword [rax], ecx
je 0x14000f481
inc edi
add rax, 4
cmp edi, esi
jb 0x14000f471
jmp 0x14000f484
mov r13d, edi
cmp r14d, 0xffffffff
je 0x14000f4ce
cmp r13d, 0xffffffff
je 0x14000f50c
cmp r13d, r14d
jae 0x14000f580
sub r14d, r13d
cmp r14d, 1
jbe 0x14000f580
mov ecx, r13d
lea r8d, [r14 - 1]
lea rdx, [r12 + rcx*4 + 4]
lea rcx, [r12 + rcx*4 + 8]
shl r8, 2
call fcn.1400234c0
mov eax, dword [rsp + 0x30]
lea r11d, [r13 + 1]
mov dword [r12 + r11*4], eax
jmp 0x14000f50c
cmp r13d, 0xffffffff
je 0x14000f4ff
mov eax, r13d
sub esi, r13d
lea r8d, [rsi - 1]
lea rdx, [r12 + rax*4 + 4]
lea rcx, [r12 + rax*4 + 8]
shl r8, 2
call fcn.1400234c0
mov eax, dword [rsp + 0x30]
lea r11d, [r13 + 1]
mov dword [r12 + r11*4], eax
jmp 0x14000f507
mov eax, dword [rsp + 0x30]
mov dword [r12 + rsi*4], eax
add dword [rsp + 0x40], 4
lea rax, [rsp + 0x38]
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 0x14000f580
mov eax, dword [rsp + 0x40]
cmp eax, 4
jbe 0x14000f547
shr eax, 2
dec eax
jmp 0x14000f549
xor eax, eax
mov dword [r12], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
lea rdx, str.PNP_TDI
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r12, r12
je 0x14000f58d
mov rcx, r12
call fcn.1400237f4
mov r12, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140023180
add rsp, 0x180
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret