Function at 0x1000144e8
Capabilities:
Create directory
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rdi
push r12
sub rsp, 0x60
and qword [rax + 0x18], 0
and dword [rax + 0x10], 0
and qword [rax + 0x20], 0
and qword [rax - 0x28], 0
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x10001454d
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x100014543
test byte [rcx + 0x1c], 1
je 0x100014543
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
mov edx, 0x27
call fcn.100004898
mov eax, 0x80070057
jmp 0x100014850
lea rax, [rsp + 0x88]
lea rdx, [0x1000031f0]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000145d3
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x1000145c9
test byte [rcx + 0x1c], 1
je 0x1000145c9
mov edx, 0x28
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
call fcn.100004898
mov edi, 0x80004005
jmp 0x10001483b
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea rdx, [0x100003290]
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100014630
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x1000145c9
test byte [rcx + 0x1c], 1
je 0x1000145c9
mov edx, 0x29
jmp 0x1000145b9
mov rcx, qword [rbp + 8]
mov eax, dword [rbp + 0x14]
lea rdx, [0x1000032b0]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100014691
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x1000145c9
test byte [rcx + 0x1c], 1
je 0x1000145c9
mov edx, 0x2a
jmp 0x1000145b9
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x98]
xor r9d, r9d
mov rcx, rbp
call fcn.10001504c
mov rbp, qword [rsp + 0x98]
mov r12, qword [rsp + 0x50]
mov edi, eax
test eax, eax
jns 0x1000146e7
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x100014821
test byte [rcx + 0x1c], 1
je 0x100014821
mov edx, 0x2b
jmp 0x10001480d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
lea rdx, [0x1000032c0]
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10001475c
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x100014752
test byte [rcx + 0x1c], 1
je 0x100014752
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
mov edx, 0x2c
call fcn.100004898
mov edi, 0x80004005
jmp 0x100014821
test rbp, rbp
jne 0x10001479b
mov rcx, qword [0x100023120]
lea rbx, [0x100023120]
cmp rcx, rbx
je 0x100014794
test byte [rcx + 0x1c], 1
je 0x100014794
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x46]
lea r8, [0x1000018f0]
call fcn.100004898
mov rcx, qword [0x100023120]
mov edi, 0x80070057
jmp 0x1000147fd
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rbx, [0x100023120]
test eax, eax
je 0x1000147f0
cmp eax, 0xb7
je 0x1000147f0
mov rcx, qword [0x100023120]
cmp rcx, rbx
je 0x1000147e9
test byte [rcx + 0x1c], 1
je 0x1000147e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
mov edx, 0x47
call fcn.100004898
mov rcx, qword [0x100023120]
mov edi, 0x80004005
jmp 0x1000147f9
mov rcx, qword [0x100023120]
xor edi, edi
test edi, edi
jns 0x10001481f
cmp rcx, rbx
je 0x100014821
test byte [rcx + 0x1c], 1
je 0x100014821
mov edx, 0x2d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
call fcn.100004898
jmp 0x100014821
xor edi, edi
test rbp, rbp
je 0x10001482e
mov rcx, rbp
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
test r12, r12
je 0x10001483b
mov rcx, r12
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x10001484e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r12
pop rdi
pop rbp
ret