Function at 0x1400017c8
Capabilities:
Check mutex on windows
Create directory
Query environment variable
Set registry value
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5a0
mov r14d, 0x53
mov esi, edx
mov rbx, rcx
lea eax, [r14 + 0xe]
lea r13d, [r14 + 0x1d]
lea r12d, [r14 + 0x19]
mov word [rsp + 0x7a], ax
lea eax, [r14 + 0x1a]
lea r15d, [r14 + 0x12]
mov word [rsp + 0x7c], ax
lea eax, [r14 - 0x23]
lea r8, [rsp + 0x78]
mov word [rsp + 0x84], ax
mov word [rsp + 0x86], ax
lea eax, [r14 - 0x1d]
xor ebp, ebp
xor edx, edx
xor ecx, ecx
mov word [rsp + 0x88], ax
mov word [rsp + 0x78], r14w
mov word [rsp + 0x7e], r13w
mov word [rsp + 0x80], r12w
mov word [rsp + 0x82], r15w
mov word [rsp + 0x8a], bp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000187f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001d60
call fcn.140001478
cmp eax, ebp
jne 0x140001cef
mov eax, 0x4f
mov qword [rsp + 0x5f8], rbp
mov word [rsp + 0xd0], r14w
mov word [rsp + 0xd2], ax
mov eax, 0x46
mov word [rsp + 0x108], r15w
mov word [rsp + 0xd4], ax
mov eax, 0x54
mov word [rsp + 0x10a], r12w
lea r9d, [rax + 3]
mov word [rsp + 0xd6], ax
mov word [rsp + 0x10c], r13w
lea eax, [r9 - 0x16]
lea r8d, [r9 + 0x18]
lea r10d, [r9 + 0x1c]
mov word [rsp + 0xda], ax
lea eax, [r9 - 5]
mov word [rsp + 0xd8], r9w
mov word [rsp + 0xdc], ax
lea eax, [r9 - 0x12]
mov word [rsp + 0xea], r8w
lea edx, [rax + 0x17]
mov word [rsp + 0xde], ax
mov word [rsp + 0xee], r8w
lea eax, [rdx - 0xf]
lea ecx, [rdx + 0xd]
mov word [rsp + 0xe0], dx
mov word [rsp + 0xe2], ax
lea eax, [rdx + 7]
mov word [rsp + 0xf4], dx
mov word [rsp + 0xe6], ax
lea eax, [rdx + 0x16]
mov word [rsp + 0x104], dx
mov word [rsp + 0xe8], ax
lea eax, [rdx + 0xa]
mov word [rsp + 0xe4], cx
mov word [rsp + 0xf0], ax
lea eax, [rdx + 0x18]
mov word [rsp + 0xf6], r9w
mov word [rsp + 0xf2], ax
lea eax, [rdx + 0x12]
mov word [rsp + 0xf8], cx
mov word [rsp + 0xfa], ax
lea eax, [rdx + 8]
mov word [rsp + 0xfe], r8w
mov word [rsp + 0xfc], ax
lea eax, [rdx + 0x1b]
xor r9d, r9d
mov word [rsp + 0x100], ax
lea eax, [rdx - 0x14]
lea rdx, [rsp + 0xd0]
mov word [rsp + 0x106], ax
lea rax, [rsp + 0x5f0]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x5f8]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
mov word [rsp + 0xec], r10w
mov word [rsp + 0x102], r10w
mov word [rsp + 0x10e], bp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, 0x60e
lea rsi, [0x14008e8bf]
cmp eax, ebp
jne 0x140001a72
mov rcx, qword [rsp + 0x5f8]
lea rdx, str.Config
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x5f8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x206
lea rcx, [rsp + 0x392]
xor edx, edx
mov r8, rbx
mov word [rsp + 0x390], bp
call fcn.140002370
lea rcx, [rsp + 0x182]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x180], bp
call fcn.140002370
mov ebx, 0x25
mov word [rsp + 0x9a], r14w
lea eax, [rbx + 0x1c]
lea ecx, [rbx + 0x27]
lea r8d, [rbx + 0x20]
mov word [rsp + 0x92], ax
lea eax, [rbx + 0x30]
lea edx, [rbx + 0x2d]
mov word [rsp + 0x98], ax
lea eax, [rbx + 0x2b]
mov word [rsp + 0x94], cx
mov word [rsp + 0xa2], ax
lea eax, [rbx + 0x2a]
mov word [rsp + 0x96], cx
mov word [rsp + 0xa6], ax
lea eax, [rbx + 0x21]
mov word [rsp + 0x9e], dx
mov word [rsp + 0xa8], ax
lea eax, [rbx + 0x24]
mov word [rsp + 0xa4], dx
mov word [rsp + 0xaa], ax
lea eax, [rbx + 0x29]
mov word [rsp + 0xac], cx
mov word [rsp + 0xb4], ax
lea eax, [rbx + 0x32]
mov word [rsp + 0x9c], r8w
mov word [rsp + 0xba], ax
lea eax, [rbx + 0x4a]
mov word [rsp + 0xae], r8w
mov word [rsp + 0xbc], ax
lea eax, [rbx + 0x4d]
lea r12d, [rbx + 0x37]
mov word [rsp + 0xbe], ax
lea eax, [rbx + 0x46]
lea r13d, [rbx + 0x4f]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x90]
mov r8d, 0x208
mov word [rsp + 0xc0], ax
mov word [rsp + 0x90], bx
mov word [rsp + 0xa0], r14w
mov word [rsp + 0xb0], bx
mov word [rsp + 0xb2], r12w
mov word [rsp + 0xb6], r15w
mov word [rsp + 0xb8], r13w
mov word [rsp + 0xc2], bp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x180]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [rbx + 0x4e]
lea r8, [rsp + 0x180]
mov word [rsp + 0x62], ax
lea eax, [rbx + 0xc]
lea rdx, [rsp + 0x60]
mov word [rsp + 0x68], ax
lea eax, [rbx + 9]
lea rcx, [rsp + 0x390]
mov word [rsp + 0x6a], ax
lea eax, [rbx + 0x3f]
mov word [rsp + 0x60], bx
mov word [rsp + 0x6c], ax
lea eax, [rbx + 0x3c]
mov word [rsp + 0x64], r12w
mov word [rsp + 0x66], r13w
mov word [rsp + 0x70], r13w
mov word [rsp + 0x72], bp
mov word [rsp + 0x6e], ax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [0x1400110d0]
lea rcx, [rsp + 0x390]
call fcn.140002830
mov rbx, rax
cmp rax, rbp
je 0x140001c7c
lea edx, [r12 - 0x5b]
mov r9, rax
mov r8, rdi
mov rcx, rsi
call fcn.1400029d8
mov rcx, rbx
call fcn.140002b08
mov ecx, dword [0x1400145e0]
mov byte [rsp + 0x136], 8
mov byte [rsp + 0x135], 8
mov byte [rsp + 0x137], 4
mov byte [rsp + 0x138], 2
call fcn.1400025f4
lea rdx, [0x1400145e4]
lea rcx, [rsp + 0x120]
xor r9d, r9d
mov r8, rax
mov byte [rsp + 0x28], bpl
mov rbx, rax
mov dword [rsp + 0x20], ebp
call fcn.1400010b0
lea rcx, [rsp + 0x110]
mov rdx, rbx
call fcn.1400013c0
mov rcx, rbx
call fcn.140002314
call fcn.140001500
jmp 0x140001878
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov eax, 0x80000000
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], eax
lea r8, [0x1400900d0]
lea rdx, [0x1400901a0]
mov r9d, 0xcf0000
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], eax
mov qword [0x140090198], rbx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
cmp rax, rbp
je 0x140001878
mov edx, esi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret