Function at 0x180002880
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 [0x18000f74c], 1
mov eax, 0x100
mov r13d, esi
mov rdi, rdx
mov r15, rcx
cmovne r13d, eax
mov ebx, esi
cmp r9d, 8
jbe 0x180002d98
mov r14d, r9d
lea rax, [r14 + 0x41]
cmp rax, 0x104
jae 0x180002d98
lea edx, [rsi + 0x5f]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
cmp rax, rsi
jne 0x180002d98
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 0x180002d98
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 0x180002d88
mov rcx, qword [0x18000f8a8]
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 [0x18000f730]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
cmp rax, rsi
je 0x180002d88
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 0x180002d74
mov eax, dword [rsp + 0x1e8]
lea r8, [0x180011728]
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 [0x18000f8b0]
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 [0x18000f8a8]
mov rdx, r12
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, qword [0x18000f760]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
je 0x180002d6f
mov rdi, qword [rsp + 0x1f8]
mov rbp, qword [rdi + 8]
cmp rbp, rsi
je 0x180002ac1
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 [0x18000f730]
movsxd r8, eax
xor edx, edx
add r8, rbx
lea r8, [r8 + r8 + 0x22]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180002ace
lea rdx, [0x1800115e8]
mov r9, rbp
mov r8, r12
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x180002ace
xor edx, edx
mov rcx, r12
call fcn.180003c38
mov rsi, rax
test rsi, rsi
je 0x180002d68
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 0x180002b5e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x18000f8a0]
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 0x180002d54
cmp qword [rdi + 0x28], 0
jne 0x180002bae
mov r15, qword [0x18000f760]
lea r8, [rdi + 0x30]
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.180003374
mov ebx, eax
cmp eax, 2
jne 0x180002b9e
test byte [0x18000f74c], 1
je 0x180002b9e
lea r8, [rdi + 0x30]
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.180003374
mov ebx, eax
test ebx, ebx
jne 0x180002d54
mov r15, qword [rsp + 0x1d0]
mov r8d, dword [rdi + 0x30]
mov rdx, qword [rdi + 0x28]
mov rcx, r12
call fcn.18000244c
xor ebp, ebp
mov ebx, eax
cmp eax, ebp
jne 0x180002ce0
cmp qword [rdi], rbp
jne 0x180002bdc
xor edx, edx
mov rcx, rsi
call fcn.180003c38
mov qword [rdi], rax
mov rdx, qword [0x18000f8b8]
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 0x180002d54
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x180011641]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r13d, 3
cmp eax, ebp
jne 0x180002c82
cmp dword [rsp + 0x1e8], 0x28
jne 0x180002c82
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x180011641]
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 0x180002cae
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 0x180002d45
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 0x180002d45
cmp eax, 0x20
je 0x180002d52
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 0x180002d54
mov rcx, qword [rsp + 0x30]
mov rdi, qword [0x18000f8a0]
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x38], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebp
jne 0x180002d45
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 0x180002d54
mov ebx, ebp
mov rcx, qword [0x18000f730]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002d74
mov ebx, 8
jmp 0x180002d74
mov ebx, 0xb7
mov rcx, qword [0x18000f730]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002d8d
mov ebx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x1f0]
inc dword [rax]
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