Function at 0x140013800
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r12, r9
mov r13, r8
xor r15b, r15b
lea rax, [rsp + 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013ac8
mov edi, ebx
mov r9d, 0x104
lea r8, [rbp + 0x190]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140013abd
lea rsi, str.SYSTEMCurrentControlSetServices_
lea r14, [rbx - 1]
call fcn.140001a70
test rax, rax
je 0x140013c02
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
cmp rsi, 0x10000
jae 0x1400138e9
movzx edx, si
call fcn.140002950
jmp 0x1400138f8
mov r8d, 0x22
mov rdx, rsi
call fcn.140002da0
nop
lea rax, [rbp + 0x190]
mov r8, r14
inc r8
cmp word [rax + r8*2], 0
jne 0x140013902
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x68]
call fcn.140002b60
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 8], 1
jle 0x14001393b
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140002cd0
mov rbx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013a7f
mov dword [rsp + 0x64], 1
lea r8, str.ProcessGovernor
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.14004bbe0
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.14004b7b4
lea r8, str.processgovernor.exe
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.14004bbe0
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.14004b7b4
mov dword [rsp + 0x60], 0x208
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013a19
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp - 0x80]
call fcn.14004bd8c
test eax, eax
je 0x140013af6
mov dword [rsp + 0x60], 0x208
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013a73
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp - 0x80]
call fcn.1400407c8
test rax, rax
jne 0x140013af6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140013a99
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc edi
mov r9d, 0x104
lea r8, [rbp + 0x190]
mov edx, edi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1400138b1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r15b
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.14003f1d0
mov rbx, qword [rsp + 0x910]
add rsp, 0x8d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15b, 1
test r12, r12
je 0x140013b8d
mov dword [rsp + 0x60], 0x208
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.ObjectName
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013b8d
lea rdx, [0x14006dba4]
lea rcx, [rbp - 0x7e]
call fcn.1400407c8
test rax, rax
je 0x140013b86
mov rsi, rax
lea rdi, [rax + 2]
lea rdx, [0x14006dba4]
mov rcx, rdi
call fcn.1400407c8
test rax, rax
jne 0x140013b50
lea rax, [rbp - 0x80]
cmp rsi, rax
je 0x140013b86
mov r8, rdi
mov edx, 0x800
mov rcx, r12
call fcn.14004bbe0
jmp 0x140013b8d
xor eax, eax
mov word [r12], ax
test r13, r13
je 0x140013bd4
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013bd4
mov eax, dword [rsp + 0x70]
mov dword [r13], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140013abd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140013abd
mov ecx, 0x80004005
call fcn.1400018b0
int3