Function at 0x18013a590
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x34]
mov rbx, rcx
shr r8d, 3
mov eax, 0x3f
and r8d, 0x3f
mov rdi, rdx
mov ecx, r8d
sub eax, r8d
add rcx, rbx
xor edx, edx
mov byte [rcx + 0x90], pe_nt_image_headers64
add rcx, 0x91
cmp eax, 8
jae 0x18013a612
mov r8d, eax
call fcn.180211600
cmp dword [rbx + 0x10], 0xa0
mov rcx, rbx
jne 0x18013a5ea
call fcn.18013a030
jmp 0x18013a5ef
call fcn.18013a830
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x90], xmm0
movups xmmword [rbx + 0xa0], xmm0
movups xmmword [rbx + 0xb0], xmm0
mov qword [rbx + 0xc0], rax
jmp 0x18013a61d
add eax, 0xfffffff8
mov r8d, eax
call fcn.180211600
movzx eax, byte [rbx + 0x38]
mov rcx, rbx
mov byte [rbx + 0xcb], al
movzx eax, byte [rbx + 0x39]
mov byte [rbx + 0xca], al
movzx eax, byte [rbx + 0x3a]
mov byte [rbx + 0xc9], al
movzx eax, byte [rbx + 0x3b]
mov byte [rbx + 0xc8], al
movzx eax, byte [rbx + 0x34]
mov byte [rbx + 0xcf], al
movzx eax, byte [rbx + 0x35]
mov byte [rbx + 0xce], al
movzx eax, byte [rbx + 0x36]
mov byte [rbx + 0xcd], al
movzx eax, byte [rbx + 0x37]
mov byte [rbx + 0xcc], al
cmp dword [rbx + 0x10], 0xa0
jne 0x18013a680
call fcn.18013a030
jmp 0x18013a685
call fcn.18013a830
mov ecx, dword [rbx + 0x10]
sub ecx, 0xa0
je 0x18013a78e
cmp ecx, 0x60
jne 0x18013a819
movzx eax, byte [rbx + 0x14]
mov rcx, rbx
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x24]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x28]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x29]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x2a]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x2b]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x2c]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x2d]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x2e]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x2f]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x30]
mov byte [rdi + 0x1f], al
movzx eax, byte [rbx + 0x31]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x32]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x33]
mov byte [rdi + 0x1c], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180138ed0
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x24]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x10], al
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180138ed0