Function at 0x18000299c
Capabilities:
Create directory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
xor esi, esi
test byte [0x18000f528], 1
mov eax, 0x100
mov r13d, esi
mov rdi, rdx
mov r15, rcx
cmovne r13d, eax
cmp r9d, 8
mov ebx, esi
jbe 0x180002eb5
mov r14d, r9d
lea rax, [r14 + 0x41]
cmp rax, 0x104
jae 0x180002eb5
mov dx, 0x5f
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
cmp rax, rsi
jne 0x180002eb5
lea rcx, [rsp + 0x80]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x1800114ca]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x18001151a]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
jne 0x180002eb5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x180011560]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x1e8], esi
je 0x180002ea5
mov rcx, qword [0x18000f668]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
add eax, 2
movsxd rcx, eax
mov eax, dword [rsp + 0x1e8]
lea r8, [rax + rcx*2 + 0x32]
mov rcx, qword [0x18000f510]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rsi
mov r12, rax
je 0x180002ea5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x180011560]
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x180002e91
mov eax, dword [rsp + 0x1e8]
lea r8, [0x180011708]
mov rdx, r12
shr rax, 1
mov rcx, r12
mov word [r12 + rax*2], si
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [0x18000f670]
mov rdx, r12
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [0x18000f668]
mov rdx, r12
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, qword [0x18000f540]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
je 0x180002e8c
mov rdi, qword [rsp + 0x1f8]
mov rbp, qword [rdi + 8]
cmp rbp, rsi
je 0x180002bde
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, r12
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x18000f510]
movsxd r8, eax
xor edx, edx
add r8, rbx
lea r8, [r8 + r8 + 0x22]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180002beb
lea rdx, [0x1800115e8]
mov r9, rbp
mov r8, r12
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x180002beb
xor edx, edx
mov rcx, r12
call fcn.180003af0
mov rsi, rax
test rsi, rsi
je 0x180002e85
lea rcx, [rsp + r14 + 0xaa]
lea rdx, [0x1800114a9]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rax, [rsp + 0x30]
or r13d, 0xf003f
lea rdx, [rsp + 0x80]
mov r9d, r13d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002c7b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x18000f660]
mov rcx, qword [rsp + 0x30]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x180002e71
cmp qword [rdi + 0x28], 0
jne 0x180002ccb
mov r15, qword [0x18000f540]
lea r8, [rdi + 0x30]
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.1800035e0
cmp eax, 2
mov ebx, eax
jne 0x180002cbb
test byte [0x18000f528], 1
je 0x180002cbb
lea r8, [rdi + 0x30]
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.1800035e0
mov ebx, eax
test ebx, ebx
jne 0x180002e71
mov r15, qword [rsp + 0x1d0]
mov r8d, dword [rdi + 0x30]
mov rdx, qword [rdi + 0x28]
mov rcx, r12
call fcn.180002568
xor ebp, ebp
cmp eax, ebp
mov ebx, eax
jne 0x180002dfd
cmp qword [rdi], rbp
jne 0x180002cf9
xor edx, edx
mov rcx, rsi
call fcn.180003af0
mov qword [rdi], rax
mov rdx, qword [0x18000f678]
lea rcx, [rsp + r14 + 0x81]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebp
jne 0x180002e71
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x18001161c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r13d, 3
cmp eax, ebp
jne 0x180002d9f
cmp dword [rsp + 0x1e8], 0x28
jne 0x180002d9f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x18001161c]
mov r9d, r13d
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rdi + 0x20]
cmp eax, ebp
je 0x180002dcb
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
lea rdx, [0x1800114ae]
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rdi + 0x24]
cmp eax, ebp
je 0x180002e62
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x18]
lea rdx, [0x1800114b7]
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180002e62
cmp eax, 0x20
je 0x180002e6f
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov r9d, r13d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x180002e71
mov rcx, qword [rsp + 0x30]
mov rdi, qword [0x18000f660]
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x38], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebp
jne 0x180002e62
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180002e71
mov ebx, ebp
mov rcx, qword [0x18000f510]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002e91
mov ebx, 8
jmp 0x180002e91
mov ebx, 0xb7
mov rcx, qword [0x18000f510]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002eaa
mov ebx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x1f0]
add dword [rax], 1
mov eax, ebx
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret