Function at 0x14000f120
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.140025294
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 0x14000f1eb
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x140044270]
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 0x14000f63d
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov cl, 1
call fcn.14000f000
test al, al
je 0x14000f63d
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 0x14000f305
mov rbx, qword [rsp + 0x50]
test ecx, ecx
je 0x14000f2ef
mov edi, 1
cmp esi, edi
jbe 0x14000f2a2
lea rax, [rbx + 4]
nop
cmp dword [rax], ecx
je 0x14000f280
inc edi
add rax, 4
cmp edi, esi
jb 0x14000f270
jmp 0x14000f2a2
cmp edi, 0xffffffff
je 0x14000f2a2
mov eax, edi
sub esi, edi
lea rcx, [rbx + rax*4]
lea r8d, [rsi - 1]
lea rdx, [rcx + 4]
shl r8, 2
call fcn.140023560
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 0x14000f2ef
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14000f000
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000f635
mov rcx, rbx
call fcn.140023894
jmp 0x14000f635
mov qword [rsp + 0x1c0], r12
mov r12, qword [rsp + 0x50]
test ecx, ecx
jne 0x14000f3bc
cmp esi, 1
jbe 0x14000f33e
lea rdx, [r12 + 4]
lea r8d, [rsi - 1]
mov eax, dword [rdx]
cmp eax, ecx
jb 0x14000f335
lea ecx, [rax + 1]
mov dword [rsp + 0x30], ecx
add rdx, 4
dec r8
jne 0x14000f328
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov r9, rdi
mov edx, 0x104
call fcn.140025294
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 0x14000f3b8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x140044270]
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 0x14000f3e3
lea rdx, [r12 + 4]
nop dword [rax]
cmp dword [rdx], ecx
je 0x14000f3e0
inc eax
add rdx, 4
cmp eax, esi
jb 0x14000f3d0
jmp 0x14000f3e3
mov r14d, eax
lea r9, [0x1400442a8]
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140025294
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 0x14000f479
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x140044270]
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 0x14000f500
lea r9, str.Tcpip
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140025294
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 0x14000f500
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x140044270]
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 0x14000f524
cmp esi, edi
jbe 0x14000f524
lea rax, [r12 + 4]
cmp dword [rax], ecx
je 0x14000f521
inc edi
add rax, 4
cmp edi, esi
jb 0x14000f511
jmp 0x14000f524
mov r13d, edi
cmp r14d, 0xffffffff
je 0x14000f56e
cmp r13d, 0xffffffff
je 0x14000f5ac
cmp r13d, r14d
jae 0x14000f620
sub r14d, r13d
cmp r14d, 1
jbe 0x14000f620
mov ecx, r13d
lea r8d, [r14 - 1]
lea rdx, [r12 + rcx*4 + 4]
lea rcx, [r12 + rcx*4 + 8]
shl r8, 2
call fcn.140023560
mov eax, dword [rsp + 0x30]
lea r11d, [r13 + 1]
mov dword [r12 + r11*4], eax
jmp 0x14000f5ac
cmp r13d, 0xffffffff
je 0x14000f59f
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.140023560
mov eax, dword [rsp + 0x30]
lea r11d, [r13 + 1]
mov dword [r12 + r11*4], eax
jmp 0x14000f5a7
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 0x14000f620
mov eax, dword [rsp + 0x40]
cmp eax, 4
jbe 0x14000f5e7
shr eax, 2
dec eax
jmp 0x14000f5e9
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 0x14000f62d
mov rcx, r12
call fcn.140023894
mov r12, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140023220
add rsp, 0x180
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret