Function at 0x40d530
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rax, qword [0x0065cfc0]
cmp r8d, 0xfffffff8
mov rbp, rcx
mov r13, rdx
mov r15d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [0x0065cfc8]
mov qword [rsp + 0x38], rax
mov rax, qword [0x0065cfd0]
mov qword [rsp + 0x40], rax
mov rax, qword [0x0065cfd8]
mov qword [rsp + 0x48], rax
jl 0x40d7ae
lea eax, [r8*8]
lea rsi, [rsp + 0x70]
movsxd r14, r8d
lea r12, [rsp + 0x30]
xor ebx, ebx
mov dword [rsp + 0x2c], eax
add r14, rsi
cmp r15d, 0x3f
jle 0x40d7bd
cmp r15d, 0x40
je 0x40d7ca
mov r8d, 0x40
mov rdx, r13
mov rcx, rsi
sub rdx, rbx
call sub.msvcrt.dll_memcpy
cmp r15d, 0x3f
ja 0x40d5d7
mov byte [r14 + rbx], pe_nt_image_headers64
lea r9, [rsp + 0xb0]
mov rax, rsi
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
add rax, 4
movzx r8d, byte [rax - 1]
shl edx, 0x10
shl ecx, 0x18
add ecx, edx
movzx edx, byte [rax - 2]
add ecx, r8d
shl edx, 8
add edx, ecx
mov dword [rax - 4], edx
cmp rax, r9
jne 0x40d5e2
cmp r15d, 0x37
jle 0x40d7df
mov rdx, rsi
mov rcx, r12
sub r15d, 0x40
call fcn.00409ab0
sub rbx, 0x40
cmp r15d, 0xfffffff8
jge 0x40d5a4
mov rdx, qword [0x0065cfa0]
mov rax, qword [0x0065cfc0]
mov rcx, rsi
mov qword [rsp + 0x50], rdx
mov rdx, qword [0x0065cfa8]
mov qword [rsp + 0x70], rax
mov rax, qword [0x0065cfc8]
mov qword [r12 + 0x28], rdx
mov rdx, qword [0x0065cfb0]
mov qword [rsp + 0x78], rax
mov rax, qword [0x0065cfd0]
mov qword [r12 + 0x30], rdx
mov rdx, qword [0x0065cfb8]
mov qword [rsp + 0x80], rax
mov rax, qword [0x0065cfd8]
mov qword [r12 + 0x38], rdx
mov rdx, r12
mov qword [rsp + 0x88], rax
call fcn.00409ab0
mov eax, dword [rsp + 0x70]
mov edx, eax
mov byte [rbp + 3], al
shr edx, 8
mov byte [rbp + 2], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp], al
mov eax, dword [rsp + 0x74]
shr edx, 0x10
mov byte [rbp + 1], dl
mov edx, eax
mov byte [rbp + 7], al
shr edx, 8
mov byte [rbp + 6], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 4], al
mov eax, dword [rsp + 0x78]
shr edx, 0x10
mov byte [rbp + 5], dl
mov edx, eax
mov byte [rbp + 0xb], al
shr edx, 8
mov byte [rbp + 0xa], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 8], al
mov eax, dword [rsp + 0x7c]
shr edx, 0x10
mov byte [rbp + 9], dl
mov edx, eax
mov byte [rbp + 0xf], al
shr edx, 8
mov byte [rbp + 0xe], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 0xc], al
mov eax, dword [rsp + 0x80]
shr edx, 0x10
mov byte [rbp + 0xd], dl
mov edx, eax
mov byte [rbp + 0x13], al
shr edx, 8
mov byte [rbp + 0x12], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 0x10], al
mov eax, dword [rsp + 0x84]
shr edx, 0x10
mov byte [rbp + 0x11], dl
mov edx, eax
mov byte [rbp + 0x17], al
shr edx, 8
mov byte [rbp + 0x16], dl
mov edx, eax
shr eax, 0x18
mov byte [rbp + 0x14], al
mov eax, dword [rsp + 0x88]
shr edx, 0x10
mov byte [rbp + 0x15], dl
mov edx, eax
mov byte [rbp + 0x1b], al
shr edx, 8
mov byte [rbp + 0x1a], dl
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [rbp + 0x19], dl
mov byte [rbp + 0x18], al
mov eax, dword [rsp + 0x8c]
mov edx, eax
mov byte [rbp + 0x1f], al
shr edx, 8
mov byte [rbp + 0x1e], dl
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov byte [rbp + 0x1c], al
mov byte [rbp + 0x1d], dl
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x30]
lea rsi, [rsp + 0x70]
jmp 0x40d635
mov ecx, 8
mov rdi, rsi
xor eax, eax
rep stosq qword [rdi], rax
test r15d, r15d
mov r8d, 0
cmovns r8d, r15d
movsxd r8, r8d
jmp 0x40d5be
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0xac], eax
jmp 0x40d618