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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0x3f]
mov qword [rbp + 7], rbx
xor r8d, r8d
mov qword [rbp + 0x3f], 0x2000
lea rdx, [rbp + 7]
mov dword [rsp + 0x20], 0x3000
lea rcx, [rbx - 1]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jns 0x1400010cf
lea eax, [rbx + 1]
jmp 0x140001310
mov r9d, 0x18
mov qword [rsp + 0xc0], rdi
xor r8d, r8d
mov dword [rbp + 0x17], 0x3dfee0
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea rdi, [0x140005080]
test eax, eax
jne 0x14000111f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptAcquireContextW___u__n
call fcn.140001010
jmp 0x140001222
mov rcx, qword [rbp + 0x27]
lea rax, [rbp + 0x2f]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14000115a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptCreateHash___u__n
call fcn.140001010
jmp 0x140001222
mov rcx, qword [rbp + 0x2f]
lea rdx, [0x1403e4f60]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14000118f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptHashData___u__n
call fcn.140001010
jmp 0x140001222
mov r8, qword [rbp + 0x2f]
lea rax, [rbp + 0x37]
mov rcx, qword [rbp + 0x27]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1400011c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDeriveKey___u__n
call fcn.140001010
jmp 0x140001222
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140001202
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDecrypt___u__n
call fcn.140001010
jmp 0x140001222
mov rcx, qword [rbp + 0x27]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 7]
mov r8d, 0x3dfee0
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbp + 0x1f]
mov dword [rbp + 0x1f], ebx
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x3f]
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 7]
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov rdi, qword [rsp + 0xc0]
test eax, eax
jns 0x140001271
mov eax, 2
jmp 0x140001310
mov rax, qword [rbp + 7]
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x50], rbx
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x48], rbx
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov edx, 0x1fffff
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov qword [rbp + 0xf], 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtCreateThreadEx]
test eax, eax
jns 0x1400012d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_sysNtCreateThreadEx___u__n
call fcn.140001010
mov eax, 3
jmp 0x140001310
mov rcx, qword [rbp + 0xf]
lea r8, [rbp + 0x47]
xor edx, edx
mov qword [rbp + 0x47], 0xffffffffff676980
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
jns 0x14000130e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_sysNtWaitForSingleObject___u__n
call fcn.140001010
mov eax, 4
jmp 0x140001310
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140001340
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbp
ret