Function at 0x14000e8c0
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 [0x14004f808]
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.140024a14
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 0x14000e98b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x1400431c0]
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 0x14000eddd
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov cl, 1
call fcn.14000e7a0
test al, al
je 0x14000eddd
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 0x14000eaa5
mov rbx, qword [rsp + 0x50]
test ecx, ecx
je 0x14000ea8f
mov edi, 1
cmp esi, edi
jbe 0x14000ea42
lea rax, [rbx + 4]
nop
cmp dword [rax], ecx
je 0x14000ea20
inc edi
add rax, 4
cmp edi, esi
jb 0x14000ea10
jmp 0x14000ea42
cmp edi, 0xffffffff
je 0x14000ea42
mov eax, edi
sub esi, edi
lea rcx, [rbx + rax*4]
lea r8d, [rsi - 1]
lea rdx, [rcx + 4]
shl r8, 2
call fcn.140022ce0
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 0x14000ea8f
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call fcn.14000e7a0
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000edd5
mov rcx, rbx
call fcn.140023014
jmp 0x14000edd5
mov qword [rsp + 0x1c0], r12
mov r12, qword [rsp + 0x50]
test ecx, ecx
jne 0x14000eb5c
cmp esi, 1
jbe 0x14000eade
lea rdx, [r12 + 4]
lea r8d, [rsi - 1]
mov eax, dword [rdx]
cmp eax, ecx
jb 0x14000ead5
lea ecx, [rax + 1]
mov dword [rsp + 0x30], ecx
add rdx, 4
dec r8
jne 0x14000eac8
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov r9, rdi
mov edx, 0x104
call fcn.140024a14
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 0x14000eb58
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x1400431c0]
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 0x14000eb83
lea rdx, [r12 + 4]
nop dword [rax]
cmp dword [rdx], ecx
je 0x14000eb80
inc eax
add rdx, 4
cmp eax, esi
jb 0x14000eb70
jmp 0x14000eb83
mov r14d, eax
lea r9, [0x1400431f8]
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140024a14
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 0x14000ec19
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x1400431c0]
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 0x14000eca0
lea r9, str.Tcpip
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140024a14
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 0x14000eca0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, [0x1400431c0]
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 0x14000ecc4
cmp esi, edi
jbe 0x14000ecc4
lea rax, [r12 + 4]
cmp dword [rax], ecx
je 0x14000ecc1
inc edi
add rax, 4
cmp edi, esi
jb 0x14000ecb1
jmp 0x14000ecc4
mov r13d, edi
cmp r14d, 0xffffffff
je 0x14000ed0e
cmp r13d, 0xffffffff
je 0x14000ed4c
cmp r13d, r14d
jae 0x14000edc0
sub r14d, r13d
cmp r14d, 1
jbe 0x14000edc0
mov ecx, r13d
lea r8d, [r14 - 1]
lea rdx, [r12 + rcx*4 + 4]
lea rcx, [r12 + rcx*4 + 8]
shl r8, 2
call fcn.140022ce0
mov eax, dword [rsp + 0x30]
lea r11d, [r13 + 1]
mov dword [r12 + r11*4], eax
jmp 0x14000ed4c
cmp r13d, 0xffffffff
je 0x14000ed3f
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.140022ce0
mov eax, dword [rsp + 0x30]
lea r11d, [r13 + 1]
mov dword [r12 + r11*4], eax
jmp 0x14000ed47
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 0x14000edc0
mov eax, dword [rsp + 0x40]
cmp eax, 4
jbe 0x14000ed87
shr eax, 2
dec eax
jmp 0x14000ed89
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 0x14000edcd
mov rcx, r12
call fcn.140023014
mov r12, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400229a0
add rsp, 0x180
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret