Function at 0x1400065e0
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Generate random numbers via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x60]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov rbx, r8
mov rax, qword [rbp + 0x68]
lea r8, [rbp - 0x48]
mov qword [rsp + 0x58], rax
mov r14, rcx
xor eax, eax
mov r13d, edx
mov qword [rbp - 0x80], rcx
mov r15d, 0x54f
mov rcx, qword [0x140026ee0]
movups xmmword [rbp - 0x48], xmm0
lea edx, [rax + 0x34]
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x38], xmm0
mov dword [rsp + 0x60], 0x34
movups xmmword [rbp - 0x28], xmm0
mov dword [rsp + 0x78], 0x34
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140006a4a
mov rcx, qword [rbx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x108], rdi
xor edx, edx
mov dword [rsp + 0x30], 0x34
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x100], r12
xor r12d, r12d
mov dword [rbp - 0x18], r13d
mov edi, r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0x40]
lea r8d, [r12 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140006a32
mov ecx, dword [rsp + 0x60]
call fcn.14000a200
mov rdi, rax
test rax, rax
je 0x140006a32
mov r8d, dword [rsp + 0x60]
cmp r8, 0x34
jb 0x1400066f5
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rax + 0x20], xmm0
mov eax, dword [rbp - 0x18]
mov dword [rdi + 0x30], eax
jmp 0x14000670f
xor edx, edx
mov rcx, rdi
call fcn.140008fb0
call fcn.14000a1cc
mov dword [rax], 0x22
call fcn.14000a04c
mov eax, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rbx]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9d, [rdx + 0x40]
mov qword [rsp + 0x20], rdi
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140006a32
mov r11d, dword [rsp + 0x60]
mov r9d, r12d
mov r10d, r11d
mov qword [rsp + 0x158], rsi
shr r10d, 1
je 0x140006786
mov r8, rdi
nop dword [rax]
mov eax, r11d
lea r8, [r8 + 1]
sub eax, r9d
inc r9d
dec eax
mov ecx, eax
movzx edx, byte [rax + rdi]
movzx eax, byte [r8 - 1]
mov byte [rcx + rdi], al
mov byte [r8 - 1], dl
cmp r9d, r10d
jb 0x140006760
mov rcx, qword [0x140026ee0]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x64], 0x800
mov edx, 0x800c
mov qword [rsp + 0x68], r12
mov rsi, r12
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140006a2a
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140006893
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x140006893
mov ecx, dword [rsp + 0x64]
call fcn.14000a200
mov rsi, rax
test rax, rax
je 0x140006893
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x140006893
mov r11d, dword [rsp + 0x64]
mov r9d, r12d
mov r10d, r11d
shr r10d, 1
je 0x140006893
mov r8, rsi
nop dword [rax]
nop dword [rax + rax]
mov eax, r11d
lea r8, [r8 + 1]
sub eax, r9d
inc r9d
dec eax
mov ecx, eax
movzx edx, byte [rax + rsi]
movzx eax, byte [r8 - 1]
mov byte [rcx + rsi], al
mov byte [r8 - 1], dl
cmp r9d, r10d
jb 0x140006860
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1400068a7
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test rsi, rsi
je 0x140006a2a
mov r14d, dword [rsp + 0x64]
mov eax, dword [rsp + 0x60]
add r14d, r13d
and r14d, 0xfffffff0
add r14d, 0x10
add eax, r14d
mov ecx, eax
mov dword [rsp + 0x40], eax
mov ebx, eax
call fcn.14000a200
mov r12, rax
test rax, rax
jne 0x1400068dc
lea r15d, [rax + 0xe]
jmp 0x140006a22
mov r8, rbx
xor edx, edx
mov rcx, r12
call fcn.140008fb0
mov r9d, dword [rsp + 0x60]
mov r8, rdi
mov rdx, rbx
mov rcx, r12
call fcn.1400010c0
mov eax, dword [rsp + 0x60]
mov r8, r13
mov rdx, qword [rbp - 0x80]
add rax, r12
mov rcx, rax
mov qword [rsp + 0x48], rax
call fcn.1400097c0
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
mov r8d, dword [rsp + 0x64]
add rcx, r13
call fcn.1400097c0
movups xmm0, xmmword [rbp - 0x48]
mov rcx, qword [0x140026ee0]
xor ebx, ebx
movups xmm1, xmmword [rbp - 0x38]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x7c], 1
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x78]
lea r8d, [rbx + 0x2c]
mov dword [rbp - 0x78], 0x208
xor r9d, r9d
mov dword [rbp - 0x74], 0x6610
mov dword [rbp - 0x70], 0x20
movups xmmword [rbp - 0x6c], xmm0
mov dword [rsp + 0x20], ebx
movups xmmword [rbp - 0x5c], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140006a22
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x7c]
xor r9d, r9d
lea edx, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140006a17
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x28]
xor r9d, r9d
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140006a17
mov ecx, dword [rsp + 0x64]
lea rax, [rbp - 0x80]
add ecx, r13d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 1]
mov rax, qword [rsp + 0x48]
xor r9d, r9d
mov dword [rbp - 0x80], ecx
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140006a01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
jmp 0x140006a17
mov rax, qword [rsp + 0x50]
mov r15d, ebx
mov rcx, qword [rsp + 0x58]
mov qword [rax], r12
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rsi
call fcn.14000a1ec
mov rsi, qword [rsp + 0x158]
mov rcx, rdi
call fcn.14000a1ec
mov r12, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x108]
mov eax, r15d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140007c70
add rsp, 0x110
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret