Function at 0x180003e48
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 [0x18000d37c], 1
mov eax, 0x100
mov r13d, esi
mov rdi, rdx
mov r15, rcx
cmovne r13d, eax
cmp r9d, 8
mov ebx, esi
jbe 0x180004361
mov r14d, r9d
lea rax, [r14 + 0x41]
cmp rax, 0x104
jae 0x180004361
mov dx, 0x5f
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
cmp rax, rsi
jne 0x180004361
lea rcx, [rsp + 0x80]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x18000f48c]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x18000f4e2]
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 0x180004361
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x18000f528]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x1e8], esi
je 0x180004351
mov rcx, qword [0x18000d3e8]
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 [0x18000d350]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rsi
mov r12, rax
je 0x180004351
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x18000f528]
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x18000433d
mov eax, dword [rsp + 0x1e8]
lea r8, [0x18000f6d8]
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 [0x18000d3f0]
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 [0x18000d3e8]
mov rdx, r12
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, qword [0x18000d390]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
je 0x180004338
mov rdi, qword [rsp + 0x1f8]
mov rbp, qword [rdi + 8]
cmp rbp, rsi
je 0x18000408a
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 [0x18000d350]
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 0x180004097
lea rdx, [0x18000f5c0]
mov r9, rbp
mov r8, r12
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x180004097
xor edx, edx
mov rcx, r12
call fcn.180004f98
mov rsi, rax
test rsi, rsi
je 0x180004331
lea rcx, [rsp + r14 + 0xaa]
lea rdx, [0x18000f4ca]
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 0x180004127
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x18000d3e0]
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 0x18000431d
cmp qword [rdi + 0x28], 0
jne 0x180004177
mov r15, qword [0x18000d390]
lea r8, [rdi + 0x30]
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.180004a88
cmp eax, 2
mov ebx, eax
jne 0x180004167
test byte [0x18000d37c], 1
je 0x180004167
lea r8, [rdi + 0x30]
lea rdx, [rdi + 0x28]
mov rcx, r15
call fcn.180004a88
mov ebx, eax
test ebx, ebx
jne 0x18000431d
mov r15, qword [rsp + 0x1d0]
mov r8d, dword [rdi + 0x30]
mov rdx, qword [rdi + 0x28]
mov rcx, r12
call fcn.180003b3c
xor ebp, ebp
cmp eax, ebp
mov ebx, eax
jne 0x1800042a9
cmp qword [rdi], rbp
jne 0x1800041a5
xor edx, edx
mov rcx, rsi
call fcn.180004f98
mov qword [rdi], rax
mov rdx, qword [0x18000d3f8]
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 0x18000431d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x1e8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x18000f5b9]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r13d, 3
cmp eax, ebp
jne 0x18000424b
cmp dword [rsp + 0x1e8], 0x28
jne 0x18000424b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x18000f5b9]
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 0x180004277
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
lea rdx, [0x18000f4b7]
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 0x18000430e
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x18]
lea rdx, [0x18000f4cf]
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x18000430e
cmp eax, 0x20
je 0x18000431b
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 0x18000431d
mov rcx, qword [rsp + 0x30]
mov rdi, qword [0x18000d3e0]
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x38], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebp
jne 0x18000430e
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 0x18000431d
mov ebx, ebp
mov rcx, qword [0x18000d350]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000433d
mov ebx, 8
jmp 0x18000433d
mov ebx, 0xb7
mov rcx, qword [0x18000d350]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180004356
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